{
"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` 数组,其中包含本文档所述的规范化记录