Skip to main content
POST
Run a neural semantic web search.
Search the web by meaning rather than by keyword. query is required; narrow with category, includeDomains, excludeDomains, startPublishedDate, endPublishedDate, and set numResults. Returns requestId, resolvedSearchType, searchTime, costDollars and results[] with id, title and url. id is the URL, and it is what post_exa_contents takes. Measured at 1.4 seconds — the fastest search here. Billed a flat $0.08 per successful request. ⚠️ Results carry no page text unless you ask: pass contents, or follow up with post_exa_contents. Choose it over post_tavily_search when the query is a description rather than keywords; choose Tavily when you want the text in the same call, and post_exa_answer when you want a written answer rather than a list.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
string
required

The natural-language search query.

Example:

"latest evaluation frameworks for AI agents"

type
enum<string>
default:auto

Search mode. auto lets Exa choose; the deep modes trade latency for higher-quality retrieval.

Available options:
auto,
fast,
instant,
deep-lite,
deep,
deep-reasoning
numResults
integer
default:10

Number of results to return.

Required range: 1 <= x <= 100
category
enum<string>

Optional hint about the kind of pages to prioritize.

Available options:
company,
research paper,
news,
personal site,
financial report,
people
includeDomains
string[]

Only return results from these domains.

excludeDomains
string[]

Exclude results from these domains.

startPublishedDate
string<date-time>

Only return results published on or after this ISO 8601 date.

endPublishedDate
string<date-time>

Only return results published on or before this ISO 8601 date.

contents
object

Content options to return alongside each result.

outputSchema
object

JSON Schema used to synthesize a structured output from the results.

systemPrompt
string

Instruction that guides how the structured output is generated.

Response

200 - application/json

Search completed successfully.

requestId
string

Exa request identifier.

results
object[]

Ranked search results.

output
any | null

Structured output, present only when outputSchema was supplied.

costDollars
any | null

Upstream Exa cost breakdown. Informational only; customer billing is the flat $0.08.