Auto-detect a page type and extract it by URL

From Diffbot, through Joshu Data Bodega.

Price
$0.00132 per call$1.32 per 1,000 calls

No calls measured in the last 30 days.

Prices include the router's 10% markup and are paid from the usage wallet. Checked on November 11, 2026.

Inputs

  • urlstring, required

    target URL to extract, URL-encoded

  • modestring, optional

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

  • proxystring, optional

    custom proxy IP for fetching the target page

  • fieldsstring, optional

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

  • scrollstring, optional

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

  • timeoutinteger, optional

    ms to wait for content retrieval

  • callbackstring, optional

    JSONP callback for cross-domain AJAX

  • fallbackstring, optional

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

  • useProxystring, optional

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

  • proxyAuthstring, optional

    username:password for the custom proxy

  • discussionboolean, optional

    pass false to disable automatic comment/review extraction

  • renderDelayinteger, optional

    extra rendering ms before DOM extraction, max 180000

Call it

Router call with a router API key
curl https://hello.joshu.me/api/router/call \
  -H "Authorization: Bearer $JOSHU_ROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "endpoint": "diffbot.x.extract-analyze",
    "params": {
      "url": "https://www.diffbot.com/products/extract/"
    }
  }'