FirecrawlWebAvailable now

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.

Run time p50 · last 24 hours
5.9s
Success rate · last 24 hours
93.9%

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

FieldKindDefaultDescription
url requiredtext—

The URL to scrape

proxyone of
basic, enhanced, auto
auto

Specifies the type of proxy to use.

  • basic: Proxies for scraping sites with none to basic anti-bot solutions.
maxAgenumber (whole)172800000

Returns a cached version of the page if it is younger than this age in milliseconds.

minAgenumber (whole)—

When set, the request only checks the cache and never triggers a fresh scrape.

mobiletrue or falsefalse

Set to true if you want to emulate scraping from a mobile device. Useful for testing responsive pages and taking mobile screenshots.

actionsJSON—

Actions to perform on the page before grabbing the content

formatsJSON[{"type":"markdown"}]

Output formats to include in the response.

headersJSON—

Headers to send with the request. Can be used to send cookies, user-agent, etc.

parsersJSON["pdf","image"]

Controls how files are processed during scraping.

timeoutnumber (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).

waitFornumber (whole)
… to 60000
0

Specify a delay in milliseconds before fetching the content, allowing the page sufficient time to load.

blockAdstrue or falsetrue

Enables ad-blocking and cookie popup blocking.

locationJSON—

Location settings for the request.

lockdowntrue or falsefalse

If true, serves the request from Firecrawl's cache only and never makes an outbound request to the target URL.

redactPIIJSONfalse

Redact personally identifiable information from returned markdown. Pass true to use defaults, or an object to tune mode, entities, and replacement style.

toolDetailone of
compact, summary, full
—

How much of each tool contract to return in data.tools when domainTools is true.

domainToolstrue or falsefalse

When true on an ordinary URL scrape, data.tools lists tool contracts matched to the scraped page's domain (same DiscoveredTool shape as search).

excludeTagslist—

Tags to exclude from the output.

includeTagslist—

Tags to include in the output.

storeInCachetrue or falsetrue

If true, the page will be stored in the Firecrawl index and cache.

onlyMainContenttrue or falsetrue

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.

onlyCleanContenttrue or falsefalse

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).

threatProtectionJSON—

Per-request Threat Protection override.

zeroDataRetentiontrue or falsefalse

If true, this will enable zero data retention for this scrape. To enable this feature, please contact [email protected]

removeBase64Imagestrue or falsetrue

Removes all base 64 images from the markdown output, which may be overwhelmingly long.

skipTlsVerificationtrue or falsetrue

Skip TLS certificate verification when making requests.

checkPromptInjectiontrue or falsefalse

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>"
    }
  }'