{"uid":"cap_7EgVaagyqjc6GaAxc6kEH","slug":"exa-search-eaa916e8","name":"Exa Web Search","description":"Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.","url":"https://api.exa.ai/search?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"type":{"anyOf":[{"type":"string","const":"auto","description":"The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications."},{"type":"string","const":"lite","description":"Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported."},{"type":"string","const":"deep-lite","description":"Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search."},{"type":"string","const":"deep","description":"Conducts comprehensive multi-step research with synthesis."},{"type":"string","const":"instant","x-mint":{"post":["Legacy"]},"description":"Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter.","x-exa-lifecycle":"legacy","x-exa-replacement":"lite"},{"type":"string","const":"fast","x-mint":{"post":["Legacy"]},"description":"Legacy. Use `lite` instead. Runs a reduced-latency search for user-facing and interactive workflows. Unlike `lite`, it accepts every search parameter.","x-exa-lifecycle":"legacy","x-exa-replacement":"lite"},{"type":"string","const":"deep-reasoning","x-mint":{"post":["Legacy"]},"description":"Legacy. Use `deep` instead. Runs `deep` with stronger reasoning at each step, for complex analysis and decision-making tasks. For agentic, multi-step research, use the Agent API.","x-exa-lifecycle":"legacy","x-exa-replacement":"deep"},{"type":"string"},{"type":"null"}],"default":"auto","description":"The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications.","x-exa-enum-open":true},"query":{"type":"string","minLength":1,"description":"The query string for the search."},"stream":{"anyOf":[{"type":"boolean","default":false,"description":"Requests server-sent events for synthesized output streaming. Streaming is currently used only when outputSchema is provided; otherwise the endpoint returns the normal JSON search response."},{"type":"null"}]},"context":{"anyOf":[{"oneOf":[{"type":"boolean","deprecated":true,"description":"Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.","x-exa-lifecycle":"deprecated","x-exa-replacement":["highlights","text"]},{"type":"object","deprecated":true,"properties":{"maxCharacters":{"type":"integer","maximum":1000000,"minimum":1,"description":"Maximum character limit for the context string."}},"description":"Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.","x-exa-lifecycle":"deprecated","x-exa-replacement":["highlights","text"]}],"deprecated":true,"description":"Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.","x-exa-lifecycle":"deprecated","x-exa-replacement":["highlights","text"]},{"type":"null"}]},"category":{"anyOf":[{"enum":["company","publication","news","personal site","financial report","people"],"type":"string","description":"A data category to focus on. Other strings are accepted and used as category hints. `people` and `company` return higher-quality people profiles and company pages. `publication` returns scholarly publications such as research papers, preprints, and journal articles, with metadata like authors, venue, and citations. `company` and `people` do not support `startPublishedDate` or `endPublishedDate`, and `people` also does not support `excludeDomains`. Requests that set an unsupported filter return a 400 error."},{"type":"null"}]},"contents":{"anyOf":[{"type":"object","properties":{"text":{"anyOf":[{"oneOf":[{"type":"boolean","title":"Simple text retrieval","default":false,"description":"If true, returns full page text with default settings. If false, disables text return."},{"type":"object","title":"Advanced text options","properties":{"linkStyle":{"oneOf":[{"type":"string","const":"full","description":"Each link as a markdown link, `[anchor](url)`."},{"type":"string","const":"citation","description":"Each link as a numbered reference, `[anchor][n]`, with the URLs listed as `[n]: url` at the end of the text. A `maxCharacters` limit can cut off the list."},{"type":"null"}],"description":"Keeps the page's links in the returned text, in the chosen format. Links are removed from the text when omitted."},"verbosity":{"anyOf":[{"enum":["compact","standard","full"],"type":"string","default":"compact","description":"Controls text rendering verbosity. compact focuses on main content, standard includes more surrounding page context, and full requests the most complete rendered text. Some pages may produce identical standard and full output."},{"type":"null"}]},"maxCharacters":{"anyOf":[{"type":"integer","maximum":1000000,"minimum":1,"description":"Maximum character limit for the full page text. Useful for controlling response size and API costs."},{"type":"null"}]},"excludeSections":{"anyOf":[{"type":"array","items":{"enum":["header","navigation","banner","body","sidebar","footer","metadata"],"type":"string"},"description":"Exclude content classified into these semantic page sections. Section classification is best-effort."},{"type":"null"}]},"includeHtmlTags":{"anyOf":[{"type":"boolean","default":false,"description":"If true, include lightweight HTML tags in returned text instead of plain markdown-style text."},{"type":"null"}]},"includeSections":{"anyOf":[{"type":"array","items":{"enum":["header","navigation","banner","body","sidebar","footer","metadata"],"type":"string"},"description":"Best-effort. Only include content classified into these semantic page sections. Section classification may be unavailable or incomplete for some pages; validate output if strict filtering is required."},{"type":"null"}]}},"description":"Advanced options for controlling text extraction. Use this when you need to limit text length or include HTML structure. Set `maxAgeHours: 0` to apply `includeHtmlTags`, `verbosity`, and section filters to freshly fetched content."}],"description":"Text extraction options for each result."},{"type":"null"}]},"extras":{"anyOf":[{"type":"object","properties":{"links":{"anyOf":[{"type":"integer","default":0,"maximum":1000,"minimum":0,"description":"Number of URLs to return from each webpage."},{"type":"null"}]},"richLinks":{"anyOf":[{"type":"integer","default":0,"maximum":1000,"minimum":0,"deprecated":true,"description":"Deprecated. Number of rich links to return for each result.","x-exa-lifecycle":"deprecated"},{"type":"null"}]},"codeBlocks":{"anyOf":[{"type":"integer","default":0,"maximum":1000,"minimum":0,"deprecated":true,"description":"Deprecated. Number of code blocks to return for each result.","x-exa-lifecycle":"deprecated"},{"type":"null"}]},"imageLinks":{"anyOf":[{"type":"integer","default":0,"maximum":1000,"minimum":0,"description":"Number of images to return for each result."},{"type":"null"}]},"richImageLinks":{"anyOf":[{"type":"integer","default":0,"maximum":1000,"minimum":0,"description":"Number of rich image links to return for each result."},{"type":"null"}]}},"description":"Extra parameters to pass."},{"type":"null"}]},"context":{"anyOf":[{"oneOf":[{"type":"boolean","deprecated":true,"description":"Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.","x-exa-lifecycle":"deprecated","x-exa-replacement":["highlights","text"]},{"type":"object","deprecated":true,"properties":{"maxCharacters":{"type":"integer","maximum":1000000,"minimum":1,"description":"Maximum character limit for the context string."}},"description":"Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.","x-exa-lifecycle":"deprecated","x-exa-replacement":["highlights","text"]}],"deprecated":true,"description":"Deprecated. Use `highlights` or `text` instead. Returns page contents as a combined context string.","x-exa-lifecycle":"deprecated","x-exa-replacement":["highlights","text"]},{"type":"null"}]},"summary":{"anyOf":[{"type":"object","properties":{"query":{"anyOf":[{"type":"string","description":"Custom query for the LLM-generated summary."},{"type":"null"}]},"schema":{"anyOf":[{"type":"object","description":"JSON schema for structured output from summary. See https://json-schema.org/overview/what-is-jsonschema for JSON Schema documentation.","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/JsonValue"}},{"type":"null"}]}},"description":"Summary of the webpage."},{"type":"null"}]},"subpages":{"anyOf":[{"type":"integer","default":0,"maximum":100,"minimum":0,"deprecated":true,"description":"Deprecated. The number of subpages to crawl for each result. The actual number crawled may be limited by system constraints. To crawl subpages, send the result URLs to `/contents` with `subpages`.","x-exa-lifecycle":"deprecated"},{"type":"null"}]},"livecrawl":{"anyOf":[{"enum":["never","always","fallback","preferred"],"type":"string","deprecated":true,"description":"Deprecated. Use `maxAgeHours` instead. Does not guarantee freshly fetched content. Cannot be combined with `maxAgeHours`.","x-exa-lifecycle":"deprecated","x-exa-replacement":"maxAgeHours"},{"type":"null"}]},"highlights":{"anyOf":[{"oneOf":[{"type":"boolean","title":"Simple highlights retrieval","default":false,"description":"If true, returns highlights with default settings. If false, disables highlights."},{"type":"object","title":"Advanced highlights options","properties":{"query":{"anyOf":[{"type":"string","description":"Custom query that guides which highlights the LLM picks."},{"type":"null"}]},"dynamic":{"anyOf":[{"type":"boolean","x-mint":{"post":["Beta"]},"description":"Enable Dynamic Highlights (research preview): considers all results together and allocates a single shared context budget across the result set instead of a per-document budget. Not compatible with maxCharacters. Beta: requires the `Exa-Beta: dynamic-highlights-2026-08-28` request header; requests setting `dynamic` without it are rejected.","x-exa-beta-flag":"dynamic-highlights-2026-08-28","x-exa-lifecycle":"beta"},{"type":"null"}]},"verbosity":{"anyOf":[{"enum":["low","medium","high"],"type":"string","x-mint":{"post":["Beta"]},"description":"Preset highlight length: `low`, `medium`, and `high` allocate progressively larger token budgets for the returned highlights. With highlights.dynamic, the preset sets a single shared budget across the whole result set instead of a per-URL budget. Exact budgets are tuned by Exa and may change. Not compatible with maxCharacters or numSentences. Beta: requires the `Exa-Beta: dynamic-highlights-2026-08-28` request header; requests setting `verbosity` without it are rejected.","x-exa-beta-flag":"dynamic-highlights-2026-08-28","x-exa-lifecycle":"beta"},{"type":"null"}]},"numSentences":{"anyOf":[{"type":"integer","minimum":1,"deprecated":true,"description":"Deprecated. Use `maxCharacters` instead. Currently mapped to a character budget of about 1333 characters per sentence. Pass highlights: true for default highlights, or { query } to guide selection with your own query.","x-exa-lifecycle":"deprecated","x-exa-replacement":"maxCharacters"},{"type":"null"}]},"maxCharacters":{"anyOf":[{"type":"integer","maximum":1000000,"minimum":1,"description":"Maximum number of characters to return for highlights. Controls the total length of highlight text returned per URL. Not compatible with highlights.dynamic."},{"type":"null"}]},"highlightsPerUrl":{"anyOf":[{"type":"integer","minimum":1,"deprecated":true,"description":"Deprecated. Currently ignored. Pass highlights: true for default highlights, or { query } to guide selection with your own query.","x-exa-lifecycle":"deprecated"},{"type":"null"}]}},"description":"Advanced options for steering highlight extraction. Pass highlights: true for the highest-quality default; supply this object only when you need to guide selection with your own query."}],"description":"Text snippets the LLM identifies as most relevant from each page."},{"type":"null"}]},"maxAgeHours":{"anyOf":[{"type":"integer","maximum":720,"minimum":-1,"description":"Maximum age of cached content, in hours, up to 720. Cached content younger than this is used, and older pages are fetched fresh. A failed fetch may return the latest cached copy instead. `0` returns live content, fetched within the last 60 seconds. `-1` always uses the cache. When omitted, cached content is used when available and pages without it are fetched live."},{"type":"null"}]},"snapshotAsOf":{"anyOf":[{"oneOf":[{"type":"string","format":"date-time","description":"ISO 8601 date-time."},{"type":"string","format":"date","description":"ISO 8601 date (`YYYY-MM-DD`), interpreted as midnight UTC."}],"description":"Return the newest stored version of each page as of this instant. Accepts an ISO 8601 date-time (`2026-01-15T00:00:00Z`) or a date-only value (`2026-01-15`), which is interpreted as midnight UTC. Historical requests are served from stored versions only and never fetch the live page."},{"type":"null"}]},"subpageTarget":{"anyOf":[{"oneOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"array","items":{"type":"string","maxLength":100,"minLength":1},"maxItems":100,"minItems":0}],"deprecated":true,"description":"Deprecated. Term to find specific subpages of search results. Can be a single string or an array of strings. To target subpages, send the result URLs to `/contents` with `subpageTarget`.","x-exa-lifecycle":"deprecated"},{"type":"null"}]},"livecrawlTimeout":{"anyOf":[{"type":"integer","default":10000,"maximum":90000,"description":"The timeout for livecrawling in milliseconds.","exclusiveMinimum":0},{"type":"null"}]},"crawledBeforeDate":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"date-time","deprecated":true,"description":"Deprecated. Use `snapshotAsOf` instead. Alias of snapshotAsOf with identical behavior.","x-exa-lifecycle":"deprecated","x-exa-replacement":"snapshotAsOf"}}},{"type":"null"}]},"objective":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"description":"The broader goal this search serves: the task the caller is working on, beyond the query itself. When exposing this field to an agent as a tool parameter, describe it as: \"Goal for this search turn; say which documents should rank first, which should be excluded, and what specific facts or figures to pull from them.\""},"compliance":{"anyOf":[{"enum":["hipaa"],"type":"string","description":"Enterprise-only compliance mode. Set to `hipaa` for HIPAA mode. Requires cache-only retrieval with supported parameters. See the HIPAA docs for details."},{"type":"null"}]},"moderation":{"anyOf":[{"type":"boolean","default":false,"description":"Enable content moderation to filter unsafe content from search results."},{"type":"null"}]},"numResults":{"anyOf":[{"type":"integer","default":10,"maximum":100,"minimum":1,"description":"Number of results to return. Limits vary by search type. The maximum public limit is 100 results. Contact support@exa.ai to discuss higher limits."},{"type":"null"}]},"excludeText":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":4096},"maxItems":50},{"type":"null"}],"deprecated":true,"description":"Deprecated. List of strings that must not be present in the webpage text of results. Matching is approximate (word-level rather than exact phrase). Up to 50 strings, each up to 4096 characters.","x-exa-lifecycle":"deprecated"},"includeText":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":4096},"maxItems":50},{"type":"null"}],"deprecated":true,"description":"Deprecated. List of strings that must be present in the webpage text of results. Matching is approximate (word-level rather than exact phrase), so a multi-word entry can match pages where its words appear separately. Up to 50 strings, each up to 4096 characters.","x-exa-lifecycle":"deprecated"},"endCrawlDate":{"anyOf":[{"type":"string","format":"date-time","deprecated":true,"description":"Deprecated. Ignored by the API. Setting it adds an `IGNORED_FIELD` warning to the response's `warnings`.","x-exa-lifecycle":"deprecated"},{"type":"null"}]},"outputSchema":{"anyOf":[{"type":"object","oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"text"},"description":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"object"},"required":{"type":"array","items":{"type":"string"}},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/JsonValue"}}],"description":"Any JSON value."}},"description":{"type":"string"},"additionalProperties":{"type":"boolean"}},"additionalProperties":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/JsonValue"}}],"description":"Any JSON value."}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/JsonValue"}}],"description":"Any JSON value."}}],"description":"Any JSON value."}}],"description":"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 except `lite` and adds about 2 seconds of synthesis latency on top of the selected search type. Object schemas are limited to 10 properties in total (nested and array items properties count toward the limit) and 2 levels of nesting, and every array must define items.","discriminator":{"mapping":{"text":"#/components/schemas/OutputSchemaText","object":"#/components/schemas/OutputSchemaObject"},"propertyName":"type"}},{"type":"null"}]},"systemPrompt":{"anyOf":[{"type":"string","description":"Additional instructions that guide generated output or agent behavior. Use this for source preferences, novelty constraints, duplication constraints, or other behavior guidance."},{"type":"null"}]},"userLocation":{"anyOf":[{"oneOf":[{"type":"string","description":"The two-letter ISO 3166-1 country code of the user, e.g. `US`."},{"type":"object","required":["country"],"properties":{"country":{"type":"string","description":"The two-letter ISO 3166-1 country code of the user, e.g. `US`."}},"description":"The user's country only. Equivalent to the string form.","additionalProperties":false},{"type":"object","required":["latitude","longitude"],"properties":{"country":{"type":"string","description":"The two-letter ISO 3166-1 country code of the user, e.g. `US`."},"latitude":{"type":"number","maximum":90,"minimum":-90,"description":"The user's latitude in decimal degrees."},"longitude":{"type":"number","maximum":180,"minimum":-180,"description":"The user's longitude in decimal degrees."}},"description":"The user's coordinates, with an optional country.","additionalProperties":false}],"description":"The end user's location, as a two-letter ISO 3166-1 country code (e.g. `US`) or an object with `country`, a `latitude` and `longitude` pair, or both. The country localizes results. Coordinates are used only for queries that name no place but depend on where the user is, such as \"coffee near me\". They do not set a country, so send `country` with them to localize results. Send only the precision your use case needs."},{"type":"null"}]},"excludeDomains":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":1200,"description":"List of domains or domain paths to exclude from search results. Each entry can be a hostname (for example, `example.com`), a hostname with a path prefix (for example, `example.com/docs`), or a wildcard subdomain (for example, `*.example.com`). If specified, no results will be returned from the matching domains or paths. Use this parameter for domain or path filtering instead of adding a `site:` operator to the query."},{"type":"null"}]},"includeDomains":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":1200,"description":"List of domains or domain paths to include in the search. Each entry can be a hostname (for example, `example.com`), a hostname with a path prefix (for example, `example.com/docs`), or a wildcard subdomain (for example, `*.example.com`). If specified, results will only come from the matching domains or paths. Use this parameter for domain or path filtering instead of adding a `site:` operator to the query."},{"type":"null"}]},"startCrawlDate":{"anyOf":[{"type":"string","format":"date-time","deprecated":true,"description":"Deprecated. Ignored by the API. Setting it adds an `IGNORED_FIELD` warning to the response's `warnings`.","x-exa-lifecycle":"deprecated"},{"type":"null"}]},"userIdentifier":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]+$","maxLength":64,"minLength":1},{"type":"null"}],"example":"7f3a9c52-1d4e-4b8a-9e60-2c5d8a1f0b37","description":"An opaque ID your platform assigns to the end user this request is made for, such as a UUID. Lets Exa attribute usage to that end user rather than your whole team. Must not contain personal information such as an email address, phone number, username, or name. Hash such values before sending them. 1 to 64 characters: letters, digits, underscores, and hyphens. Retained even when your team has Zero Data Retention enabled. Does not affect results."},"endPublishedDate":{"anyOf":[{"type":"string","format":"date-time","description":"Only links with a published date before this will be returned. Must be specified in ISO 8601 format."},{"type":"null"}]},"additionalQueries":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10,"minItems":1,"description":"Additional query variations for deep-search variants. Only works with a deep-search type. When provided, these queries are used alongside the main query for broader results."},{"type":"null"}]},"startPublishedDate":{"anyOf":[{"type":"string","format":"date-time","description":"Only links with a published date after this will be returned. Must be specified in ISO 8601 format."},{"type":"null"}]}}},"responseSchema":{"oneOf":[{"type":"object","required":["results","output"],"properties":{"output":{"type":"object","required":["content","grounding"],"properties":{"content":{"oneOf":[{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/JsonValue"}}],"description":"Any JSON value."}}],"description":"Synthesized content. String by default, or object when outputSchema is provided."},"grounding":{"type":"array","items":{"type":"object","required":["field","citations","confidence"],"properties":{"field":{"type":"string","description":"Field path in output.content, for example content or companies[0].funding."},"citations":{"type":"array","items":{"type":"object","required":["url","title"],"properties":{"url":{"type":"string","format":"uri","description":"Source URL."},"title":{"type":"string","description":"Source title."}},"additionalProperties":false},"description":"Sources supporting this output field."},"confidence":{"enum":["low","medium","high"],"type":"string","description":"Model-reported reliability for this field."}},"additionalProperties":false},"description":"Field-level grounding for synthesized output."}},"description":"Synthesized output. Returned when outputSchema is provided.","additionalProperties":false},"context":{"type":"string","deprecated":true,"description":"Deprecated. Use `results[].highlights` or `results[].text` instead. Combined context string from search results.","x-exa-lifecycle":"deprecated","x-exa-replacement":["results[].highlights","results[].text"]},"notices":{"type":"array","items":{"type":"object","required":["code","path","message"],"properties":{"code":{"type":"string","example":"RESTRICTIONS_RELAXED","description":"Machine-readable notice code. Handle codes you do not recognize without failing. See [notice codes](https://exa.ai/docs/search/best-practices#notice-codes) for what each code means."},"path":{"type":"string","example":"/query","description":"JSON Pointer to the request field the notice is about."},"details":{"type":"object","description":"Optional extra context for a harness or model. An open object: no schema is promised for its keys, and it never carries information that `message` lacks.","propertyNames":{"type":"string"},"additionalProperties":{}},"message":{"type":"string","description":"Human-readable and complete on its own; written to be shown to a model."}},"description":"A note about how the results were produced, written to be passed to a model with the results.","additionalProperties":false},"description":"Notices about how the results were produced. Pass them to your model with the results. Omitted when there are none."},"results":{"type":"array","items":{"type":"object","required":["title","url"],"properties":{"id":{"type":"string","description":"The temporary ID for the document. Useful for the /contents endpoint."},"url":{"type":"string","format":"uri","description":"The URL of the search result."},"text":{"type":"string","description":"The full content text of the search result."},"image":{"type":"string","format":"uri","description":"The URL of an image associated with the search result, if available."},"title":{"type":"string","description":"The title of the search result."},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"If available, the author of the content."},"extras":{"type":"object","properties":{"links":{"type":"array","items":{"type":"string"},"description":"Array of links from the search result."},"richLinks":{"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"The URL of the link."},"anchor":{"type":"string","description":"The anchor text of the link, when the page provides one."}},"additionalProperties":false},"description":"Array of links with their anchor text, in the order they appear on the page."},"codeBlocks":{"type":"array","items":{"type":"object","required":["text","source"],"properties":{"text":{"type":"string","description":"The contents of the code block."},"source":{"type":"string","description":"The language the code block is annotated with, if any."}},"additionalProperties":false},"description":"Array of code blocks from the search result."},"imageLinks":{"type":"array","items":{"type":"string"},"description":"Array of image URLs from the search result."},"richImageLinks":{"type":"array","items":{"type":"object","required":["url"],"properties":{"alt":{"type":"string","description":"The alt text of the image, when the page provides one."},"url":{"type":"string","description":"The URL of the image."}},"additionalProperties":false},"description":"Array of images with their alt text, in the order the images appear on the page."}},"description":"Results from extras. Each field is returned only when requested via contents.extras.","additionalProperties":false},"favicon":{"type":"string","format":"uri","description":"The URL of the favicon for the search result's domain."},"summary":{"type":"string","description":"Summary of the webpage."},"entities":{"type":"array","items":{"type":"object","oneOf":[{"$ref":"#/components/schemas/SearchCompanyEntityOutput"},{"$ref":"#/components/schemas/SearchPersonEntityOutput"},{"$ref":"#/components/schemas/SearchPublicationEntityOutput"}],"discriminator":{"mapping":{"person":"#/components/schemas/SearchPersonEntityOutput","company":"#/components/schemas/SearchCompanyEntityOutput","publication":"#/components/schemas/SearchPublicationEntityOutput"},"propertyName":"type"}},"description":"Structured entity data for company, person, publication, or product search results. Returned for supported entity-backed categories and for product listing pages."},"subpages":{"type":"array","items":{"type":"object","required":["title","url"],"properties":{"id":{"type":"string","description":"The temporary ID for the document. Useful for the /contents endpoint."},"url":{"type":"string","format":"uri","description":"The URL of the search result."},"image":{"type":"string","format":"uri","description":"The URL of an image associated with the search result, if available."},"title":{"type":"string","description":"The title of the search result."},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"If available, the author of the content."},"favicon":{"type":"string","format":"uri","description":"The URL of the favicon for the search result's domain."},"publishedDate":{"type":"string","format":"date-time","description":"An estimate of the creation date, from parsing HTML content, as an ISO 8601 date-time in UTC (`YYYY-MM-DDTHH:mm:ss.sssZ`). A date known only to the day has the time `00:00:00.000Z`."}},"additionalProperties":false},"description":"Array of subpages for the search result."},"highlights":{"type":"array","items":{"type":"string"},"description":"Array of highlights extracted from the search result content."},"publishedDate":{"type":"string","format":"date-time","description":"An estimate of the creation date, from parsing HTML content, as an ISO 8601 date-time in UTC (`YYYY-MM-DDTHH:mm:ss.sssZ`). A date known only to the day has the time `00:00:00.000Z`."}},"additionalProperties":false},"description":"A list of search results containing title, URL, published date, and author."},"warnings":{"type":"array","items":{"type":"object","required":["code","path","message"],"properties":{"code":{"type":"string","example":"IGNORED_FIELD","description":"Machine-readable warning code, UPPER_SNAKE. `IGNORED_FIELD`: the field at `path` is accepted and has no effect. Codes are an open set: tolerate codes you do not recognize."},"path":{"type":"string","example":"/startCrawlDate","description":"JSON Pointer to the request field the warning is about."},"message":{"type":"string","description":"Human-readable and complete on its own: what to change in the request."}},"description":"A note about the request itself, for whoever maintains the code that builds it. Log it; do not pass it to a model. A warning never changes the status code or the results.","additionalProperties":false},"description":"Warnings about the request, such as a field that has no effect. Log them; do not pass them to a model. Omitted when there are none."},"requestId":{"type":"string","description":"Unique identifier for the request."},"searchTime":{"type":"number","description":"Server-side processing time in milliseconds. May exclude output synthesis time, so it can be lower than end-to-end latency."},"costDollars":{"type":"object","properties":{"total":{"type":"number","format":"float","description":"Estimated total dollar cost for the completed request. This response value is not an invoice record."},"search":{"type":"object","properties":{"neural":{"type":"number","format":"float","description":"Cost of neural search operations."},"keyword":{"type":"number","format":"float","description":"Cost of keyword search operations."}},"description":"Estimated search cost by retrieval mode. Some search types report their cost only in `total`.","additionalProperties":false},"summary":{"type":"number","format":"float","description":"Cost of per-result summaries requested with `contents.summary` on `/search` and `/findSimilar` requests."},"contents":{"type":"object","properties":{"text":{"type":"number","format":"float","description":"Cost of text extraction."},"summary":{"type":"number","format":"float","description":"Cost of per-result summary generation."},"highlights":{"type":"number","format":"float","description":"Cost of highlight extraction."}},"description":"Cost breakdown for `/contents` requests.","additionalProperties":false}},"description":"Estimated dollar cost of the request. Which fields appear depends on the endpoint.","additionalProperties":false},"resolvedSearchType":{"type":"string","deprecated":true,"description":"Deprecated. May be an empty string. Do not branch on this value.","x-exa-lifecycle":"deprecated"}},"additionalProperties":false},{"type":"object","required":["results"],"properties":{"context":{"type":"string","deprecated":true,"description":"Deprecated. Use `results[].highlights` or `results[].text` instead. Combined context string from search results.","x-exa-lifecycle":"deprecated","x-exa-replacement":["results[].highlights","results[].text"]},"notices":{"type":"array","items":{"type":"object","required":["code","path","message"],"properties":{"code":{"type":"string","example":"RESTRICTIONS_RELAXED","description":"Machine-readable notice code. Handle codes you do not recognize without failing. See [notice codes](https://exa.ai/docs/search/best-practices#notice-codes) for what each code means."},"path":{"type":"string","example":"/query","description":"JSON Pointer to the request field the notice is about."},"details":{"type":"object","description":"Optional extra context for a harness or model. An open object: no schema is promised for its keys, and it never carries information that `message` lacks.","propertyNames":{"type":"string"},"additionalProperties":{}},"message":{"type":"string","description":"Human-readable and complete on its own; written to be shown to a model."}},"description":"A note about how the results were produced, written to be passed to a model with the results.","additionalProperties":false},"description":"Notices about how the results were produced. Pass them to your model with the results. Omitted when there are none."},"results":{"type":"array","items":{"type":"object","required":["title","url"],"properties":{"id":{"type":"string","description":"The temporary ID for the document. Useful for the /contents endpoint."},"url":{"type":"string","format":"uri","description":"The URL of the search result."},"text":{"type":"string","description":"The full content text of the search result."},"image":{"type":"string","format":"uri","description":"The URL of an image associated with the search result, if available."},"title":{"type":"string","description":"The title of the search result."},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"If available, the author of the content."},"extras":{"type":"object","properties":{"links":{"type":"array","items":{"type":"string"},"description":"Array of links from the search result."},"richLinks":{"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"The URL of the link."},"anchor":{"type":"string","description":"The anchor text of the link, when the page provides one."}},"additionalProperties":false},"description":"Array of links with their anchor text, in the order they appear on the page."},"codeBlocks":{"type":"array","items":{"type":"object","required":["text","source"],"properties":{"text":{"type":"string","description":"The contents of the code block."},"source":{"type":"string","description":"The language the code block is annotated with, if any."}},"additionalProperties":false},"description":"Array of code blocks from the search result."},"imageLinks":{"type":"array","items":{"type":"string"},"description":"Array of image URLs from the search result."},"richImageLinks":{"type":"array","items":{"type":"object","required":["url"],"properties":{"alt":{"type":"string","description":"The alt text of the image, when the page provides one."},"url":{"type":"string","description":"The URL of the image."}},"additionalProperties":false},"description":"Array of images with their alt text, in the order the images appear on the page."}},"description":"Results from extras. Each field is returned only when requested via contents.extras.","additionalProperties":false},"favicon":{"type":"string","format":"uri","description":"The URL of the favicon for the search result's domain."},"summary":{"type":"string","description":"Summary of the webpage."},"entities":{"type":"array","items":{"type":"object","oneOf":[{"$ref":"#/components/schemas/SearchCompanyEntityOutput"},{"$ref":"#/components/schemas/SearchPersonEntityOutput"},{"$ref":"#/components/schemas/SearchPublicationEntityOutput"}],"discriminator":{"mapping":{"person":"#/components/schemas/SearchPersonEntityOutput","company":"#/components/schemas/SearchCompanyEntityOutput","publication":"#/components/schemas/SearchPublicationEntityOutput"},"propertyName":"type"}},"description":"Structured entity data for company, person, publication, or product search results. Returned for supported entity-backed categories and for product listing pages."},"subpages":{"type":"array","items":{"type":"object","required":["title","url"],"properties":{"id":{"type":"string","description":"The temporary ID for the document. Useful for the /contents endpoint."},"url":{"type":"string","format":"uri","description":"The URL of the search result."},"image":{"type":"string","format":"uri","description":"The URL of an image associated with the search result, if available."},"title":{"type":"string","description":"The title of the search result."},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"If available, the author of the content."},"favicon":{"type":"string","format":"uri","description":"The URL of the favicon for the search result's domain."},"publishedDate":{"type":"string","format":"date-time","description":"An estimate of the creation date, from parsing HTML content, as an ISO 8601 date-time in UTC (`YYYY-MM-DDTHH:mm:ss.sssZ`). A date known only to the day has the time `00:00:00.000Z`."}},"additionalProperties":false},"description":"Array of subpages for the search result."},"highlights":{"type":"array","items":{"type":"string"},"description":"Array of highlights extracted from the search result content."},"publishedDate":{"type":"string","format":"date-time","description":"An estimate of the creation date, from parsing HTML content, as an ISO 8601 date-time in UTC (`YYYY-MM-DDTHH:mm:ss.sssZ`). A date known only to the day has the time `00:00:00.000Z`."}},"additionalProperties":false},"description":"A list of search results containing title, URL, published date, and author."},"warnings":{"type":"array","items":{"type":"object","required":["code","path","message"],"properties":{"code":{"type":"string","example":"IGNORED_FIELD","description":"Machine-readable warning code, UPPER_SNAKE. `IGNORED_FIELD`: the field at `path` is accepted and has no effect. Codes are an open set: tolerate codes you do not recognize."},"path":{"type":"string","example":"/startCrawlDate","description":"JSON Pointer to the request field the warning is about."},"message":{"type":"string","description":"Human-readable and complete on its own: what to change in the request."}},"description":"A note about the request itself, for whoever maintains the code that builds it. Log it; do not pass it to a model. A warning never changes the status code or the results.","additionalProperties":false},"description":"Warnings about the request, such as a field that has no effect. Log them; do not pass them to a model. Omitted when there are none."},"requestId":{"type":"string","description":"Unique identifier for the request."},"searchTime":{"type":"number","description":"Server-side processing time in milliseconds. May exclude output synthesis time, so it can be lower than end-to-end latency."},"costDollars":{"type":"object","properties":{"total":{"type":"number","format":"float","description":"Estimated total dollar cost for the completed request. This response value is not an invoice record."},"search":{"type":"object","properties":{"neural":{"type":"number","format":"float","description":"Cost of neural search operations."},"keyword":{"type":"number","format":"float","description":"Cost of keyword search operations."}},"description":"Estimated search cost by retrieval mode. Some search types report their cost only in `total`.","additionalProperties":false},"summary":{"type":"number","format":"float","description":"Cost of per-result summaries requested with `contents.summary` on `/search` and `/findSimilar` requests."},"contents":{"type":"object","properties":{"text":{"type":"number","format":"float","description":"Cost of text extraction."},"summary":{"type":"number","format":"float","description":"Cost of per-result summary generation."},"highlights":{"type":"number","format":"float","description":"Cost of highlight extraction."}},"description":"Cost breakdown for `/contents` requests.","additionalProperties":false}},"description":"Estimated dollar cost of the request. Which fields appear depends on the endpoint.","additionalProperties":false},"resolvedSearchType":{"type":"string","deprecated":true,"description":"Deprecated. May be an empty string. Do not branch on this value.","x-exa-lifecycle":"deprecated"}},"additionalProperties":false}]},"example":{"request":{"query":"artificial intelligence","numResults":10},"response":{"results":[{"id":"https://en.wikipedia.org/wiki/Artificial_intelligence","url":"https://en.wikipedia.org/wiki/Artificial_intelligence","title":"Artificial intelligence - Wikipedia"},{"id":"https://hai.stanford.edu/ai-definitions/what-is-artificial-intelligence-ai","url":"https://hai.stanford.edu/ai-definitions/what-is-artificial-intelligence-ai","image":"https://hai.stanford.edu/assets/images/glossary-card-mockup@2x.png","title":"What is Artificial Intelligence (AI)? | Stanford HAI","favicon":"https://hai.stanford.edu/favicon.ico"},{"id":"https://en.wikipedia.org/wiki/Artificial_Intelligence","url":"https://en.wikipedia.org/wiki/Artificial_Intelligence","image":"https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/General_Formal_Ontology.svg/330px-General_Formal_Ontology.svg.png","title":"Artificial intelligence","publishedDate":"2026-05-26T00:00:00.000Z"},{"id":"https://plato.stanford.edu/entries/artificial-intelligence/","url":"https://plato.stanford.edu/entries/artificial-intelligence/","image":"https://plato.stanford.edu/symbols/sep-man-red.png","title":"Artificial Intelligence (Stanford Encyclopedia of Philosophy)"},{"id":"https://www.nasa.gov/what-is-artificial-intelligence/","url":"https://www.nasa.gov/what-is-artificial-intelligence/","title":"What is Artificial Intelligence? - NASA","publishedDate":"2024-05-13T00:00:00.000Z"},{"id":"https://www.ibm.com/think/topics/artificial-intelligence","url":"https://www.ibm.com/think/topics/artificial-intelligence","title":"What Is Artificial Intelligence (AI)? - IBM"},{"id":"https://cloud.google.com/learn/what-is-artificial-intelligence","url":"https://cloud.google.com/learn/what-is-artificial-intelligence","title":"What is Artificial Intelligence (AI)? | Google Cloud"},{"id":"https://www.oed.com/dictionary/artificial-intelligence_n?tab=factsheet&tl=true","url":"https://www.oed.com/dictionary/artificial-intelligence_n?tab=factsheet&tl=true","image":"https://www.oed.com/images/OED-square-logo-1.jpg","title":"artificial intelligence, n. meanings, etymology and more | Oxford English Dictionary","author":"J. McCarthy","favicon":"https://www.oed.com/images/icons/favicon-32x32.png"},{"id":"https://aws.amazon.com/what-is/artificial-intelligence/","url":"https://aws.amazon.com/what-is/artificial-intelligence/","title":"What is AI? - Artificial Intelligence Explained - AWS","favicon":"https://a0.awsstatic.com/libra-css/images/site/fav/favicon.ico"}],"requestId":"c63e72ac448bac75bde7ca7e8483befb","searchTime":1057.1,"costDollars":{"total":0.007,"search":{"neural":0.007}},"resolvedSearchType":""}},"exampleRequest":{"query":"artificial intelligence","numResults":10},"tags":["search","web-search","content","ai-search","ai"],"displayCostAmount":"0.007","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":10,"rating":{"score":"0.71","successRate":"0.99","reviews":10,"stars":"3.8","state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"0.7000","medianCents":"0.7000","p90Cents":"0.7000","minCents":"0.7000","maxCents":"0.7000","p95Cents":"0.7000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.007/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vCAqPeBRvIylwCvnZ867x","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.007","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"Exa","brandSlug":"exa","brandBaseUrl":"https://exa.ai","brandDocsUrl":"https://docs.exa.ai/reference/mpp-guide","whatItDoes":"Search the web using AI-powered semantic search and return ranked results with titles, URLs, and metadata","exampleAgentPrompt":"Search Exa for the top 10 web results about 'quantum computing breakthroughs in 2025' and give me the titles and URLs.","exampleUseCases":null,"resultDescription":"An array of ranked web search results, each containing a result ID, URL, page title, published date, and optionally an image and favicon URL. Results are ordered by relevance to the query.","failureModes":["Empty or vague query may return low-quality or irrelevant results","Requesting too many results may slow response or hit limits","Very niche queries may return few or no results","Paywalled or non-indexed pages may not appear in results","Insufficient USDC balance may cause payment failure at $0.005 per call"],"whenToPreferThis":"Use this endpoint when you need to retrieve a ranked list of web pages relevant to a natural language query, especially when semantic relevance matters more than keyword matching. Prefer this over generic search APIs when you want AI-powered ranking and clean structured metadata per result. Choose this over Exa's Answer endpoint when you want raw URLs and page metadata rather than a synthesized answer, and over FindSimilar when you have a query string rather than a reference URL.","instructions":null,"reviewSummary":"Exa search delivers fast, well-ranked results across diverse use cases—archival research, prospect profiling, and product discovery—with source URLs and page text returned in as little as 180ms. Accuracy is consistently solid, though extracted content sometimes omits fine-grained details and social/name queries can produce collisions. A minority of runs fail due to budget cap mismatches, opaque enrichment surcharges, or transport errors returning no usable results.","reviewSummaryHighlights":["Fast retrieval with source URLs and page text across diverse query types","Handles niche and domain-filtered queries effectively","Strong value at low cost per search when successful"],"reviewSummaryConcerns":["Enrichment surcharges not clearly signaled upfront, causing unexpected budget cap failures","Occasional complete failures with no usable results returned","Extracted text can miss granular details like specs or per-variant data"],"reviewSummaryGeneratedAt":"2026-10-27T22:15:15.306Z","activationCount":1625,"lastUsedAt":"2026-11-12T19:34:06.736Z","lastSuccessfullyRanAt":"2026-11-12T19:34:06.736Z","lastHealthCheckAt":"2026-12-04T01:00:37.634Z","isFirstParty":false,"canonicalSlug":"exa-search-eaa916e8"}