Call it
curl https://api.peume.com/v1/call/map-site-urls \
-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/map-site-urls", {
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/map-site-urls",
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: map-site-urls.
Parameters
domainRequiredstringDomain to map, e.g. 'stripe.com'.
includeSubdomainsbooleanInclude URLs on subdomains (default false).
maxLinksintegerMaximum number of URLs to return (default 10000).
sitemapUrlstringFetch this sitemap instead of discovering sitemaps. Must belong to the domain or a subdomain.
urlRegexstringOnly URLs matching this regex are returned (and counted against maxLinks).
excludeUrlRegexstringURLs matching this regex are dropped, even when they match urlRegex.
searchstringRank URLs by relevance to a topic or phrase, e.g. 'pricing and plans' (2 credits instead of 1).
timeoutMSintegerUpstream deadline in milliseconds (1000-110000). stops the call when it passes; the cap leaves the run time to return the answer within the endpoint's budget.
