PeumeAPI

Web scraping

Scrape HTML

Fetch the fully rendered HTML of any page.

$0.003 per credit

Call it

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

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: scrape-html.

Parameters

urlRequiredstring

Full URL to fetch, including the http:// or https:// scheme.

useMainContentOnlyboolean

Best-effort: ask to drop headers, footers, sidebars, navigation, and cookie or consent panels. It is a heuristic, so on some pages (news sites, legal and corporate pages, comment sections) a lot of that chrome stays in the output; do not assume the first characters are the article body. For exact control use POST /web/scrape with sharedParams.excludeSelectors / includeSelectors. Default false.

includeFramesboolean

Render iframes inline into the returned HTML. Default false.

settleAnimationsboolean

Wait briefly for CSS and transition animations to settle before the HTML is captured. 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.

countrystring

Two-letter ISO 3166-1 alpha-2 country code (e.g. 'us', 'gb', 'de'). Must be one of supported countries.

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.