POST
/
answer

Get your Exa API key

Authorizations

x-api-key
string
header
required

Body

application/json
query
string
required

The question or query to answer.

Minimum length: 1
mode
enum<string>
default:
fast

accurate generates expanded queries based on the original queries, increasing the result coverage for the response. fast only uses your original query.

Available options:
fast,
accurate
stream
boolean
default:
false

If true, the response is returned as a server-sent events (SSS) stream.

text
boolean
default:
false

If true, the response includes full text content in the search results

Response

200 - application/json
answer
string

The generated answer based on search results.

requestId
string

Unique identifier for the request

sources
object[]

Search results used to generate the answer.