Call it
curl https://api.peume.com/v1/call/map-a-website-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://example.com",
"search": "documentation",
"limit": 10,
"includeSubdomains": false,
"ignoreQueryParameters": true
}
}'const res = await fetch("https://api.peume.com/v1/call/map-a-website-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "https://example.com",
"search": "documentation",
"limit": 10,
"includeSubdomains": false,
"ignoreQueryParameters": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/map-a-website-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "https://example.com",
"search": "documentation",
"limit": 10,
"includeSubdomains": False,
"ignoreQueryParameters": 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: map-a-website-2.
Parameters
urlRequiredstringExample: https://example.com
searchstringExample: documentation
limitintegerExample: 10
includeSubdomainsbooleanExample: false
ignoreQueryParametersbooleanExample: true
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 bounded lists of URLs on a domain without fetching page bodies.
