{
"billed": 3,
"count": 3,
"items": [
{
"bytes": 990650,
"contentHash": "6d874cf04544a4ee6266dcd2",
"device": "desktop",
"deviceScaleFactor": 1,
"error": null,
"finalUrl": "https://en.wikipedia.org/wiki/Screenshot",
"format": "png",
"fullPage": true,
"height": 4923,
"key": "shot-en.wikipedia.org-ce96fea443.png",
"loadTimeMs": 1903,
"pageHeight": 4923,
"related": [
{
"body": {
"startUrls": [
"https://en.wikipedia.org/wiki/Screenshot"
]
},
"endpoint": "/url-to-markdown-llm",
"why": "the page as clean Markdown for LLMs"
},
{
"body": {
"urls": [
"https://en.wikipedia.org/wiki/Screenshot"
]
},
"endpoint": "/link-preview-open-graph",
"why": "title, description, Open Graph image, favicon"
},
{
"body": {
"domains": [
"en.wikipedia.org"
]
},
"endpoint": "/website-tech-stack-detector",
"suite": "Website Audit API - Tech Stack, SEO Audit, PageSpeed",
"why": "tech stack of the site"
}
],
"screenshotUrl": "https://2-29-135-242.sslip.io/m/f/vQgqSdGB9lCRKe7eF/shot-en.wikipedia.org-ce96fea443.png?s=1MQpPaUZamQJJ0pZAf7rk",
"sha256": "51e374038b2f4e73b79d638fc5024a28aa1e628aba69ee306a392e7ffe7065ee",
"statusCode": 200,
"takenAt": "2026-11-12T16:53:11Z",
"title": "Screenshot - Wikipedia",
"truncated": false,
"url": "https://en.wikipedia.org/wiki/Screenshot",
"warning": null,
"width": 1366
},
{
"bytes": 392739,
"contentHash": "4460fd861407520ad65ea80c",
"device": "desktop",
"deviceScaleFactor": 1,
"error": null,
"finalUrl": "https://www.python.org/",
"format": "png",
"fullPage": true,
"height": 2605,
"key": "shot-www.python.org-4863eab2e0.png",
"loadTimeMs": 1394,
"pageHeight": 2605,
"related": [
{
"body": {
"startUrls": [
"https://www.python.org/"
]
},
"endpoint": "/url-to-markdown-llm",
"why": "the page as clean Markdown for LLMs"
},
{
"body": {
"urls": [
"https://www.python.org/"
]
},
"endpoint": "/link-preview-open-graph",
"why": "title, description, Open Graph image, favicon"
},
{
"body": {
"domains": [
"python.org"
]
},
"endpoint": "/website-tech-stack-detector",
"suite": "Website Audit API - Tech Stack, SEO Audit, PageSpeed",
"why": "tech stack of the site"
}
],
"screenshotUrl": "https://2-29-135-242.sslip.io/m/f/vQgqSdGB9lCRKe7eF/shot-www.python.org-4863eab2e0.png?s=1rRqEKtvzXG2qm3PHyd9a",
"sha256": "9f20cceec7df6ce332074948ce8512f480f8205c99cac2a4ab08468dbfcd4e0a",
"statusCode": 200,
"takenAt": "2026-11-12T16:53:13Z",
"title": "Welcome to Python.org",
"truncated": false,
"url": "https://www.python.org",
"warning": null,
"width": 1366
},
{
"bytes": 950560,
"contentHash": "86650f255d85f5151d23cf6f",
"device": "desktop",
"deviceScaleFactor": 1,
"error": null,
"finalUrl": "https://apify.com/",
"format": "png",
"fullPage": true,
"height": 10000,
"key": "shot-apify.com-7c0cb88185.png",
"loadTimeMs": 3827,
"pageHeight": 10072,
"related": [
{
"body": {
"startUrls": [
"https://apify.com/"
]
},
"endpoint": "/url-to-markdown-llm",
"why": "the page as clean Markdown for LLMs"
},
{
"body": {
"urls": [
"https://apify.com/"
]
},
"endpoint": "/link-preview-open-graph",
"why": "title, description, Open Graph image, favicon"
},
{
"body": {
"domains": [
"apify.com"
]
},
"endpoint": "/website-tech-stack-detector",
"suite": "Website Audit API - Tech Stack, SEO Audit, PageSpeed",
"why": "tech stack of the site"
}
],
"screenshotUrl": "https://2-29-135-242.sslip.io/m/f/vQgqSdGB9lCRKe7eF/shot-apify.com-7c0cb88185.png?s=AY4pOMdZTDGh30FnVLgu",
"sha256": "0291cb94690bea3d2e424243f59974b7077f548f82474bc51f6982ac4ed272fc",
"statusCode": 200,
"takenAt": "2026-11-12T16:53:13Z",
"title": "Apify: Marketplace of ready-to-run tools for AI",
"truncated": true,
"url": "https://apify.com",
"warning": null,
"width": 1366
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14848/webpage+to+pdf+api/38663/screenshot?urls=https://apify.com,https://en.wikipedia.org/wiki/Screenshot,https://www.python.org&device=desktop&fullPage=true&format=png&jpegQuality=80&viewportWidth=OptionalviewportHeight=OptionalmaxHeight=10000&waitUntil=load&delayMs=OptionalhideCookieBanners=true&darkMode=false' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 网页转换为PDF API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
网页到 PDF API 将任何公共 URL 转换为完整页面或视口 PNG JPEG 或 PDF 使用真实的 Chromium 适用于桌面 平板和移动视口 等待选择器 延迟 暗模式 隐藏 Cookie 横幅和任何元素 捕获一个元素
每个请求最多返回100个结果,具体取决于端点
每个请求从公共源收集实时数据 相同的请求可以从缓存中服务最长达6小时
列表参数接受多个用逗号分隔的值,例如:伦敦,巴黎
网站截图API返回关于从公共URL获取的截图的数据,包括截图URL 状态码 标题 设备类型 格式和尺寸
响应中的关键字段包括 `url` `finalUrl` `statusCode` `screenshotUrl` `format` `width` `height` 和 `loadTimeMs` 这些字段提供了关于截图及其来源的基本信息
用户可以使用参数自定义请求,例如 `url`(要捕获的网页)、`device`(桌面、平板、移动)、`format`(PNG、JPEG、PDF),以及 `wait-for-selector`、`delay` 和 `dark mode` 的选项
响应数据结构为JSON格式,包含一个结果的`count`和一个`items`数组,其中每个项目包含有关单个截图的详细信息,包括元数据和图像URL
API提供诸如截图图像URL、原始网页URL、用于捕捉的设备类型、图像格式和截图尺寸等信息
用户可以通过访问`screenshotUrl`来展示或存储图像,使用`title`提供上下文,并分析`loadTimeMs`以获得性能洞察
典型使用案例包括生成网站预览 归档网页内容 创建视觉文档 以及监测网站随时间的变化
数据准确性通过使用真实的Chromium直接从源捕获实时截图来维持,确保输出反映请求时网页的当前状态