firecrawl/batch-scrape
Search and scrape the web with Firecrawl Batch Scrape · Many Pages through one Spiral API key. Scrapes a list of URLs in one job, returning each page as markdown, HTML, links, a screenshot or structured JSON. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.001746 per URL ($0.00873 with JSON output). PII redaction, a prompt injection check or lockdown: $0.006984 more per URL each.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 1 hour
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 500 MB
- Largest output
- 5 GB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
urls required | list | — | |
proxy | one of basic, enhanced, auto | auto | Specifies the type of proxy to use.
|
maxAge | number (whole) | 172800000 | 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. |
minAge | number (whole) | — | 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. |
mobile | true or false | false | Set to true if you want to emulate scraping from a mobile device. Useful for testing responsive pages and taking mobile screenshots. |
actions | JSON | — | Actions to perform on the page before grabbing the content |
formats | JSON | [{"type":"markdown"}] | Output formats to include in the response. You can specify one or more formats, either as strings (e.g., |
headers | JSON | — | Headers to send with the request. Can be used to send cookies, user-agent, etc. |
parsers | JSON | ["pdf","image"] | Controls how files are processed during scraping. Each item is a parser name (
If you pass a list, parsers that are not in the list are off. For example, |
timeout | number (whole) 1000 to 300000 | 60000 | Timeout in milliseconds for the request. Minimum is 1000 (1 second). Default is 60000 (60 seconds). Maximum is 300000 (300 seconds). |
waitFor | number (whole) … to 60000 | 0 | 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. |
blockAds | true or false | true | Enables ad-blocking and cookie popup blocking. |
location | JSON | — | 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. |
lockdown | true or false | false | 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. |
redactPII | JSON | false | Redact personally identifiable information from returned markdown. Pass |
excludeTags | list | — | Tags to exclude from the output. |
includeTags | list | — | Tags to include in the output. |
storeInCache | true or false | true | If 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. |
maxConcurrency | number (whole) | — | 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. |
onlyMainContent | true or false | true | 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. |
onlyCleanContent | true or false | false | Beta. Run an additional LLM-based pass over the generated markdown to remove residual boilerplate that |
ignoreInvalidURLs | true or false | true | 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. |
removeBase64Images | true or false | true | 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. |
skipTlsVerification | true or false | false | Skip TLS certificate verification when making requests. |
checkPromptInjection | true or false | false | When enabled, scans the page content for prompt injection attempts before any LLM-backed format (such as json, summary or question) runs. Works with any format except rawBase64. If an injection is detected, the request fails with a 403 and error code SCRAPE_PROMPT_INJECTION_DETECTED. Adds 4 credits when the check runs. If the check cannot scan all of the content, the scrape continues with a warning and the check is not billed. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "firecrawl",
"model": "firecrawl/batch-scrape",
"input": {
"urls": [
"<urls>"
]
}
}'Frequently asked questions
How much does Firecrawl Batch Scrape · Many Pages cost?
$0.001746 per URL ($0.00873 with JSON output). PII redaction, a prompt injection check or lockdown: $0.006984 more per URL each. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use Firecrawl Batch Scrape · Many Pages through an API?
Send `POST /v1/runs` with `"provider": "firecrawl"`, `"model": "firecrawl/batch-scrape"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Firecrawl to use Firecrawl Batch Scrape · Many Pages?
No. Spiral runs it on its own Firecrawl account and charges your Spiral balance.
Can my AI agent use Firecrawl Batch Scrape · Many Pages?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.