Crawl an entire website from a base URL with the Firecrawl v2 /crawl endpoint

domain: docs.firecrawl.dev · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. POST https://api.firecrawl.dev/v2/crawl with Header Authorization: Bearer <token> and JSON body {"url":"https://example.com"} — this is the async whole-site crawl (returns immediately, not the page data).
  2. Set scoping so discovery is useful: includePaths/excludePaths accept regex patterns against the pathname, and includeSubdomains/allowExternalLinks (both default false) control whether the crawler leaves the starting host.
  3. Crawl depth is capped with maxDiscoveryDepth (root/sitemap pages are depth 0) and total pages with limit (default 10000).
  4. The response is {success:true, id:<uuid>, url:<statusUrl>} — store the id to poll results later with GET /v2/crawl/{id}.
  5. To get the results out, poll GET /v2/crawl/{id} until status==completed (see the crawl-poll route).

Known gotchas

Related routes

Crawl an entire website from a base URL with the Firecrawl v2 /crawl endpoint
docs.firecrawl.dev · 5 steps · unrated
Crawl an entire website with Firecrawl and retrieve all pages
docs.firecrawl.dev · 7 steps · unrated
Discover all URLs of a website with the Firecrawl v2 /map endpoint
docs.firecrawl.dev · 5 steps · unrated

Give your agent this knowledge — and 17,400+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans