Call it
curl https://api.peume.com/v1/call/map-a-website \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"domain": "docs.example",
"maxLinks": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/map-a-website", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"domain": "docs.example",
"maxLinks": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/map-a-website",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"domain": "docs.example",
"maxLinks": 10
}
},
)
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-a-website.
Parameters
domainRequiredstringExample: docs.example
maxLinksRequiredintegerChoose 10, 25, 50 or 100 URLs to bound the response.
10 · 25 · 50 · 100
Example: 10
Other ways to do it
Same job, other sources, cheapest first.
Discover site URLsBest sourceDiscover the URLs on a website. Checks the cheapest source first and moves to the next one until it finds an answer.List up to 100 URLs of a site without crawling itA site's URLs from the sources that already know them: its sitemaps, the links on its home page and the newest Common Crawl indexes (mode full adds the Wayback Machine). One caDiscover site URLsList URLs from a site's sitemap or discovered links.Web MapMap an entire website into a clean list of its URLs (with titles and descriptions) in a single call.Find relevant URLs on a websiteMap a site and return at most 1,000 URLs ranked for a search query.Map a websiteDiscover URLs on a website without scraping their content.
