文本工具没法告诉你,竞争对手挪动了价格表、换掉了横幅,或者重新设计了落地页。你需要像访客一样看到这个页面,还需要有昨天的版本来对比。Lovely Router 替你截图:发送一个 URL,每张截图返回一个带图片链接的 JSON 对象,按截图数量从预付费余额中计费。用一个 API 密钥,就能从定时任务或 AI 智能体中调用。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
定期截取竞品页面的截图,观察它们的变化. Use the Lovely Router data tools: each returns JSON and is billed per result.
- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.
My task: <the inputs (links, keywords or accounts) and how many results you need>工作原理
列出页面
选出你想留下记录的页面:竞品的价格页和落地页、你自己的结账页、某个活动页面。
设置上限后运行工具
把输入连同
max_results发送到POST /v1/tools/website-screenshot/run。发送一个 URL,或在urls中发送多个,并设置max_results。运行会从你的余额中预留它的最高费用,并返回每张图片的链接。保存并对比
按日期下载每张图片,然后用肉眼,或者用能读取图片的模型,与上一次的截图进行对比。
一次请求截取屏幕截图
网页截图接受一个 url,或在 urls 中放入多个,一次运行就能截取多个页面。format 可以是 png、jpeg、webp 或 pdf,width 以像素为单位设置视口宽度:
curl https://lovelyrouter.com/v1/tools/website-screenshot/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"url": "https://example.com",
"format": "png",
"width": 1280
},
"max_results": 1
}'页面会被完整截取。用 delayMs 在页面就绪后再等待一段时间,让动画或延迟加载的内容稳定下来。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每张截图包含什么
| 字段组 | 你会得到 |
|---|---|
| 图片 | 整页截图的链接 |
| 格式 | PNG、JPEG、WebP 或 PDF,由你选择 |
| 视口 | 你设置的宽度,或默认的设备宽度 |
需要长期保存时,请下载图片文件;链接则连同截图日期一起存储。pdf 同样是整页截取,适合把页面作为文档归档。
实用配方
每周截取一次竞品的价格页,按日期归档图片,这样就能展示各套餐是如何变化的。
用固定的宽度截取首页和结账页,查看版式有没有错乱。
把 format 设为 pdf,保存服务条款、法规页面或广告落地页的整页副本。
用较窄和较宽的 width 对同一个 URL 各运行一次,查看版式如何变化。
把两张带日期的图片发给能读取图片的模型,问问有什么变化。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"以 1280 的宽度,对 pages.txt 中的 10 个 URL 截取整页 PNG 截图,并列出图片链接。将 max_results 设为 10。"
与文本工具搭配
截图展示的是版式。文本和流量类工具则告诉你页面说了什么、表现如何:
网页的整页截图(PNG 或 PDF),返回图片链接。
爬取整个网站(或其中一部分),把每个页面转成干净、可直接给 LLM 使用的 Markdown。适合 RAG 和文档站点。
来自 Similarweb 的网站流量估算:月访问量、排名、流量来源、主要国家、用户参与度。
Google 广告透明度中心中某广告主的广告:形式、文案、投放日期、地区。
website-crawl把整个网站读取为 markdown。website-traffic为你关注的网站补充流量数据。google-ads-transparency展示竞争对手投放的广告。
广告研究请看广告情报。
费用说明
按截图付费:启动运行时会预留它的最高费用,即每次调用费加上每张截图费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的截图付费,在开始时就被拒绝的运行不收费。
每周截取 20 个页面,就按每周 20 张截图计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。