Skip to main content

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 the Authorization header:

Request Body

string
required
The base URL to start crawling from
array
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.
array
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.
integer
default:"10"
Maximum depth to crawl relative to the base URL. Basically, the max number of slashes the pathname of a scraped URL may contain.
integer
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.
boolean
default:"false"
Ignore the website sitemap when crawling
boolean
default:"false"
Do not re-scrape the same path with different (or none) query parameters
integer
default:"10000"
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.
number
Delay in seconds between scrapes. This helps respect website rate limits.
object
A webhook specification object.
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 include
  • excludeTags: HTML tags to exclude
  • waitFor: Milliseconds to wait before scraping
  • mobile: Emulate mobile device

Response

boolean
Indicates if the crawl job was successfully started
string
The unique identifier for the crawl job. Use this ID to check the status and retrieve results.
string
The base URL that is being crawled

Example Request

Example Response

Error Responses

Next Steps

After starting a crawl job, use the returned id to: