Call it
curl https://api.peume.com/v1/call/map-site-urls-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/map-site-urls-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/map-site-urls-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "your url"
}
},
)
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: map-site-urls-2.
Parameters
urlRequiredstringFull URL to scrape, including the http:// or https:// scheme.
maxDepthintegerMaximum crawl depth from the starting URL.
maxPagesintegerMaximum pages to crawl (1-20).
limitintegerMaximum number of URLs to collect.
includePatternsarrayOnly URLs matching these patterns are crawled.
excludePatternsarrayURLs matching these patterns are skipped.
geoCodestringTwo-letter country code to load the page from (default 'us').
proxyCountrystringTwo-letter country code of the proxy exit (default 'us').
timeoutintegerMaximum seconds to wait for the page to fully load (default 300).
superbooleanRoute through real devices to bypass hard anti-bot protection. Default false.
