{
"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/14847/url+to+png+api/38662/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 端点。要使用 将URL转换为PNG API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
将任何公共 URL 转换为完整页面或视口的 PNG JPEG 或 PDF 的 URL 到 PNG API 真实的 Chromium 桌面 平板和移动视口 等待选择器 延迟 深色模式 隐藏 cookie 横幅和任何元素 捕获一个元素
每个请求最多返回100个结果,具体取决于端点
每个请求从公共源收集实时数据 相同的请求可以在缓存中服务最长达6小时
列表参数接受多个用逗号分隔的值,例如:伦敦,巴黎
网站截图API返回一个JSON对象,包含从指定URL拍摄的截图的详细信息。这包括截图URL、状态码、标题、设备类型、图像格式、尺寸以及额外的元数据,如加载时间和内容哈希
响应中的关键字段包括 `url` `finalUrl` `statusCode` `title` `screenshotUrl` `width` `height` `loadTimeMs` 和 `bytes` 这些字段提供了关于截图和网页的基本信息
用户可以通过指定参数,如视口大小、图像格式(PNG或JPEG)以及隐藏cookie横幅或特定元素的选项,自定义请求。这允许根据用户需求定制截图
典型的用例包括网站监控 为社交媒体生成预览 创建文档以及可视化网页随着时间的变化 该API对开发人员 营销人员和内容创作者都很有用
响应数据以JSON格式组织,顶层对象包含结果的`count`和`items`数组 数组中的每个项目代表一个带有详细属性的截图,便于解析和利用
接受的参数值包括用于截图的特定 URL、图像格式(PNG 或 JPEG)和视口类型(桌面、平板、手机)用户还可以指定选项,如 `fullPage` 以获取完整截图或 `hide` 以排除某些元素
数据准确性通过使用真实的Chromium来渲染屏幕截图得以保持,确保输出与用户在浏览器中看到的内容非常相似。此外,API为每个请求从公共来源收集实时数据
如果请求返回部分或空结果,请检查`statusCode`字段以查找错误 状态码200表示成功,而其他代码可能表示URL或请求参数存在问题 调整参数或重试请求可能会解决问题