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.
New to Exa? Try the Coding Agent Quickstart
to get started in under a minute.
Get API Key
Get your API key from the dashboard
Install
- npm
- yarn
- pnpm
bash npm install exa-js Quick Start
Recommended defaults
- Start with
exa.search(...). - Use
type: "auto"unless you have a clear latency or synthesis reason to change it. - Prefer
contents: { highlights: true }for first integrations. - Switch to
exa.getContents(...)only when you already know the URLs. - Prefer
maxAgeHoursover olderlivecrawlexamples when you need freshness control.
Search
Search the web and get page contents in one call.outputSchema and systemPrompt work across all search types. Keep outputSchema focused on
output.content, and use systemPrompt to guide the final returned result. For more demanding
synthesis, prefer reasoning-focused search types like deep-lite, deep, or deep-reasoning. Do not include citations/confidence in your schema; Exa returns grounding
automatically in output.grounding. Including citation/confidence fields in outputSchema
duplicates data, reduces structure quality, and is usually less reliable.deep-lite: lowest-latency deep-search modedeep: light modedeep-reasoning: base reasoning mode
Need streaming structured synthesis? The raw
/search endpoint supports stream: true together
with outputSchema and returns OpenAI-compatible SSE chunks. See the Search API
guide.Get Contents
Get text, summaries, or highlights from URLs.Answer
Get answers to questions with citations.Research
TypeScript
Full TypeScript support with types for all methods.Resources
Continue
Search guide
Return to the main Search guide for request patterns, filters, and deeper modes.
Search reference
Jump to the full
/search request and response schema.Contents guide
Use Contents when you already know the URLs and want direct extraction.
TypeScript SDK spec
See the full JavaScript and TypeScript SDK method and type reference.

