Are you an AI agent that needs a Firecrawl API key? See firecrawl.dev/agent-onboarding/SKILL.md for automated onboarding instructions.
Batch Scrape
1 min read
post/batch/scrape
Request example
Response
post/batch/scrape
Authorization
Body
application/jsonA webhook specification object.
Show child attributesHide child attributes
The URL to send the webhook to. This will trigger for batch scrape started (batch_scrape.started), every page scraped (batch_scrape.page) and when the batch scrape is completed (batch_scrape.completed or batch_scrape.failed). The response will be the same as the
/scrape endpoint.Headers to send to the webhook URL.
Show child attributesHide child attributes
Custom metadata that will be included in all webhook payloads for this crawl
Type of events that should be sent to the webhook URL. (default: all)
Maximum number of concurrent scrapes. This parameter allows you to set a concurrency limit for this batch scrape. If not specified, the batch scrape adheres to your team's concurrency limit.
If invalid URLs are specified in the urls array, they will be ignored. Instead of them failing the entire request, a batch scrape using the remaining valid URLs will be created, and the invalid URLs will be returned in the invalidURLs field of the response.
Default: true
Output formats to include in the response. You can specify one or more formats, either as strings (e.g.,
'markdown') or as objects with additional options (e.g., { type: 'json', schema: {...} }). Some formats require specific options to be set. Example: ['markdown', { type: 'json', schema: {...} }].Default: ["markdown"]
Show child attributesHide child attributes
Only return the main content of the page excluding headers, navs, footers, etc. This is a deterministic HTML-level filter applied before markdown is generated; no LLM is involved.
Default: true
Beta. Run an additional LLM-based pass over the generated markdown to remove residual boilerplate that
onlyMainContent can miss (cookie banners, ad blocks, social share widgets, breadcrumbs, newsletter signups, comment sections, related-article lists). Headings, lists, tables, code blocks, image references, and inline links are preserved. Can be combined with onlyMainContent (the most common setup) or used on its own. Skipped with a warning when the markdown exceeds the cleaning model's output token limit (the original markdown is preserved). Not supported on zero-data-retention requests.Default: false
Returns a cached version of the page if it is younger than this age in milliseconds. If a cached version of the page is older than this value, the page will be scraped. If you do not need extremely fresh data, enabling this can speed up your scrapes by 500%. Defaults to 2 days.
Default: 172800000
When set, the request only checks the cache and never triggers a fresh scrape. The value is in milliseconds and specifies the minimum age the cached data must be. If matching cached data exists, it is returned instantly. If no cached data is found, a 404 with error code SCRAPE_NO_CACHED_DATA is returned. Set to 1 to accept any cached data regardless of age.
Headers to send with the request. Can be used to send cookies, user-agent, etc.
Specify a delay in milliseconds before fetching the content, allowing the page sufficient time to load. This waiting time is in addition to Firecrawl's smart wait feature.
Default: 0
Set to true if you want to emulate scraping from a mobile device. Useful for testing responsive pages and taking mobile screenshots.
Default: false
Timeout in milliseconds for the request. Minimum is 1000 (1 second). Default is 60000 (60 seconds). Maximum is 300000 (300 seconds).
Default: 60000
Range: 1000–300000
Controls how files are processed during scraping. When "pdf" is included (default), the PDF content is extracted and converted to markdown format, with billing based on the number of pages (1 credit per page). When an empty array is passed, the PDF file is returned in base64 encoding with a flat rate of 1 credit for the entire PDF.
Default: ["pdf"]
Show child attributesHide child attributes
Actions to perform on the page before grabbing the content
Show child attributesHide child attributes
Location settings for the request. When specified, this will use an appropriate proxy if available and emulate the corresponding language and timezone settings. Defaults to 'US' if not specified.
Show child attributesHide child attributes
ISO 3166-1 alpha-2 country code (e.g., 'US', 'AU', 'DE', 'JP')
Default: "US"
Pattern: ^[A-Z]{2}$
Preferred languages and locales for the request in order of priority. Defaults to the language of the specified location. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language
Removes all base 64 images from the markdown output, which may be overwhelmingly long. This does not affect html or rawHtml formats. The image's alt text remains in the output, but the URL is replaced with a placeholder.
Default: true
Specifies the type of proxy to use.
- basic: Proxies for scraping sites with none to basic anti-bot solutions. Fast and usually works.
- enhanced: Enhanced proxies for scraping sites with advanced anti-bot solutions. Slower, but more reliable on certain sites. Billed at the same credit cost as basic.
- auto: Firecrawl will automatically retry scraping with enhanced proxies if the basic proxy fails. Enhanced proxies carry no credit surcharge, so either way only the regular cost is billed.
Default: "auto"
Options:
basicenhancedautoIf true, the page will be stored in the Firecrawl index and cache. Setting this to false is useful if your scraping activity may have data protection concerns. Using some parameters associated with sensitive scraping (e.g. actions, headers) will force this parameter to be false.
Default: true
If true, serves the request from Firecrawl's cache only and never makes an outbound request to the target URL. Designed for compliance-constrained or air-gapped environments where the scrape request itself could leak sensitive information. On cache miss, returns a 404 with error code SCRAPE_LOCKDOWN_CACHE_MISS (the URL is never logged on miss). Lockdown requests are treated as zero data retention. Default maxAge is extended to 2 years so existing cached pages remain eligible. Billed at 5 credits on hit, 1 credit on cache miss.
Default: false
Redact personally identifiable information from returned markdown. Pass
true to use defaults, or an object to tune mode, entities, and replacement style.Default: false
Show child attributesHide child attributes
Enable persistent browser storage across scrape and interact sessions. Pass a profile when scraping to preserve cookies, localStorage, and session data. Sessions with the same profile name share browser state.
Show child attributesHide child attributes
A name for the profile. Scrapes with the same name share browser state (cookies, localStorage, sessions).
Length: 1–128
When true, browser state is saved back to the profile when the interact session stops. Set to false to load existing data without writing. Only one saving session is allowed at a time.
Default: true
Per-request Threat Protection override. Fields you provide replace the corresponding fields of your organization's policy for this request only; omitted fields keep their organization-level values. Requires Threat Protection to be enabled for your team (enterprise feature) — otherwise the request is rejected with a 403. If your organization has disabled request overrides, any request that includes this object is rejected with a 403. If Threat Protection is enforced for your team,
mode may not be set to off.Show child attributesHide child attributes
URL scanning mode for this request.
normal checks URLs against Google Web Risk (+2 credits per URL scanned).Options:
offnormalNormalized risk score (0–100) at or above which a classifier verdict blocks the URL. Lower is stricter.
Range: 0–100
Domains to always block, as plain domains (
example.com) or wildcard globs (*.example.com). No protocol, path, or port.Items: max 1000
Domains to always allow, as plain domains or wildcard globs. Wins over every other rule.
Items: max 1000
Top-level domains to block outright, lowercase without the leading dot (e.g.
zip).Items: max 1000
What to do when the classifier can't be reached:
closed blocks the request, open allows it.Options:
openclosedUser attribution included with SIEM logging events when SIEM Logging is enabled for the organization.
Show child attributesHide child attributes
If true, this will enable zero data retention for this batch scrape. To enable this feature, please contact help@firecrawl.dev
Default: false
Responses
application/json
Successful response

