Call it
curl https://api.peume.com/v1/call/find-relevant-urls-on-a-website \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://docs.example.com",
"search_query": "billing and credit documentation",
"top_n": 10,
"include_subdomain": true
}
}'const res = await fetch("https://api.peume.com/v1/call/find-relevant-urls-on-a-website", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "https://docs.example.com",
"search_query": "billing and credit documentation",
"top_n": 10,
"include_subdomain": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/find-relevant-urls-on-a-website",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "https://docs.example.com",
"search_query": "billing and credit documentation",
"top_n": 10,
"include_subdomain": 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: find-relevant-urls-on-a-website.
Parameters
urlRequiredstringExample: https://docs.example.com
search_queryRequiredstringExample: billing and credit documentation
top_nRequiredintegerThe 1,000-URL cap keeps this request inside first one-credit map band.
Example: 10
include_subdomainbooleanExample: true
include_urlsarrayexclude_urlsarrayOther 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.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.
