Call it
curl https://api.peume.com/v1/call/scrape-a-web-page \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://example.com",
"formats": {
"markdown": true
}
}
}'const res = await fetch("https://api.peume.com/v1/call/scrape-a-web-page", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "https://example.com",
"formats": {
"markdown": true
}
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/scrape-a-web-page",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "https://example.com",
"formats": {
"markdown": True
}
}
},
)
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-a-web-page.
Parameters
urlRequiredstringExample: https://example.com
formatsRequiredobjectChoose one basic output; charged JSON, highlights, product and PDF OCR options are excluded.
[object Object] · [object Object] · [object Object] · [object Object]
Example: {"markdown":true}
maxAgeMsintegerMaximum cache age in milliseconds; 0 fetches fresh.
Other ways to do it
Same job, other sources.
Extract web page contentBest sourceExtract clean content from web pages. Checks the cheapest source first and moves to the next one until it finds an answer.Extract pages by URL — content and classificationExtract clean content or highlights from up to twenty URLs, with per-URL status and mode.Fetch rendered web contentFetch a public HTTP(S) page and return LLM-ready contentScrape or read a web page as clean Markdown, HTML or PDFScrape one URL, a web page or a PDF, into clean, LLM-ready Markdown text and/or HTML. picks the cheapest engine that works (archive, plain fetch, real browser that renders JavaScriWeb ScrapeScrape any web page and get its content back as clean Markdown (or HTML, or raw HTML) plus title and metadata.Extract a web pageReturn clean content from one public URL.
