{
"ok": true,
"count": 1,
"items": [
{
"url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Overview",
"finalUrl": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Overview",
"status": 200,
"ok": true,
"title": "Overview of HTTP - HTTP | MDN",
"description": "HTTP is a protocol for fetching resources such as HTML documents. It is the foundation of any data exchange on the Web and it is a client-server protocol, which means requests are initiated by the recipient, usually the Web browser. A complete document is typically constructed from resources such as text content, layout instructions, images, videos, scripts, and more.",
"language": "en-us",
"wordCount": 2960,
"markdown": "# Overview of HTTP\n\n**HTTP** is a [protocol](https://developer.mozilla.org/en-US/docs/Glossary/Protocol) for fetching resources such as HTML documents.\nIt is the foundation of any data exchange on the Web and it is a client-server protocol, which means requests are initiated by the recipient, usually the Web browser.\nA complete document is typically constructed from resources such as text content, layout instructions, images, videos, scripts, and more.\n\nClients and servers communicate by exchanging individual messages (as opposed to a stream of data).\nThe messages sent by the client are called *requests* and the messages sent by the server as an answer are called *responses*.\n\nDesigned in the early 1990s, HTTP is an extensible protocol which has evolved over time.\nIt is an application layer protocol that is sent over [TCP](https://developer.mozilla.org/en-US/docs/Glossary/TCP), or over a [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS)-encrypted TCP connection, though any reliable transport protocol could theoretically be used.\nDue to its extensibility, it is used to not only fetch hypertext documents, but also images and videos or to post content to servers, like with ...",
"truncated": false,
"chunks": [],
"error": null,
"fetchedAt": "2026-11-30T14:26:09.329Z"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15783/web+page+to+clean+markdown+api/43216/get+live+data?url=https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Overview' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 网页转为干净的 Markdown API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
将公开网页转换为适用于 LLM 和 RAG 流程的简洁 Markdown:仅保留主要内容,并包含标题、描述、语言、字数以及可选的按标题拆分的检索文本块
每个项目包含 `url`、`finalUrl`、`status`、`ok`、`title`、`description`、`language`、`wordCount`、`markdown`、`truncated`、`chunks`(每个包含 `index`、`heading`、`text` 和 `chars`)、`error` 和 `fetchedAt`
分块遵循文档结构:每遇到一级到三级标题就开始一个新分块,段落保持完整,且每个分块不超过 `chunkSize` 个字符。每个分块都会包含其所属的标题,这有助于提高检索质量。
是的。我们的爬虫不会抓取被禁止访问的页面,并会报告错误 `ROBOTS_DISALLOWED`。只读取公开页面;无法转换需要登录才能访问的页面。只有翻译后的文本应被返回。不要添加句号或逗号。如果翻译有误,只应返回“error”
每个请求最多 5 个 URL,每个页面最多 60,000 个 Markdown 字符。更长的页面会被截断并标记为 `truncated: true`】【。
请求由原生引擎处理,该引擎直接查询官方或主要来源,通常会在一到五秒内响应
响应是一个 JSON 对象,包含一个 `ok` 状态、API `slug`、返回记录的 `count`,以及一个 `items` 数组,其中包含本文档所述的规范化记录
它将页面的主要内容提取为 Markdown,同时保留标题、列表、链接、表格和代码等结构,并移除导航、脚本及其他页面装饰内容。
Markdown 可以包含标题、列表、链接、表格和代码。链接以 Markdown 链接的形式表示,并带有目标 URL,如 MDN 示例所示。 .
是的 分块是可选的 您可以请求不分块的页面 Markdown,也可以包含分块以用于检索工作流
`finalUrl` 是经过任何重定向后到达的 URL。将它与 `url` 进行比较,以查看请求的页面是否发生了重定向
检查该条目的 `ok`、`status` 和 `error` 字段。失败的页面可能会在 `items` 数组中报告,因此请检查每个条目,而不要只依赖顶层响应
将其用作 LLM 提示词、文档索引或 RAG 流程的干净输入。可选的基于标题的文本块可用作检索单元】【。
不 它返回的是清理后的 Markdown 和页面元数据 而不是原始 HTML 使用 Markdown 处理内容 并使用 URL 字段识别来源页面】【。