PeumeAPI

Search & SEO

Auto-detect a page type and extract it by URL

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

$0.0036 per page

Call it

curl https://api.peume.com/v1/call/auto-detect-a-page-type-and-extract-it-by \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "url": "https://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/",
    "discussion": true,
    "timeout": 30000
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: auto-detect-a-page-type-and-extract-it-by.

Parameters

urlRequiredstring

target URL to extract, URL-encoded

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

modestring

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

fallbackstring

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

fieldsstring

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

discussionboolean

pass false to disable automatic comment/review extraction

Example: true

timeoutinteger

ms to wait for content retrieval

Example: 30000

proxystring

custom proxy IP for fetching the target page

proxyAuthstring

username:password for the custom proxy

useProxystring

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

renderDelayinteger

extra rendering ms before DOM extraction, max 180000

scrollstring

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

callbackstring

JSONP callback for cross-domain AJAX

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.