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.
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
| Field | Kind | Default | Description |
|---|---|---|---|
query required | text | — | The search query |
tbs | text | — | Time-based search parameter. Supports predefined time ranges ( |
safe | true or false | — | When |
limit | number (whole) 1 to 100 | 10 | Maximum number of results to return (per source type when using multiple sources) |
country | text | US | ISO country code for geo-targeting search results (e.g. |
sources | JSON | [{"type":"web"}] | Sources to search. Will determine the arrays available in the response. Defaults to ['web']. The plain string form (e.g. |
timeout | number (whole) | 60000 | Timeout in milliseconds |
location | text | — | Location parameter for search results (e.g. |
categories | JSON | — | Categories to filter results by. Defaults to [], which means results will not be filtered by any categories. |
enterprise | list | — | Enterprise search options for Zero Data Retention (ZDR). Use |
highlights | true or false | true | Generate query-relevant highlights for search results. Set to false to return provider descriptions or snippets without highlighting. |
toolDetail | one of compact, summary, full | compact | How much of each tool contract to return in |
domainTools | true or false | — | Include tool contracts whose provider matches the domains of the returned web results. Defaults to on when |
scrapeOptions | JSON | {} | Options for scraping search results |
excludeDomains | list | — | Excludes search results from the specified domains. Domains should be hostnames only, without protocol or path. Cannot be used with includeDomains. |
includeDomains | list | — | Restricts search results to the specified domains. Domains should be hostnames only, without protocol or path. Cannot be used with excludeDomains. |
threatProtection | JSON | — | 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, |
ignoreInvalidURLs | true or false | false | 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>"
}
}'