跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://help.decodo.com/llms.txt

Use this file to discover all available pages before exploring further.

为了提高效率,我们的 API 提供了在单个响应中请求多种格式的功能。
此功能仅支持异步集成类型。
类型描述
rawURL 的原始响应正文,通常但不限于 HTML 文档
parsed解析后的页面内容,以 JSON 格式提供
markdownMarkdown 响应
xhr页面渲染期间捕获的 XHR 请求
png网页的 截图,PNG 格式
下表显示了可用的响应格式,这些格式由 API 请求中包含的参数决定。请记住,并非所有目标都支持每个参数;因此,输出结果可能会有所不同。
ParseXHRMarkdownHeadless实时输出可用输出
true*-* OR htmlparsedhtml, parsed
true-*pngparsedhtml, parsed, png
truetrue-htmlparsedhtml, parsed, xhr
true*true- OR htmlparsedhtml, parsed, markdown
truetruetruehtmlparsedhtml, parsed, xhr, markdown
*true-htmlxhrhtml, xhr
*truetruehtmlmarkdownhtml, xhr, markdown
-*truepngmarkdownhtml, markdown, png
-*-pngpnghtml, png
*-*- OR htmlhtmlhtml

使用 task_id 通过结果端点获取多格式响应

要接收多格式响应,请在结果请求 URL 中添加 ?type= 参数并指定所需的响应类型,例如: https://scraper-api.decodo.com/v3/task/{task_id}/results?type=raw,xhr

支持

需要帮助或只是想打个招呼?我们的支持团队全天候为您服务。
您也可以随时通过电子邮件 support@decodo.com 联系我们。

反馈

找不到您要找的内容?请求一篇文章!
有反馈意见?分享您对我们如何改进的想法。