Call it
curl https://api.peume.com/v1/call/discover-site-urls-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {}
}'const res = await fetch("https://api.peume.com/v1/call/discover-site-urls-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/discover-site-urls-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {}
},
)
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-2.
Parameters
No parameters needed.
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 caWeb 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.
