360 Secure SkillHub
360 安全技能中心

SnapAPI — Web Intelligence for AI Agents

这是一份 REST API 用法说明,通过同一套接口提供网页截图、页面结构化分析、元数据提取、PDF 生成、HTML 转图片、批量处理、页面变更监控与用量查询。所有能力都在远端完成,需要自行提供 API Key,并借助 curl 等命令行工具发起请求。

boehner
boehner
热度 82.58
最近更新 2026-05-11 17:32:38
分类:数据依赖:代码执行 / 第三方 API应用场景:数据处理 / 研究 / 工作流 / 图像生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add snapapi
Metadata
name
snapapi
description
Give your agent web intelligence — screenshot any URL, extract structured page data, detect page changes, and analyze websites via the SnapAPI REST API.
metadata
{"openclaw":{"requires":{"env":["SNAPAPI_API_KEY"],"bins":[]},"primaryEnv":"SNAPAPI_API_KEY"}}
tags
["web","screenshot","scraping","ai-agents","page-analysis","monitoring","browser"]
version
1.0.0

SnapAPI — Web Intelligence for AI Agents

SnapAPI gives your agent eyes on the internet. One API, six capabilities:

Base URL: https://snapapi.tech Auth: X-API-Key: $SNAPAPI_API_KEY Free tier: 100 requests/month — get a key at https://snapapi.tech


Screenshot any URL

curl "https://snapapi.tech/v1/screenshot?url=https://example.com&format=png" \
  -H "X-API-Key: $SNAPAPI_API_KEY" \
  --output screenshot.png

Options: format=png|jpeg|webp, fullPage=true, darkMode=true, width=1280, height=800


Analyze a page (structured intelligence)

curl "https://snapapi.tech/v1/analyze?url=https://example.com" \
  -H "X-API-Key: $SNAPAPI_API_KEY"

Returns:

{
  "title": "Example Domain",
  "description": "...",
  "headings": [{ "level": 1, "text": "..." }],
  "links": [{ "text": "More info", "href": "https://..." }],
  "text_content": "...",
  "forms": [],
  "technologies": ["nginx"],
  "load_time_ms": 832
}

Use this when your agent needs to understand a page, not just see it.


Extract metadata (fast — no full render)

curl "https://snapapi.tech/v1/metadata?url=https://example.com" \
  -H "X-API-Key: $SNAPAPI_API_KEY"

Returns: title, description, OG tags, Twitter card, favicon, canonical URL. Faster than /analyze — use for link previews and SEO research.


Generate a PDF

curl "https://snapapi.tech/v1/pdf?url=https://example.com" \
  -H "X-API-Key: $SNAPAPI_API_KEY" \
  --output page.pdf

Options: format=A4|Letter, landscape=true, margin=20


Render HTML to image

Useful for generating OG images, email previews, or screenshots from dynamic HTML:

curl -X POST "https://snapapi.tech/v1/render" \
  -H "X-API-Key: $SNAPAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1 style=\"color:blue\">Hello</h1>", "width": 800, "height": 400}'

Monitor a page for changes

curl -X POST "https://snapapi.tech/v1/monitor" \
  -H "X-API-Key: $SNAPAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://competitor.com/pricing", "interval": "1h", "webhook": "https://your-server.com/hook"}'

Fires a webhook when content changes — use for competitor price tracking, compliance monitoring, stock signals.


Batch process multiple URLs

curl -X POST "https://snapapi.tech/v1/batch" \
  -H "X-API-Key: $SNAPAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://a.com", "https://b.com"], "action": "screenshot"}'

Check your usage

curl "https://snapapi.tech/v1/usage" \
  -H "X-API-Key: $SNAPAPI_API_KEY"

Returns: { "used": 23, "limit": 100, "tier": "free", "resets": "2026-04-01" }


Agent prompting examples

Use snapapi to screenshot https://news.ycombinator.com and describe the top 5 stories.
Use snapapi_analyze on https://competitor.com and tell me their primary CTA and pricing structure.
Use snapapi to monitor https://example.com/pricing every hour and alert me when the price changes.
Use snapapi to batch-screenshot these 5 URLs and compare their layouts.

Works great with

  • OpenClaw — install the native plugin: openclaw plugins install snapapi
  • LangChain — use as a tool via the REST API
  • n8n — HTTP Request node pointing to any endpoint
  • AutoGPT / any agent — standard REST, no SDKs required

Full docs: https://snapapi.tech/docs Get your free API key: https://snapapi.tech