Call it
curl https://api.peume.com/v1/call/discover-site-urls \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "your url",
"q": "your q"
}
}'const res = await fetch("https://api.peume.com/v1/call/discover-site-urls", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "your url",
"q": "your q"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/discover-site-urls",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "your url",
"q": "your q"
}
},
)
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: discover-site-urls.
Parameters
urlstringidentity
qstringidentity
limitintegerfilter; default 10; maximum discovered URLs
Other ways to do it
Same job, other sources, cheapest first.
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.Map a websiteDiscover URLs on a website without scraping their content.
