exa/search
exa/search is a web tool from Exa that runs in the background and returns structured JSON. Pay as you go, with one API key.
Pricing
$0.0091 per search with 10 results ($0.0052 lite or instant, $0.0156 deep, $0.0195 deep reasoning). Each result after 10: $0.0013. Summaries: $0.0013 per result.
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 query string for the search. |
type | JSON | auto | The search mode to use. |
context | JSON | — | Deprecated. Use |
category | one of company, publication, news, personal site, financial report, people | — | A data category to focus on. |
contents | JSON | — | Content options for text, highlights, summary, extras, and freshness controls. |
objective | text | — | The broader goal this search serves: the task the caller is working on, beyond the query itself. |
compliance | one of hipaa | — | Enterprise-only compliance mode. Set to |
moderation | true or false | false | Enable content moderation to filter unsafe content from search results. |
numResults | number (whole) 1 to 100 | 10 | Number of results to return. Limits vary by search type. The maximum public limit is 100 results. Contact sales ([email protected]) to discuss higher limits. |
excludeText | list | — | Deprecated. List of strings that must not be present in the webpage text of results. |
includeText | list | — | Deprecated. List of strings that must be present in the webpage text of results. |
endCrawlDate | text | — | Deprecated. Ignored by the API. Setting it adds an |
outputSchema | JSON | — | JSON schema for synthesized output. |
systemPrompt | text | — | Additional instructions that guide generated output or agent behavior. |
userLocation | JSON | — | The end user's location, as a two-letter ISO 3166-1 country code (e.g. |
excludeDomains | list | — | List of domains or domain paths to exclude from search results. |
includeDomains | list | — | List of domains or domain paths to include in the search. |
startCrawlDate | text | — | Deprecated. Ignored by the API. Setting it adds an |
endPublishedDate | text | — | Only links with a published date before this will be returned. Must be specified in ISO 8601 format. |
additionalQueries | list | — | Additional query variations for deep-search variants. |
startPublishedDate | text | — | Only links with a published date after this will be returned. Must be specified in ISO 8601 format. |
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": "exa",
"model": "exa/search",
"input": {
"query": "<query>"
}
}'