FirecrawlWebAvailable now

firecrawl/search

firecrawl/search 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
18.4s
Success rate · last 24 hours
100.0%

Pricing

$0.00349 per 10 results. Scraping each result: $0.00175 ($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
query requiredtext—

The search query

tbstext—

Time-based search parameter. Supports predefined time ranges (qdr:h, qdr:d, qdr:w, qdr:m, qdr:y), custom date ranges (cdr:1,cd_min:MM/DD/YYYY,cd_max:MM/DD/YYYY), and sort by date (sbd:1). Values can be combined, e.g. sbd:1,qdr:w.

safetrue or false—

When true, filters explicit content from search results (SafeSearch). Omit to keep the default behavior, which does not apply the filter.

limitnumber (whole)
1 to 100
10

Maximum number of results to return (per source type when using multiple sources)

countrytextUS

ISO country code for geo-targeting search results (e.g. US). For best results, set both this and the location parameter.

sourcesJSON[{"type":"web"}]

Sources to search. Will determine the arrays available in the response. Defaults to ['web']. The plain string form (e.g. ["web", "alexandria"]) is also accepted. The alexandria source returns tool contracts discovered from the Alexandria catalogue in data.tools instead of search results; it is free and is never counted in creditsUsed. Requires the team's Alexandria access to be enabled (403 otherwise).

timeoutnumber (whole)60000

Timeout in milliseconds

locationtext—

Location parameter for search results (e.g. San Francisco,California,United States). For best results, set both this and the country parameter.

categoriesJSON—

Categories to filter results by. Defaults to [], which means results will not be filtered by any categories.

enterpriselist—

Enterprise search options for Zero Data Retention (ZDR). Use ["zdr"] for end-to-end ZDR (10 credits / 10 results) or ["anon"] for anonymized ZDR (2 credits / 10 results). Must be enabled for your team.

highlightstrue or falsetrue

Generate query-relevant highlights for search results. Set to false to return provider descriptions or snippets without highlighting.

toolDetailone of
compact, summary, full
compact

How much of each tool contract to return in data.tools. compact returns only provider, capability, and description. summary returns the full tool entry without options and response. full also returns options, response, and examples.

domainToolstrue or false—

Include tool contracts whose provider matches the domains of the returned web results. Defaults to on when alexandria is among the sources; set false to disable, or true alone to add domain-matched tools beside ordinary web results. Free.

scrapeOptionsJSON{}

Options for scraping search results

excludeDomainslist—

Excludes search results from the specified domains. Domains should be hostnames only, without protocol or path. Cannot be used with includeDomains.

includeDomainslist—

Restricts search results to the specified domains. Domains should be hostnames only, without protocol or path. Cannot be used with excludeDomains.

threatProtectionJSON—

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.

ignoreInvalidURLstrue or falsefalse

Excludes URLs from the search results that are invalid for other Firecrawl endpoints. This helps reduce errors if you are piping data from search into other Firecrawl API endpoints.

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/search",
    "input": {
      "query": "<query>"
    }
  }'