Call it
curl https://api.peume.com/v1/call/extract-web-pages \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"urls": [
"https://example.com"
],
"advanced_settings": {
"full_content": true
}
}
}'const res = await fetch("https://api.peume.com/v1/call/extract-web-pages", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"urls": [
"https://example.com"
],
"advanced_settings": {
"full_content": true
}
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/extract-web-pages",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"urls": [
"https://example.com"
],
"advanced_settings": {
"full_content": 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: extract-web-pages.
Parameters
urlsRequiredarrayExample: ["https://example.com"]
objectivestringWhat you want from the pages; focuses the excerpts. Up to 5,000 characters.
search_queriesarrayKeyword queries that focus the excerpts.
max_chars_totalintegerUpper bound on excerpt characters across all results.
session_idstringclient_modelstringadvanced_settingsobject{full_content: true or {max_chars_per_result}, excerpt_settings {max_chars_per_result}, fetch_policy {max_age_seconds >= 600, timeout_seconds, disable_cache_fallback}}. Full content is off by default.
Example: {"full_content":true}
Other ways to do it
Same job, other sources, cheapest first.
