Call it
curl https://api.peume.com/v1/call/scrape-or-read-a-web-page-as-clean-markdown \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://example.com",
"format": "md",
"proxy": "none",
"timeout": 25
}
}'const res = await fetch("https://api.peume.com/v1/call/scrape-or-read-a-web-page-as-clean-markdown", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "https://example.com",
"format": "md",
"proxy": "none",
"timeout": 25
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/scrape-or-read-a-web-page-as-clean-markdown",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "https://example.com",
"format": "md",
"proxy": "none",
"timeout": 25
}
},
)
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-or-read-a-web-page-as-clean-markdown.
Parameters
urlRequiredstringExample: https://example.com
formatstringboth · md · html
Example: md
proxystringCosts more: isp 0.30 credits, residential 0.60 (plain page 0.15). Use only for a site that blocked a plain request, and try isp before residential.
none · isp · residential
Example: none
countrystringTwo-letter exit country for isp or residential, e.g. us, gb. A country without isp addresses is served through residential at 0.60.
parseobjecttrue for all, or pick {links, media, metadata, tables}
timeoutnumberSeconds, 5 to 120: answer within this time. Send a little less than your client's limit (25 for a 30 s client): the answer is the page, 403 blocked or 504 timeout, never a dropped call. Neither failure is charged.
Example: 25
Other ways to do it
Same job, other sources, cheapest first.
