Call it
curl https://api.peume.com/v1/call/map-website-links \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/map-website-links", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/map-website-links",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "your url"
}
},
)
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-website-links.
Parameters
include_markdownstringWhether to include the page's main content as Markdown in `markdown`. Default: `true`.
max_depthstringUsed with `mode=crawl`. Defines how many links deep the crawl follows from the starting page. `0` extracts only the starting page. Default: `2`. Maximum: `3`.
include_sitemapstringUsed with `mode=map`. Defines whether to also read the website's sitemaps, from `/sitemap.xml` and `/robots.txt`. Default: `true`.
prefetch_delaystringA delay in milliseconds before the first page is fetched (0–10,000). Default: `0`. The Extract API doesn't run JavaScript, so this is not a rendering delay.
include_tagsstringA comma-separated list of CSS selectors to keep, e.g. `article, main,.post-content`. Everything else inside `<body>` is removed before parsing.
max_pagesstringUsed with `mode=crawl`. Defines the maximum number of pages to extract, including the starting page. Default: `10`. Maximum: `100`. Each successfully extracted page consumes one search credit.
exclude_tagsstringA comma-separated list of CSS selectors to remove before parsing, e.g. `nav, footer,.ads, #cookie-banner`.
include_subdomainsstringUsed with `mode=map` and `mode=crawl`. Defines whether to include other subdomains of the same website, e.g. `blog.example.com` when starting from `www.example.com`. Default: `false` (same host only).
devicestringThe device to use to get the results. It can be set to `desktop` (default) to use a regular browser, `tablet` to use a tablet browser (currently using iPads), or `mobile` to use a mobile browser.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
urlRequiredstringThe URL of the page to extract. It must be an absolute `http` or `https` URL. Search pages that have a dedicated engine, such as Google or Bing, are redirected to that engine.
timeoutstringThe HTTP request timeout in milliseconds (1,000–120,000). Default: `30,000` (30 seconds).
