Call it
curl https://api.peume.com/v1/call/scrape-markdown \
-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-markdown", {
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-markdown",
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-markdown.
Parameters
urlRequiredstringFull URL to scrape, including the http:// or https:// scheme.
geoCodestringTwo-letter country code to load the page from (default 'us').
proxyCountrystringTwo-letter country code of the proxy exit (default 'us').
browserRenderingbooleanRender the page in a real Chromium browser. Required for JavaScript-heavy sites and SPAs. Default false.
waitUntilstringWhen the browser considers navigation complete (browser rendering only). 'networkidle0' is the most thorough but slowest. Default 'domcontentloaded'.
domcontentloaded · load · networkidle0 · networkidle2
timeoutintegerMaximum seconds to wait for the page to fully load (default 300).
blockResourcesbooleanSkip images, fonts, and stylesheets to speed up scraping. Default false.
waitForSelectorstringWait until this CSS selector appears in the DOM before extracting — for content that loads after the initial page.
superbooleanRoute through real devices to bypass hard anti-bot protection. Default true; send false to turn it off.
