Loading...
Loading...
Build applications and agents with Exa's API: search, contents extraction, answer, context, Agent API, monitors, websets, OpenAI-compatible endpoints, and exa-py/exa-js SDKs. Use when choosing Exa endpoints, writing Exa API calls, integrating semantic web search or research into products, or debugging Exa request shapes.
npx skill4agent add exa-labs/agent-skills build-with-exa/agentexa-pyexa-jsNote on data retention:,/search, and/answeroffer Zero Data Retention (ZDR). Websets and Monitors are not ZDR. If a use case requires ZDR, stay on the ZDR surfaces or contact Exa./agent/
# Python
pip install exa-py
# TypeScript / JavaScript
npm install exa-jsexport EXA_API_KEY="your_api_key_here"x-api-keyAuthorization: Bearer <key>contents{
"query": "latest developments in LLMs",
"type": "auto",
"contents": { "highlights": true }
}typeautotype: "auto"numResultsnumResultscategoryincludeDomainsexcludeDomainssystemPromptmaxAgeHoursstartPublishedDateendPublishedDatemaxAgeHourshighlightstruemaxCharacters/search/searchoutputSchemasystemPrompt/agent/search/search/contents/search/contents/answer/search/context/chat/completions/responses/agent/monitorsreferences/migrate-websets-to-agent.mdreferences/agent.md/searchfrom exa_py import Exa
exa = Exa(api_key="YOUR_EXA_API_KEY")
result = exa.search(
"latest developments in LLMs",
type="auto",
contents={"highlights": True}
)
for item in result.results:
print(item.title, item.url)/searchimport Exa from "exa-js";
const exa = new Exa();
const result = await exa.search("latest developments in LLMs", {
type: "auto",
contents: { highlights: true }
});
for (const item of result.results) {
console.log(item.title, item.url);
}/searchcurl -X POST "https://api.exa.ai/search" \
-H "Content-Type: application/json" \
-H "x-api-key: $EXA_API_KEY" \
-d '{
"query": "latest developments in LLMs",
"type": "auto",
"contents": {
"highlights": true
}
}'categorynumResultstexthighlightssummarycontentstexthighlightssummarycontentshighlightstextsummarysummaryhighlights: truenumSentenceshighlightsPerUrlmaxCharacters/agent/searchcategory: "people"category: "company"maxAgeHoursstartPublishedDateendPublishedDategithubdocumentationqapdfpeoplecompany/agent/searcheffortoutputoutput.grounding/findSimilar/search/contents| File | Topics |
|---|---|
| references/search.md | Search endpoint request/response shape, search types, filters, nested contents, structured output |
| references/contents.md | Contents endpoint extraction, freshness, statuses, top-level content fields |
| references/answer.md | Grounded answer generation with citations and structured output |
| references/context.md | Code-focused retrieval with |
| references/agent.md | Agent API for async multi-step research, enrichment, structured output, polling, and events |
| references/openai-compat.md | OpenAI-compatible endpoints, model routing, |
| references/monitors.md | Standalone Monitors API for scheduled recurring search |
| references/migrate-websets-to-agent.md | Migrate Websets to the Agent API: call-site classification, request mapping, delivery rewrite, verification |
| references/sdks.md | Python and TypeScript SDK naming, methods, and shape differences |
| references/http-requests.md | Minimal raw HTTP examples across major Exa surfaces |
| references/models-and-modes.md | Search type selection, answer/research model routing, latency tradeoffs |
| references/prompting-and-patterns.md | Durable query, prompting, freshness, and output-schema patterns |
| references/common-mistakes.md | Over-specification and parameter-shape corrections |
https://exa.ai/docshttps://exa.ai/docs/llms.txthttps://exa.ai/docs/reference/searchhttps://exa.ai/docs/reference/agent-api-guidehttps://exa.ai/docs/reference/agent-api/connect/overviewhttps://exa.ai/docs/sdks/python-sdk-specificationhttps://exa.ai/docs/sdks/typescript-sdk-specification