Skip to navigation

Exa Search

Exa Search
Exa · Research & Search
POST /v1/search

Web search engine for finding pages, retrieving similar pages, crawling, and dedicated code search across the open web for AI agents.

At a glance

FieldValue
Model idexa-search
Model release date-
Input modalitiesText
Output modalitiesText
Context window-
Weight precision-
Featuresweb_search, semantic_search
Native inferenceNo
NewNo
Supported endpointsPOST /v1/search

Pricing

ChargeSpecRate
Search, Auto (up to 10 results)per search$0.0084
Search, Lite (up to 10 results)per search$0.0048
Search, Deep Lite (up to 10 results)per search$0.0144
Search, Deep (up to 10 results)per search$0.0144
Find Similar (up to 10 results)per search$0.0048
Each Result Above 10per page$0.0012
Result Summaryper page$0.0012
Contents: Text, Highlights or Summary (each)per page$0.0012
Code Searchper code search$0.0048

Example request

curl https://api.empiriolabs.ai/v1/search \
-H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model": "exa-search", "query": "latest LLM benchmarks 2026"}'

Parameters

ParameterTypeRequiredDefaultDescription
querystringyes-Search query (or URL for similar)
operationenumno"search"search runs a web search, similar finds pages like a given URL, contents returns the text of given URLs, and code returns code context for a query. · Allowed: search, similar, contents, code
search_typeenumno"auto"Search mode: auto, lite, deep-lite or deep. auto balances quality and speed, lite is the fastest and lowest priced, deep-lite runs a light multi-step search and deep a thorough one. lite takes only num_results, category, the domain and published-date filters, user_location, moderation, objective and the text and highlights options, and with text or highlights on it can return fewer results. Alias of type. · Allowed: auto, lite, deep-lite, deep
typeenumno"auto"Search mode: auto, lite, deep-lite or deep. auto balances quality and speed, lite is the fastest and lowest priced, deep-lite runs a light multi-step search and deep a thorough one. lite takes only num_results, category, the domain and published-date filters, user_location, moderation, objective and the text and highlights options, and with text or highlights on it can return fewer results. · Allowed: auto, lite, deep-lite, deep
num_resultsnumberno10How many results to return (1-100). · Range: 1 – 100
categoryenumno-Restrict results to a category. company and people take no start_published_date or end_published_date, and people takes no exclude_domains. · Allowed: company, publication, news, personal site, financial report, people
include_domainsstringno-Comma-separated allowlist of domains. Only results from these domains are returned (e.g. arxiv.org, github.com).
exclude_domainsstringno-Comma-separated denylist of domains to filter out of results. Not available with category people.
user_locationstringno-The end user’s location, to localize results: a two-letter ISO 3166-1 country code such as US, or an object with country, latitude and longitude (decimal degrees). Coordinates apply to queries that depend on where the user is, such as nearby places, and set no country, so send country with them. Available with operation search.
moderationbooleannofalseFilter unsafe content out of the results. Available with operation search.
start_published_datestringno-Only return results published after this date. ISO 8601. Not available with category company or people.
end_published_datestringno-Only return results published before this date. ISO 8601. Not available with category company or people.
return_textbooleannotrueReturn each result’s full page text. Alias of text.
show_contentbooleannotrueReturn each result’s full page text. Alias of text.
textbooleannotrueReturn each result’s full page text.
text_max_charsnumberno2000Cap on the cleaned-text length per result. · Range: 100 – 100000
include_html_tagsbooleannofalseKeep HTML tags in the extracted text.
return_highlightsbooleannofalseGet AI-selected key snippets from each result. Alias of highlights. Not used by operation code.
highlightsbooleannofalseInclude relevant text snippets (“highlights”) per result. Not used by operation code.
highlights_querystringno-Query used to score which sentences become highlights.
highlights_max_charsintegerno4000Maximum length of the highlights returned for each result, in characters. · Range: 100 – 100000
return_summarybooleannofalseGet an AI-generated summary of each result. Alias of summary. Not used by operation code, and not available with search_type lite.
summarybooleannofalseReturn an LLM-generated summary of each result. Not used by operation code, and not available with search_type lite.
summary_querystringno-Custom summary prompt (only when summary=True)
max_age_hoursintegerno-Maximum age in hours of the page content returned, up to 720: an older cached copy is fetched again. 0 always fetches pages live and -1 uses only cached copies. When omitted, a cached copy is used where one exists and other pages are fetched live. Not available with search_type lite. · Range: -1 – 720
subpagesnumberno0Number of related subpages to fetch alongside each main result. · Range: 0 – 10
subpage_targetstringno-Keyword guiding which subpages to fetch (e.g. “pricing”).
code_tokensenumno"dynamic"Max tokens of code to include when scraping code-heavy pages. · Allowed: dynamic, 5000, 10000, 20000
objectivestringno-The goal this search serves, beyond the query: which documents should rank first, which to exclude and which facts or figures to pull from them. Up to 4,096 characters. Available with operation search.
system_promptstringno-Instructions for the search and its synthesized output, such as source preferences or how to treat duplicates. It guides the output of output_schema and the research steps of search_type deep-lite and deep. Available with operation search, and not with search_type lite.
additional_queriesarrayno-Up to 10 more queries that search_type deep-lite and deep run beside the main query, each a distinct search direction, as a list or as text with one query per line. Available with search_type deep-lite and deep.
output_schemaobjectno-Returns a synthesized output from the results: a JSON Schema of type text for prose, guided by its description, or of type object for JSON with the properties you define. The response’s output carries the content and, for each field, its sources and confidence, and a text output is also returned as answer. An object schema takes at most 10 properties in all (nested and array item properties count) and 2 levels of nesting, and each array defines items. Available with operation search, and not with search_type lite.
summary_schemaobjectno-A JSON Schema for each result’s summary, which is then returned as a JSON string that matches it. Applies when summary is on. Not used by operation code, and not available with search_type lite.
text_verbosityenumno"compact"How much of each page the text returns: compact keeps the main content, standard adds more of the surrounding page, and full returns the most complete text. It applies to pages fetched live; set max_age_hours to 0 to fetch every page live. Not used by operation code. · Allowed: compact, standard, full
text_include_sectionsarrayno-Return only the text of these page sections: header, navigation, banner, body, sidebar, footer or metadata, as a list or comma-separated. Section detection is best effort and applies to pages fetched live. Not used by operation code. · Allowed: header, navigation, banner, body, sidebar, footer, metadata
text_exclude_sectionsarrayno-Leave the text of these page sections out: header, navigation, banner, body, sidebar, footer or metadata, as a list or comma-separated. Section detection is best effort and applies to pages fetched live. Not used by operation code. · Allowed: header, navigation, banner, body, sidebar, footer, metadata
extras_linksintegerno0Number of links to return from each result’s page, from 0 to 1,000. Not used by operation code, and not available with search_type lite. · Range: 0 – 1000
extras_image_linksintegerno0Number of image URLs to return from each result’s page, from 0 to 1,000. Not used by operation code, and not available with search_type lite. · Range: 0 – 1000
extras_rich_image_linksintegerno0Number of images to return from each result’s page with their alt text, in page order, from 0 to 1,000. Not used by operation code, and not available with search_type lite. · Range: 0 – 1000
extras_rich_linksintegerno0Number of links to return from each page with their anchor text, in page order, from 0 to 1,000. Available with operation contents. · Range: 0 – 1000
extras_code_blocksintegerno0Number of code blocks to return from each page, each with the language it is marked with, from 0 to 1,000. Available with operation contents. · Range: 0 – 1000
livecrawl_timeoutintegerno10000How long to wait for each page fetched live, in milliseconds, from 1 to 90,000. Not used by operation code, and not available with search_type lite. · Range: 1 – 90000
disable_formattingbooleannofalseReturn the results as JSON instead of formatted Markdown.

Notes

Operations

  • search, similar pages, contents, code search

Search types

  • Auto (default), Lite (fastest, lowest price), Deep Lite, Deep

Categories

  • Company, Publication, News, Personal Site, Financial Report, People

Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/exa-search.