Call it
curl https://api.peume.com/v1/call/scrape \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/scrape", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/scrape",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "your url"
}
},
)
print(res.json()["output"])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.
Parameters
urlRequiredstringThe https URL to scrape.
formatsarrayOutput formats (default markdown). LLM extraction is the separate 'json' option.
jsonbooleanExtract structured JSON from the page with an LLM — costs five times a plain scrape (see the price card's JSON tier).
jsonSchemaobjectJSON Schema the extracted object must conform to (with json: true).
jsonPromptstringWhat to extract from the page (with json: true).
onlyMainContentbooleanStrip headers, navs, and footers (default true).
includeTagsarrayexcludeTagsarraymaxAgeintegerCache-reuse window in ms — a fresh-enough cached copy returns much faster. 0 forces a live fetch.
waitForintegerExtra ms to wait after load for JavaScript-heavy pages.
mobilebooleanblockAdsbooleanremoveBase64Imagesbooleanproxystring'auto' (default) retries with enhanced anti-bot proxies when the plain fetch is blocked — no extra charge either way.
basic · enhanced · auto
locationobjecttimeoutintegerPer-page deadline in ms; time queued for a browser counts too.
