Exa Search

Exa · Research & Search
POST /v1/searchWeb search engine for finding pages, retrieving similar pages, crawling, and dedicated code search across the open web for AI agents.
At a glance
| Field | Value |
|---|---|
| Model id | exa-search |
| Model release date | - |
| Input modalities | Text |
| Output modalities | Text |
| Context window | - |
| Weight precision | - |
| Features | web_search, semantic_search |
| Native inference | No |
| New | No |
| Supported endpoints | POST /v1/search |
Pricing
| Charge | Spec | Rate |
|---|---|---|
| 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 10 | per page | $0.0012 |
| Result Summary | per page | $0.0012 |
| Contents: Text, Highlights or Summary (each) | per page | $0.0012 |
| Code Search | per 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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | yes | - | Search query (or URL for similar) |
operation | enum | no | "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_type | enum | no | "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 |
type | enum | no | "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_results | number | no | 10 | How many results to return (1-100). · Range: 1 – 100 |
category | enum | no | - | 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_domains | string | no | - | Comma-separated allowlist of domains. Only results from these domains are returned (e.g. arxiv.org, github.com). |
exclude_domains | string | no | - | Comma-separated denylist of domains to filter out of results. Not available with category people. |
user_location | string | no | - | 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. |
moderation | boolean | no | false | Filter unsafe content out of the results. Available with operation search. |
start_published_date | string | no | - | Only return results published after this date. ISO 8601. Not available with category company or people. |
end_published_date | string | no | - | Only return results published before this date. ISO 8601. Not available with category company or people. |
return_text | boolean | no | true | Return each result’s full page text. Alias of text. |
show_content | boolean | no | true | Return each result’s full page text. Alias of text. |
text | boolean | no | true | Return each result’s full page text. |
text_max_chars | number | no | 2000 | Cap on the cleaned-text length per result. · Range: 100 – 100000 |
include_html_tags | boolean | no | false | Keep HTML tags in the extracted text. |
return_highlights | boolean | no | false | Get AI-selected key snippets from each result. Alias of highlights. Not used by operation code. |
highlights | boolean | no | false | Include relevant text snippets (“highlights”) per result. Not used by operation code. |
highlights_query | string | no | - | Query used to score which sentences become highlights. |
highlights_max_chars | integer | no | 4000 | Maximum length of the highlights returned for each result, in characters. · Range: 100 – 100000 |
return_summary | boolean | no | false | Get an AI-generated summary of each result. Alias of summary. Not used by operation code, and not available with search_type lite. |
summary | boolean | no | false | Return an LLM-generated summary of each result. Not used by operation code, and not available with search_type lite. |
summary_query | string | no | - | Custom summary prompt (only when summary=True) |
max_age_hours | integer | no | - | 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 |
subpages | number | no | 0 | Number of related subpages to fetch alongside each main result. · Range: 0 – 10 |
subpage_target | string | no | - | Keyword guiding which subpages to fetch (e.g. “pricing”). |
code_tokens | enum | no | "dynamic" | Max tokens of code to include when scraping code-heavy pages. · Allowed: dynamic, 5000, 10000, 20000 |
objective | string | no | - | 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_prompt | string | no | - | 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_queries | array | no | - | 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_schema | object | no | - | 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_schema | object | no | - | 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_verbosity | enum | no | "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_sections | array | no | - | 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_sections | array | no | - | 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_links | integer | no | 0 | Number 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_links | integer | no | 0 | Number 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_links | integer | no | 0 | Number 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_links | integer | no | 0 | Number 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_blocks | integer | no | 0 | Number 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_timeout | integer | no | 10000 | How 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_formatting | boolean | no | false | Return 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.
