> ## 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.

> ## Agent Instructions
> The Exa API is served at https://api.exa.ai. Authenticate with `Authorization: Bearer $EXA_API_KEY` (or `x-api-key: $EXA_API_KEY`); create keys at https://dashboard.exa.ai/api-keys?utm_source=docs&utm_medium=docs&utm_campaign=markdown_instructions. Every way an agent can get access to Exa is described at https://exa.ai/auth.md.
> Prefer the official SDKs, `exa-py` (`pip install exa-py`) and `exa-js` (`npm install exa-js`); both read `EXA_API_KEY` from the environment.
> Tool-using agents can call Exa without writing code through the hosted MCP server at https://mcp.exa.ai/mcp, or install the Exa agent skill with `npx skills add exa-labs/agent-skills` (skill file: https://exa.ai/docs/skill.md).
> The OpenAPI specs at https://exa.ai/docs/exa-spec.yaml and https://exa.ai/docs/team-management-spec.yaml are the source of truth for request and response schemas.

# API Deprecations

> Migration guidance for deprecated and removed API endpoints, request options, and response fields, including findSimilar, Context (Exa Code), and Research.

Exa occasionally replaces older API surfaces as the platform evolves. Deprecated APIs remain available unless otherwise noted, but should not be used for new integrations. If a removal date is announced, it will be documented here and in the [changelog](https://exa.ai/docs/changelog.md).

## Current deprecations

| API or parameter | Status | Recommended action |
| - | - | - |
| [`POST /findSimilar`](#findsimilar) | Deprecated | Use [Search](https://exa.ai/docs/reference/search.md) with a query describing the source page. |
| [`POST /context`](#context) | Deprecated | Use Search with highlights and assemble the context in your application. See the [migration guide](https://exa.ai/docs/search/data/code.md#migrating-from-the-context-endpoint). |
| `useAutoprompt` | Ignored | [Remove it](https://exa.ai/docs/search/best-practices.md#common-mistakes). |
| `includeText` / `excludeText` | Deprecated | [Find exact mentions by checking the returned text](https://exa.ai/docs/search/best-practices.md#find-exact-mentions). |
| `contents.context` | Deprecated | Request [highlights or text](https://exa.ai/docs/contents/quickstart.md#common-mistakes) and assemble the context from `results[]`. |
| `contents.livecrawl` | Deprecated | Use `maxAgeHours`. See [Content freshness](https://exa.ai/docs/contents/quickstart.md#content-freshness) for the value mapping. |
| `contents.subpages` / `contents.subpageTarget` on `/search` | Deprecated | Pass the result URLs to [`/contents`](https://exa.ai/docs/contents/quickstart#crawl-subpages) with `subpages` or `subpageTarget` as needed. |
| `crawledBeforeDate` | Deprecated | Rename it to [`snapshotAsOf`](https://exa.ai/docs/search/snapshot#limits-and-compatibility). Do not send both. |
| `highlights.numSentences` | Deprecated | Use [`highlights.maxCharacters`](https://exa.ai/docs/search/highlights#add-highlights-to-search) to control excerpt length. |
| `highlights.highlightsPerUrl` | Ignored | Remove it. Use [`highlights.maxCharacters`](https://exa.ai/docs/search/highlights#add-highlights-to-search) if you need to control excerpt length. |
| `startCrawlDate` / `endCrawlDate` | Ignored | Remove them. To filter by publication date, use [`startPublishedDate` or `endPublishedDate`](https://exa.ai/docs/reference/search). |

## Legacy Search response fields

| Field | Recommended action |
| - | - |
| `resolvedSearchType` | Deprecated. It can be an empty string. Do not branch on it. See [Search results](https://exa.ai/docs/search/quickstart.md#output-shapes). |
| `results[].highlightScores` | Removed May 1, 2026. Use [`results[].highlights`](https://exa.ai/docs/search/quickstart#output-shapes) without scores. |
| `results[].score` with `type: "auto"` | Auto does not return relevance scores. Use the [returned result order](https://exa.ai/docs/search/quickstart.md#output-shapes). |

## Deprecated endpoints

### `POST /findSimilar`

`POST /findSimilar` is deprecated. Search has no direct URL-similarity equivalent. Use `/search` with a descriptive query based on the source page. Fetch the page with [`/contents`](https://exa.ai/docs/reference/get-contents) first if you need its text.

[View Search API →](https://exa.ai/docs/reference/search.md)

### `POST /context`

`POST /context` (Exa Code) is deprecated. Use `/search` with `contents.highlights` and assemble `results[]` into context in your application. Use `lite` for cached content or `auto` for freshness controls or other options that `lite` does not support.

When replacing `tokensNum`, enforce the total token budget in your application. `maxCharacters` is a per-result character limit. See [Code & Docs](https://exa.ai/docs/search/data/code.md#migrating-from-the-context-endpoint) for migration details.

## Removed

### Research API

Requests to the retired Research API (`/research/*`) return HTTP 410. Use [Deep Search](https://exa.ai/docs/search/deep-search.md) or [Exa Agent](https://exa.ai/docs/agent/quickstart.md) for long-running research. See the [April 1, 2026 announcement](https://exa.ai/docs/changelog.md#april-1-2026).

### Other removed options

| Removed | Replacement |
| - | - |
| `category: "tweet"` | Search returns HTTP 400. [Search without this category](https://exa.ai/docs/reference/search.md). See the [July 23, 2026 announcement](https://exa.ai/docs/changelog.md#july-23-2026). |
