Documentation Index
Fetch the complete documentation index at: https://mintlify.com/firecrawl/firecrawl/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/crawl
Start a crawl job to recursively scrape URLs starting from a base URL.Authentication
This endpoint requires authentication using a Bearer token. Include your API key in theAuthorization header:
Request Body
The base URL to start crawling from
URL pathname regex patterns that exclude matching URLs from the crawl. For example, if you set
"excludePaths": ["blog/.*"] for the base URL firecrawl.dev, any results matching that pattern will be excluded, such as https://www.firecrawl.dev/blog/firecrawl-launch-week-1-recap.URL pathname regex patterns that include matching URLs in the crawl. Only the paths that match the specified patterns will be included in the response. For example, if you set
"includePaths": ["blog/.*"] for the base URL firecrawl.dev, only results matching that pattern will be included, such as https://www.firecrawl.dev/blog/firecrawl-launch-week-1-recap.Maximum depth to crawl relative to the base URL. Basically, the max number of slashes the pathname of a scraped URL may contain.
Maximum depth to crawl based on discovery order. The root site and sitemapped pages has a discovery depth of 0. For example, if you set it to 1, and you set ignoreSitemap, you will only crawl the entered URL and all URLs that are linked on that page.
Ignore the website sitemap when crawling
Do not re-scrape the same path with different (or none) query parameters
Maximum number of pages to crawl. Default limit is 10000.
Allows the crawler to follow internal links to sibling or parent URLs, not just child paths.false: Only crawls deeper (child) URLs.
→ e.g. /features/feature-1 → /features/feature-1/tips ✅
→ Won’t follow /pricing or / ❌true: Crawls any internal links, including siblings and parents.
→ e.g. /features/feature-1 → /pricing, /, etc. ✅Use true for broader internal coverage beyond nested paths.
Allows the crawler to follow links to external websites.
Delay in seconds between scrapes. This helps respect website rate limits.
A webhook specification object.
Options for scraping each page. See Scrape Options for full details.Common options include:
formats: Output formats (e.g.,["markdown", "html", "links"])onlyMainContent: Extract only main content (default:true)includeTags: HTML tags to includeexcludeTags: HTML tags to excludewaitFor: Milliseconds to wait before scrapingmobile: Emulate mobile device
Response
Indicates if the crawl job was successfully started
The unique identifier for the crawl job. Use this ID to check the status and retrieve results.
The base URL that is being crawled
Example Request
Example Response
Error Responses
402 Payment Required
429 Too Many Requests
500 Server Error
Next Steps
After starting a crawl job, use the returnedid to:
- Check crawl status and retrieve results
- Get crawl errors if any occurred
- Cancel the crawl if needed