Diffbot网页与 SEO 数据SEO/AEO

Auto-detect a page type and extract it by URL

diffbot.x.extract-analyze

Automatically identifies the type of page being processed and routes it through the relevant Diffbot API

价格
$0.001196/call按供应商原价
成功率
99.9%近 30 天 · 7,365 次
延迟 p50
2.6 秒p95 24 秒
最后验证
2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/diffbot.x.extract-analyze?url=https%3A%2F%2Fwww.diffbot.com%2Fproducts%2Fextract%2F预览
在线试用即将上线供应商文档 ↗
  • 可用平台额度调用
  • 同步返回
  • 读取公开数据

参数

different HOST than base_url — api.diffbot.com, not kg.diffbot.com

参数类型必填说明示例
查询参数
url字符串必填target URL to extract, URL-encodedhttps://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/
mode字符串可选restrict extraction to one page type: article, product, discussion, image, video, list, event
proxy字符串可选custom proxy IP for fetching the target page
fields字符串可选comma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb
scroll字符串可选'slow' or 'fast' — triggers lazy-loaded content
timeout整数可选ms to wait for content retrieval30000
callback字符串可选JSONP callback for cross-domain AJAX
fallback字符串可选which API to fall back to if page type cannot be determined
useProxy字符串可选'default' routes through Diffbot's datacenter proxy (2 credits/page instead of 1); 'none' disables proxies
proxyAuth字符串可选username:password for the custom proxy
discussion布尔可选pass false to disable automatic comment/review extractiontrue
renderDelay整数可选extra rendering ms before DOM extraction, max 180000
  • 查询参数
  • url字符串必填

    target URL to extract, URL-encoded

    示例:https://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/

  • mode字符串可选

    restrict extraction to one page type: article, product, discussion, image, video, list, event

  • proxy字符串可选

    custom proxy IP for fetching the target page

  • fields字符串可选

    comma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb

  • scroll字符串可选

    'slow' or 'fast' — triggers lazy-loaded content

  • timeout整数可选

    ms to wait for content retrieval

    示例:30000

  • callback字符串可选

    JSONP callback for cross-domain AJAX

  • fallback字符串可选

    which API to fall back to if page type cannot be determined

  • useProxy字符串可选

    'default' routes through Diffbot's datacenter proxy (2 credits/page instead of 1); 'none' disables proxies

  • proxyAuth字符串可选

    username:password for the custom proxy

  • discussion布尔可选

    pass false to disable automatic comment/review extraction

    示例:true

  • renderDelay整数可选

    extra rendering ms before DOM extraction, max 180000

代码示例

将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。

预览
curl -X GET 'https://toolswitch.dev/v1/tools/diffbot.x.extract-analyze?url=https%3A%2F%2Fwww.diffbot.com%2Fproducts%2Fextract%2F' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.001196/call 计费,已含服务费。