Call it
curl https://api.peume.com/v1/call/crawl-a-website-5 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://example.com",
"chunks_per_source": 3,
"max_depth": 1,
"max_breadth": 20,
"limit": 10,
"allow_external": true
}
}'const res = await fetch("https://api.peume.com/v1/call/crawl-a-website-5", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "https://example.com",
"chunks_per_source": 3,
"max_depth": 1,
"max_breadth": 20,
"limit": 10,
"allow_external": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/crawl-a-website-5",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "https://example.com",
"chunks_per_source": 3,
"max_depth": 1,
"max_breadth": 20,
"limit": 10,
"allow_external": 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: crawl-a-website-5.
Parameters
urlRequiredstringExample: https://example.com
instructionsstringNatural-language crawl instructions; doubles the mapping portion of the charge.
chunks_per_sourceintegerExample: 3
max_depthintegerExample: 1
max_breadthintegerExample: 20
limitintegerA whole number from 1 to 20, required on 's key. own default is 50.
Example: 10
select_pathsarrayselect_domainsarrayexclude_pathsarrayexclude_domainsarrayallow_externalbooleanExample: true
include_imagesbooleanExample: false
extract_depthstringbasic · advanced
Example: basic
formatstringmarkdown · text
Example: markdown
include_faviconbooleanExample: false
timeoutnumberExample: 150
Other ways to do it
Same job, other sources, cheapest first.
