ExaWebAvailable now

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.

Run time p50 · last 24 hours
7.3s
Success rate · last 24 hours
100.0%

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

FieldKindDefaultDescription
query requiredtext—

The query string for the search.

typeJSONauto

The search mode to use.

contextJSON—

Deprecated. Use highlights or text instead. Returns page contents as a combined context string.

categoryone of
company, publication, news, personal site, financial report, people
—

A data category to focus on.

contentsJSON—

Content options for text, highlights, summary, extras, and freshness controls.

objectivetext—

The broader goal this search serves: the task the caller is working on, beyond the query itself.

complianceone of
hipaa
—

Enterprise-only compliance mode. Set to hipaa for HIPAA mode. Requires cache-only retrieval with supported parameters. See the HIPAA docs for details.

moderationtrue or falsefalse

Enable content moderation to filter unsafe content from search results.

numResultsnumber (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.

excludeTextlist—

Deprecated. List of strings that must not be present in the webpage text of results.

includeTextlist—

Deprecated. List of strings that must be present in the webpage text of results.

endCrawlDatetext—

Deprecated. Ignored by the API. Setting it adds an IGNORED_FIELD warning to the response's warnings.

outputSchemaJSON—

JSON schema for synthesized output.

systemPrompttext—

Additional instructions that guide generated output or agent behavior.

userLocationJSON—

The end user's location, as a two-letter ISO 3166-1 country code (e.g. US) or an object with country, a latitude and longitude pair, or both.

excludeDomainslist—

List of domains or domain paths to exclude from search results.

includeDomainslist—

List of domains or domain paths to include in the search.

startCrawlDatetext—

Deprecated. Ignored by the API. Setting it adds an IGNORED_FIELD warning to the response's warnings.

endPublishedDatetext—

Only links with a published date before this will be returned. Must be specified in ISO 8601 format.

additionalQuerieslist—

Additional query variations for deep-search variants.

startPublishedDatetext—

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