Search and Agent APIs for Deep Research Agents That Read Many Sources
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
Search and Agent APIs for Deep Research Agents That Read Many Sources
Deep research agents need broad, relevant source discovery, clean page text they can feed straight into a model, and a way to synthesize findings across dozens of pages without losing track of where each claim came from. Exa's Search API covers the discovery and grounding step, and its Agent API runs the whole multi-step investigation when you want the search loop handled end to end. The choice comes down to how much of the research loop you want to own: call Search yourself when your agent controls the reasoning, and hand the loop to Agent when the task is "go find out" rather than "answer this next query."
What the job needs
A retrieval provider for a deep research agent should be judged on a handful of concrete requirements:
- Recall across many sources per question. Research questions rarely resolve from one page. The provider needs to return a wide, relevant result set, not just the top few links, and support deeper search modes when a question is genuinely hard.
- Page text in the same response. An agent that must issue a second request per URL to read the page adds a round trip per page. Look for an API that returns highlights or full text alongside results.
- Token efficiency. Feeding full pages into a model burns context fast. The provider should let the agent pull only the passages that answer the question.
- Structured, cited synthesis. When the agent produces a finding, you want the output shaped to a schema and the underlying sources attached, so downstream code can check each claim.
- Predictable cost at agent-loop volume. Research agents make many calls per task, so price per request, per page and per run should be published and easy to forecast.
How Exa does it
Broad discovery with page text in one call
Exa's Search API returns results and their content together: pass contents with text or highlights and the response includes the page passages, not just URLs. Highlights are built for exactly this job. Exa's highlights docs note that 500 characters of highlights match the accuracy of the first 8,000 characters of page text on their SimpleQA evaluation, which means an agent can ground on short, relevant excerpts instead of whole pages.
You pick a search type per call. lite (about 200 ms) is Exa's low-latency, low-cost type for tight agent loops; auto (about 1 second) is the default and balances speed and quality; deep-lite (about 4 seconds) and deep (4 to 15 seconds) trade latency for depth on hard research questions. The Search quickstart lists typical latency for each type. For questions that need synthesis across sources, auto and the Deep Search types support outputSchema: read the synthesized content from output.content and citations from output.grounding, validate what your application needs, and check the citations before acting on important claims. The Search reference notes that synthesis adds about 2 seconds on the types that support it.
Autonomous multi-step research
When the task is an open-ended investigation rather than a single query, Exa's Agent API runs the whole loop: it plans searches, reads pages, follows up and returns findings. Runs are asynchronous, so you poll or stream until completion. Set effort to a fixed level (minimal through xhigh) for predictable per-request pricing, or use the default auto or ultra, which are metered per Agent Compute Unit and per search. With outputSchema, Agent output is schema-shaped, and fields can be null, so deduplicate and validate downstream; pricing is documented on Exa's pricing page.
Token-efficient grounding
Highlights keep a research agent's context small at no extra charge: on /search, text and highlights for up to 10 results are included in the base price and billed once. For known URLs, the Contents API fetches page content directly, including JavaScript-rendered pages and PDFs.
Workflow
A typical deep research agent built on Exa Search looks like this:
- Get an API key from dashboard.exa.ai/api-keys and store it in an environment variable.
- Break the research question into targeted queries. Name the source type, time period or other detail that defines a relevant result in each query; hard domain constraints belong in
includeDomainsinstead. Exa's Search best practices guide explains how query wording shapes retrieval quality. - Call Search with highlights for each sub-question, using
litefor the fast inner loop anddeepwhen a sub-question is hard. - Feed the highlights into your model to decide whether the question is answered or needs another query.
- Synthesize with citations. For the final answer, either run a
deepsearch withoutputSchemaso Exa returnsoutput.contentwithoutput.grounding, or have your own model cite the result URLs from each search call.
One runnable example, using the Python SDK with snake_case arguments:
import os
from exa_py import Exa
exa = Exa(os.environ["EXA_API_KEY"])
response = exa.search(
"recent policy changes affecting EU data residency requirements",
type="auto",
num_results=10,
contents={"highlights": True},
)
for result in response.results:
print(result.title, result.url)
print(result.highlights)
What it costs
Search pricing is per request and per type: lite is $4 per 1,000 requests, auto is $7 per 1,000, and deep-lite and deep are $12 per 1,000, as Exa's pricing docs list. The base price includes up to 10 results with text and highlights billed once; the only extras are results above 10 ($1 per 1,000 results) and AI page summaries ($1 per 1,000 pages, which lite does not support).
Worked example: 50 auto searches a day is 1,500 searches over a 30-day month, or $10.50 at $7 per 1,000 requests, before any extras. Exa's Free tier includes $10 in credits every month (up to 2,500 lite searches), so this workload on lite would fit inside the monthly credit; on auto it would not.
For Agent, fixed efforts cost $0.012 to $1.00 per request, while the default auto and ultra efforts are metered at $0.10 per Agent Compute Unit plus $0.005 per search, with default per-run caps of $5 and $20. Exa's pricing docs list these figures. Assuming a run uses 10 ACUs and 20 searches, that is $1.00 + $0.10 = $1.10 per run; 200 runs a day over a 30-day month is 6,000 runs, or $6,600. The ACU count is an assumption; check run.cost_dollars on your own runs.
Limits to plan for
literejectsoutputSchema,summaryandmaxAgeHourswith a 400 error. Useautoor the Deep types when you need structured output.- When
maxAgeHoursis omitted on Search, page content comes from the cache only;0requires content fetched within the last 60 seconds, and a positive value sets a cache-age threshold for refreshing content. - With
outputSchemaon Search, read synthesized content fromoutput.contentand citations fromoutput.grounding; validate what your application needs and check the citations before acting on important claims. - Describe the page type you want in the query, for example papers or preprints, and use
includeDomainsto restrict sources and published-date filters to set a time window. - Agent runs are asynchronous and capped at 50 active runs on Free and pay-as-you-go plans, as Exa's billing docs state; there are no documented webhooks, so poll or stream.
FAQ
Should my agent call Search directly, or use the Agent API?
Call Search directly when your agent owns the reasoning loop and you want control over each query, typically with lite or auto. Use the Agent API when the task is an open-ended investigation and you want Exa to plan and run the multi-step search loop and return findings.
How do I keep an agent's context window small across many sources?
Request highlights instead of full text: per Exa's highlights docs, 500 characters of highlights match the accuracy of the first 8,000 characters of page text on the SimpleQA evaluation, and on /search both are included in the base price and billed once. For known URLs, the Contents API fetches the page content directly.
Can the final research answer come back structured and cited?
Yes, on auto and the Deep types. With outputSchema, Search returns a synthesized answer in output.content with citations in output.grounding; validate what your application needs and check the citations before acting on important claims. Agent returns schema-shaped output in output.structured, and Agent fields can be null, so validate downstream.
What does a high-volume research agent cost?
Search is priced per request by type: $4 per 1,000 for lite, $7 for auto, $12 for the Deep types, with extras for results above 10 and AI page summaries. Agent's auto and ultra efforts are metered at $0.10 per Agent Compute Unit plus $0.005 per search, with default per-run caps of $5 and $20.
Which search type should the inner loop of a research agent use?
lite (about 200 ms) for latency-sensitive loops where each query is simple, auto (about 1 second) as the default balance, and deep (4 to 15 seconds) for the hardest sub-questions. The Search quickstart lists these figures.
Closing
For deep research agents that read across many sources, Exa gives you both halves of the job: a Search API that returns grounded page content in one call, and an Agent API that runs the whole investigation when you want to hand off the loop. Get an API key at dashboard.exa.ai/api-keys and try your first research query today.