Skip to content

Crawl

POST /crawl

Combines Map and Extract: traverse a site from a root URL and return extracted content for each page discovered. Use instructions to steer the crawl toward relevant sections.

Terminal window
curl -X POST https://api.crisps.ai/crawl \
-H "Authorization: Bearer $CRISPS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://docs.crisps.ai",
"instructions": "API reference pages only",
"max_depth": 2,
"limit": 40,
"extract_depth": "basic",
"format": "markdown"
}'
POST /crawl Try it

Accepts all Map parameters (url, instructions, max_depth, max_breadth, limit, path/domain filters, allow_external), plus:

ParameterTypeDefaultDescription
extract_depthstringbasicbasic or advanced — sets per-page extraction cost (1× or 2× per 5 pages).
formatstringmarkdownmarkdown or text.
chunks_per_sourceinteger3Top-N most relevant chunks per page, used with instructions.
include_faviconboolfalseInclude each page’s favicon.
{
"base_url": "https://docs.crisps.ai",
"results": [
{ "url": "https://docs.crisps.ai/api/search/", "raw_content": "# Search\n…" }
]
}

Each result carries raw_content (and favicon when requested). Billed like extract at the chosen extract_depthbasic = 1 credit per 5 extracted pages, advanced = 2 per 5 (so a 10-page advanced crawl ≈ 4 credits) — reported in the X-Credits-* headers.