Skip to content

Map

POST /map

Traverse a site from a root URL and return the links it discovers — a fast way to understand a site’s structure before deciding what to crawl or extract. No page content is extracted, so it’s cheap.

Terminal window
curl -X POST https://api.crisps.ai/map \
-H "Authorization: Bearer $CRISPS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://docs.crisps.ai",
"max_depth": 2,
"limit": 100,
"select_paths": ["/api/.*"]
}'
POST /map Try it
ParameterTypeDefaultDescription
url requiredstringRoot URL to start from.
instructionsstringNatural-language guidance; discovery is reranked toward it.
max_depthinteger1Hops from the root, 15.
max_breadthinteger20Links followed per page, 1500.
limitinteger50Total links processed.
select_paths / exclude_pathsstring[]Regex filters on the URL path.
select_domains / exclude_domainsstring[]Domain allow/deny lists.
allow_externalboolfalseFollow links off the root domain.
{
"base_url": "https://docs.crisps.ai",
"results": [
"https://docs.crisps.ai/api/search/",
"https://docs.crisps.ai/api/extract/"
]
}

results is a flat list of discovered URLs. Billed at 1 credit per 10 mapped pages (2 per 10 when instructions is set), reported in the X-Credits-* headers.