Call it
curl https://api.peume.com/v1/call/crawl-sitemap \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"domain": "your domain"
}
}'const res = await fetch("https://api.peume.com/v1/call/crawl-sitemap", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"domain": "your domain"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/crawl-sitemap",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"domain": "your domain"
}
},
)
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-sitemap.
Parameters
domainRequiredstringDomain to build a sitemap for, e.g. 'example.com'.
maxLinksintegerMaximum number of links to return. Default 10000, max 100000.
sitemapUrlstringExplicit sitemap URL. When provided, exactly this sitemap is crawled instead of discovering the domain's sitemaps.
urlRegexstringRE2-compatible pattern. Only matching URLs are returned and counted against maxLinks.
timeoutMSintegerUpstream timeout in milliseconds (max 300000). aborts the call with a 408 when exceeded. Keep it below the endpoint's requestTimeoutMs so the provider answers before the platform's own budget expires.
