The search endpoint lets you intelligently search the web and extract contents from the results.
By default, it automatically chooses the best search method using Exa’s embeddings-based model and other techniques to find the most relevant results for your query. You can also use Deep search for comprehensive results with query expansion and detailed context.
API key can be provided either via x-api-key header or Authorization header with Bearer scheme
The query string for the search.
"Latest developments in LLM capabilities"
Additional query variations for deep search. Only works with type="deep". When provided, these queries are used alongside the main query for comprehensive results.
[
"LLM advancements",
"large language model progress"
]The type of search. Neural uses an embeddings-based model, auto (default) intelligently combines neural and other search methods, fast uses streamlined versions of the search models, and deep provides comprehensive search with query expansion and detailed context.
neural, fast, auto, deep "auto"
A data category to focus on. The people and company categories have improved quality for finding LinkedIn profiles and company pages.
company, research paper, news, pdf, github, tweet, personal site, financial report, people "research paper"
The two-letter ISO country code of the user, e.g. US.
"US"
Number of results to return. Limits vary by search type:
If you want to increase the num results beyond these limits, contact sales ([email protected])
x <= 10010
List of domains to include in the search. If specified, results will only come from these domains.
1200["arxiv.org", "paperswithcode.com"]List of domains to exclude from search results. If specified, no results will be returned from these domains.
1200Crawl 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.
"2023-01-01T00:00:00.000Z"
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.
"2023-12-31T00:00:00.000Z"
Only links with a published date after this will be returned. Must be specified in ISO 8601 format.
"2023-01-01T00:00:00.000Z"
Only links with a published date before this will be returned. Must be specified in ISO 8601 format.
"2023-12-31T00:00:00.000Z"
List of strings that must be present in webpage text of results. Currently, only 1 string is supported, of up to 5 words.
["large language model"]List of strings that must not be present in webpage text of results. Currently, only 1 string is supported, of up to 5 words. Checks from the first 1000 words of the webpage text.
["course"]Return page contents as a context string for LLM. When true, combines all result contents into one string. We recommend using 10000+ characters for best results, though no limit works best. Context strings often perform better than highlights for RAG applications.
true
Enable content moderation to filter unsafe content from search results.
true
OK
Unique identifier for the request
"b5947044c4b78efa9552a7c89b306d95"
The search type that was actually used for this request
neural, deep "neural"
A list of search results containing title, URL, published date, and author.
For auto searches, indicates which search type was selected.
neural, deep "auto"
Return page contents as a context string for LLM. When true, combines all result contents into one string. Context strings often perform better than highlights for LLMs.