{"url": "https://www.example.com","screenshotUrl": "https://api.getanyapi.com/files/screenshots/3f9c1a.png","image": string}
价格与服务商
Web Scraping 页面截图 API 价格:一个 API,2 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
标记为暂停服务的服务商因响应不稳定,已移出轮换,你的调用会转到其他服务商。它恢复稳定响应后会自动重新加入。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- urlstring
https://www.example.com
要截图的页面完整 URL。
- viewportWidthinteger
1280
浏览器视口宽度,单位为像素(例如 1280)。
响应
JSON,每个字段一个示例值。
Screenshot records: the requested page URL and a link to the captured image. Populated whenever the provider has data for the entity.
- imagestring
Link to the captured screenshot image. Populated whenever the provider has data for the entity.
- urlstring
https://www.example.com
The captured page's final URL after redirects when the source reports it, otherwise the URL you requested. Populated whenever the provider has data for the entity.
- foundboolean
true
True when a screenshot was captured.
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
常见问题
关于 Web Scraping 页面截图 API
AnyAPI 的 Web Scraping 页面截图 API 只需一次 POST 请求 /v1/run/web.screenshot,就以统一格式的 JSON 返回 Web Scraping 数据。用真实浏览器为任意网页 URL 截图,并返回渲染后图片的链接。AnyAPI 会在 2 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$1.30 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Web Scraping 页面截图 API 调用中有 96.6% 成功,响应时间中位数为 4.1 秒,共测量 19,207 次调用。