The search endpoint lets you search the web and extract contents from the results.
Documentation Index
Fetch the complete documentation index at: https://exa.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
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 variants. When provided, these queries are used alongside the main query for more comprehensive results.
[
"LLM advancements",
"large language model progress"
]If true, the response is returned as a server-sent events stream of OpenAI-compatible chat completion chunks.
JSON schema for synthesized output. Supported root types are "text" and "object". When provided, the response includes an output object whose content matches this schema. Works with every search type and adds about 2 seconds of synthesis latency on top of the selected search type.
Instructions that guide synthesized output and, for deep-search variants, search planning. Use this for source preferences, novelty or duplication constraints; use outputSchema to control the shape of output.content.
"Prefer official sources and avoid duplicate results."
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, deep-lite is lightweight synthesized output, deep is light deep search, deep-reasoning is base deep search, and instant provides the lowest latency search optimized for real-time applications.
neural, fast, auto, deep-lite, deep, deep-reasoning, instant "auto"
A data category to focus on. The people and company categories have improved quality for finding LinkedIn profiles and company pages. Note: The company and people categories only support a limited set of filters. The following parameters are NOT supported for these categories: startPublishedDate, endPublishedDate, startCrawlDate, endCrawlDate, excludeDomains. For people category, includeDomains only accepts LinkedIn domains. Using unsupported parameters will result in a 400 error.
company, research paper, news, 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 (hello@exa.ai)
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"
Deprecated: Use highlights or text instead. Returns page contents as a combined context string.
true
Enable content moderation to filter unsafe content from search results.
true
OK
Unique identifier for the request
"b5947044c4b78efa9552a7c89b306d95"
A list of search results containing title, URL, published date, and author.
For auto searches, indicates which search type was selected.
neural, deep, deep-reasoning "auto"
Deprecated. Combined context string from search results. Use highlights or text instead.
Synthesized output. Returned when outputSchema is provided.