PeumeAPI

Search & SEO

Web extraction with browser options

Fetch a public HTTP(S) page and return LLM-ready content

$0.0005 per lookup, only when found

Call it

curl https://api.peume.com/v1/call/web-extraction-with-browser-options \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "url": "https://example.com",
    "wait_for_selector": "main",
    "page_timeout": 30,
    "locale": "en-US",
    "referer": "https://example.com",
    "assert_status_code": 200
  }
}'

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: web-extraction-with-browser-options.

Parameters

timeoutnumber

Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.

urlRequiredstring

Public HTTP(S) URL to capture, 1-8,192 characters. Include http:// or bare domains are rejected. The host must be public, on port 80 or 443, without embedded credentials.

Example: https://example.com

remove_overlayboolean

Remove modal and cookie-banner overlays from the page.

detach_invisiblesboolean

Drop display:none elements from the page.

wait_for_selectorstring

CSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors.

Example: main

set_cookiesarray

POST only. 1-100 cookies in Set-Cookie syntax (name=value; Path=/; Domain=...), one line each, up to 4,096 characters.

user_agentstring

User-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own.

inject_page_scriptarray

POST only. 1-8 scripts (source, or a URL to a script), up to 8,192 characters each, run in the main frame.

inject_frame_scriptarray

POST only. 1-8 scripts (source, or a URL to a script), up to 8,192 characters each, run in every frame.

page_timeoutinteger

Seconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout.

Example: 30

localestring

Browser locale as a language tag, 2-64 characters. Defaults to the browser's own.

Example: en-US

refererstring

HTTP(S) URL sent as the Referer.

Example: https://example.com

assert_status_codeinteger

Expected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture.

Example: 200

viewportobject

POST only. Browser viewport; width and height are required. Default: 1280 x 1280.

robots_txtstring

User agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected.

Example: MyBot

respond_timingstring

Page readiness condition to reach before responding.

html · visible-content · mutation-idle · resource-idle · media-idle · network-idle

Example: network-idle

respond_withstring

Output format: content (default; main content as Markdown, or the whole page when extraction keeps too little), markdown (whole page as Markdown), html, text, frontmatter (content plus front matter), or a '+' combination such as markdown+frontmatter. For screenshots use /api/web/screenshot.

Example: markdown

with_links_summarystring

true, false or all: add a links list to the response.

with_images_summaryboolean

Add an images list to the response.

retain_imagesstring

Images to keep: all (default), alt (alt text only) or none.

none · all · alt

Example: alt

retain_linksstring

Links to keep: all (default), text (link text only), none, or gpt-oss (citation format with a links summary).

none · all · text · gpt-oss

retain_mediastring

How video, audio and embedded video appear: none, text, link (default), image or html.

none · text · link · image · html

presetstring

Option preset. Fills only the options the request leaves unset.

reader · index · research · agent · spider

no_gfmstring

true, false or table: disable GitHub-flavored Markdown, or only its tables.

target_selectorstring

CSS selector to extract, 1-2,048 characters; POST also accepts a list of 1-16 selectors. Implies waiting for the selector. Match-all selectors are rejected.

Example: article

remove_selectorstring

CSS selector removed before extraction, 1-2,048 characters; POST also accepts a list of 1-16 selectors.

Example: nav, footer

keep_img_data_urlboolean

Keep inline data: images in Markdown.

with_iframestring

true, false or quoted: include iframe content before extraction.

with_shadow_domboolean

Include open shadow DOM content before extraction.

enginestring

auto (default; lightweight HTTP first, a browser when needed), browser, or curl (no JavaScript).

auto · browser · curl

token_budgetinteger

Integer 1-10,000,000. Reject the page when its token count exceeds the budget.

markdownobject

Turndown options Jina exposes as X-Md-* headers.

markdown_chunkingstring

true, h1-h5, structured or s1-s5: split the Markdown and return chunks.

true · h1 · h2 · h3 · h4 · h5 · structured · s1 · s2 · s3 · s4 · s5

max_tokensinteger

Integer 500-10,000,000. Trim content to this many tokens.

basestring

Resolve relative links against the requested URL (initial, default) or the final URL after redirects (final).

initial · final

Start free · $1 of calls included

Every API your business needs. One key.

7,000+ data and AI APIs behind one key, with backup sources built in.