Search
The search endpoint lets you intelligently search the web and extract contents from the results.
By default, it automatically chooses between traditional keyword search and Exa’s embeddings-based model, to find the most relevant results for your query.
Get your Exa API key
Authorizations
API key can be provided either via x-api-key header or Authorization header with Bearer scheme
Body
The query string for the search.
Autoprompt converts your query to an Exa-style query. Enabled by default for auto search, optional for neural search, and not available for keyword search.
The type of search. Neural uses an embeddings-based model, keyword is google-like SERP. Default is auto, which automatically decides between keyword and neural.
keyword
, neural
, auto
A data category to focus on.
company
, research paper
, news
, pdf
, github
, tweet
, personal site
, linkedin profile
, financial report
Number of results to return (up to thousands of results available for custom plans)
x < 100
List of domains to include in the search. If specified, results will only come from these domains.
List of domains to exclude from search results. If specified, no results will be returned from these domains.
Crawl date refers to the date that Exa discovered a link. Results will include links that were crawled after this date. Must be specified in ISO 8601 format.
Crawl date refers to the date that Exa discovered a link. Results will include links that were crawled before this date. Must be specified in ISO 8601 format.
Only links with a published date after this will be returned. Must be specified in ISO 8601 format.
Only links with a published date before this will be returned. Must be specified in ISO 8601 format.
List of strings that must be present in webpage text of results. Currently, only 1 string is supported, of up to 5 words.
List of strings that must not be present in webpage text of results. Currently, only 1 string is supported, of up to 5 words.
Response
Unique identifier for the request
The prompt generated by autoprompt for your query
Timestamp of when autoprompt was generated
The search type that was actually used for this request
neural
, keyword
A list of search results containing title, URL, published date, author, and score.
For auto searches, indicates which search type was selected.
neural
, keyword