Call it
curl https://api.peume.com/v1/call/extract-pages-by-url-content-and-classification \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"urls": [
"https://example.com"
],
"mode": "standard",
"max_age_seconds": 86400,
"format": "markdown",
"timeout": 30,
"include_images": false
}
}'const res = await fetch("https://api.peume.com/v1/call/extract-pages-by-url-content-and-classification", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"urls": [
"https://example.com"
],
"mode": "standard",
"max_age_seconds": 86400,
"format": "markdown",
"timeout": 30,
"include_images": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/extract-pages-by-url-content-and-classification",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"urls": [
"https://example.com"
],
"mode": "standard",
"max_age_seconds": 86400,
"format": "markdown",
"timeout": 30,
"include_images": False
}
},
)
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-pages-by-url-content-and-classification.
Parameters
urlsRequiredarrayExample: ["https://example.com"]
modestringstandard · advanced · auto
Example: standard
querystringReturn intent-focused highlights instead of complete page content.
max_age_secondsintegerExample: 86400
formatstringmarkdown · text
Example: markdown
timeoutintegerExample: 30
include_imagesbooleanExample: false
include_videosbooleanExample: false
include_audiobooleanExample: false
include_linksobjectOther 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.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.Extract web pagesReturn focused excerpts or full Markdown content from up to 20 public URLs.
