PeumeAPI

Web scraping

Extract Structured Data

Crawl a website and return JSON matching a caller-supplied JSON Schema. 10 credits ($0.02) per call.

$0.003 per credit

Call it

curl https://api.peume.com/v1/call/extract-structured-data \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "url": "your url",
    "schema": "your schema"
  }
}'

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: extract-structured-data.

Parameters

urlRequiredstring

Starting website URL to crawl and extract from.

schemaRequiredobject

JSON Schema describing the object to return. Generate it from a Zod or Pydantic model, or hand-write it — fills exactly this shape.

instructionsstring

Extraction guidance: which facts to prioritize, how to interpret ambiguous fields.

factCheckboolean

When true, every returned value must be grounded in text stated on the page and unsupported fields come back null/empty. When false (default), reasonable inferences are allowed while verifiable specifics stay faithful to the source.

followSubdomainsboolean

Follow links on subdomains of the starting URL's domain. Default false.

maxPagesinteger

Maximum number of pages to analyze. Default 5, hard cap 50. Does NOT change the price — extraction is billed per call.

maxDepthinteger

Maximum link depth from the starting URL (0 = only the starting page). Unlimited when omitted.

includeFramesboolean

Include iframe contents in the Markdown handed to the extractor. Default false.

maxAgeMsinteger

Reuse a cached result younger than this many milliseconds. Default 86400000 (1 day), max 2592000000 (30 days). Set 0 to always fetch fresh.

waitForMsinteger

Extra browser wait in milliseconds after page load before the content is captured (0-30000). Useful for JavaScript-heavy pages.

settleAnimationsboolean

Wait briefly for animations to settle before each page is read. Default false.

stopAfterMsinteger

Soft time budget for the crawl phase in milliseconds (10000-110000, default 80000).

timeoutMSinteger

Upstream timeout in milliseconds (max 300000). aborts the call with a 408 when exceeded. Keep it below the endpoint's requestTimeoutMs so the provider answers before the platform's own budget expires.

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.