firecrawl/scrape
firecrawl/scrape is a web tool from Firecrawl that runs in the background and returns structured JSON. Pay as you go, with one API key.
Pricing
$0.00175 per page ($0.00873 with JSON output).
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 2 minutes
- Run deadline
- 5 minutes
- Longest run, end to end
- 167 minutes
- Largest inline input
- 1 MB
- Largest input file
- 500 MB
- Largest output
- 5 GB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
url required | text | — | The URL to scrape |
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. |
minAge | number (whole) | — | When set, the request only checks the cache and never triggers a fresh scrape. |
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. |
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. |
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. |
blockAds | true or false | true | Enables ad-blocking and cookie popup blocking. |
location | JSON | — | Location settings for the request. |
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. |
redactPII | JSON | false | Redact personally identifiable information from returned markdown. Pass |
toolDetail | one of compact, summary, full | — | How much of each tool contract to return in |
domainTools | true or false | false | When true on an ordinary URL scrape, |
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. |
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 |
threatProtection | JSON | — | Per-request Threat Protection override. |
zeroDataRetention | true or false | false | If true, this will enable zero data retention for this scrape. To enable this feature, please contact [email protected] |
removeBase64Images | true or false | true | Removes all base 64 images from the markdown output, which may be overwhelmingly long. |
skipTlsVerification | true or false | true | 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. |
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/scrape",
"input": {
"url": "<url>"
}
}'