Call it
curl https://api.peume.com/v1/call/extract-page-content \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"urls": [
"https://example.com"
],
"formats": [
"markdown"
],
"crawl_timeout": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/extract-page-content", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"urls": [
"https://example.com"
],
"formats": [
"markdown"
],
"crawl_timeout": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/extract-page-content",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"urls": [
"https://example.com"
],
"formats": [
"markdown"
],
"crawl_timeout": 10
}
},
)
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: extract-page-content.
Parameters
urlsRequiredarrayExample: ["https://example.com"]
formatsarrayExample: ["markdown"]
crawl_timeoutintegerExample: 10
max_ageintegerMaximum age of cached content in seconds.
Other ways to do it
Same job, other sources, cheapest first.
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.
