{
"success": true,
"cached": false,
"processing_ms": 47,
"data": {
"url": "https://example.com/",
"status_code": 200,
"content_type": "text/html",
"title": "Example Domain",
"render_mode": "static",
"markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)",
"metadata": {
"url": "https://example.com/",
"title": "Example Domain",
"description": null,
"keywords": null,
"author": null,
"language": null,
"canonical": null,
"og": {
"title": null,
"description": null,
"image": null,
"url": null,
"type": null,
"site_name": null
},
"twitter": {
"card": null,
"title": null,
"description": null,
"image": null
}
}
}
}
curl --location --request POST 'https://zylalabs.com/api/13797/web+content+and+metadata+extraction+api/31636/scrape+web+page' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"url": "https://example.com",
"formats": [
"markdown",
"metadata"
],
"render": "never",
"use_cache": false
}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Web Content and Metadata Extraction API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
Scrape static and JavaScript-rendered web pages into clean Markdown, text, HTML, links, and metadata, with automatic browser rendering and optional caching.
它检索一个公共可访问的网页并返回所选的输出格式,包括干净的Markdown 纯文本 HTML 链接和页面元数据
是的。使用render="auto"在需要时启用浏览器渲染,使用render="always"强制渲染,使用render="never"以加快静态页面处理速度
您可以请求markdown 文本 html 链接和元数据 可以在一次API调用中请求多种格式
不 该端点旨在用于公开可访问的页面 不会绕过身份验证 付费墙 验证码或目标网站施加的限制
设置 use_cache=true 以允许在可用时重用先前检索的结果 当您需要 API 请求页面的当前版本时设置 use_cache=false
不出于安全原因 API 只接受公共 HTTP 和 HTTPS 目的地 本地主机 私有网络地址 和内部服务被阻止