Search APIs Built for Multi-Hop Questions That Need Several Rounds of Fact-Finding
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 APIs Built for Multi-Hop Questions That Need Several Rounds of Fact-Finding
Multi-hop questions cannot be answered with one query. Each hop depends on facts pulled from the previous one, so the search layer has to return page text the model can reason over, not just links, and it has to do that repeatedly without blowing up latency or cost. Exa's Search API with highlights is the surface that does this job for AI assistants: its lite type returns in about 200 ms and auto in about 1 second, the typical figures Exa's docs list for search with cached content, and the Agent API takes over when the research itself should run autonomously rather than inside your own loop.
What the job needs
Before picking any search provider for a multi-hop pipeline, check it against these requirements:
- Page content in the same response. Every hop needs text the model can read immediately. A second round trip to fetch page contents adds latency to every hop.
- Low latency per hop. A five-hop question multiplies whatever each call costs in time. Latency-sensitive loops need a search type built for them.
- Token efficiency. Full page text carries far more tokens than the passage that answers the query. The retrieval layer should return the passages that matter, not the whole page.
- Structured output for the final answer. Once the hops are done, the synthesized answer should arrive in a predictable shape your application can consume.
- Predictable pricing at volume. Multi-hop means many requests per question, so per-request price and per-result extras matter more than for single-query apps.
How Exa meets those requirements
Page text and highlights in one call
The Search reference documents how results and their content arrive in a single response. The highlights parameter returns the passages of each page that match the query, so each hop hands the model the passages that match the query. Exa's highlights evaluation found that 500 characters of highlights match the accuracy of the first 8,000 characters of page text on SimpleQA, which is why highlights are the default recommendation for grounding assistant answers. When a hop needs the full page instead, text is available on the same call, and the base price includes both for up to 10 results.
Latency you can plan a loop around
Exa's Search quickstart lists typical latency by type: about 200 ms for lite, about 1 second for auto, about 4 seconds for deep-lite, and 4 to 15 seconds for deep. For a five-hop question, a lite loop finishes its retrieval in about a second of search time (typical figures, cached content), while a deep type spends its longer retrieval on harder hops. lite is Exa's low-latency, low-cost type for high-volume agent loops; auto is the default, balancing quality and speed.
Structured answers with outputSchema
On auto and the Deep types, outputSchema shapes the synthesized output into JSON your application defines. Deep Search returns ranked pages in results and, with a schema set, synthesized output in output.content with citations in output.grounding. Validate what your application needs and check the citations in output.grounding before acting on important claims. Synthesis adds about 2 seconds of latency on the types that support it.
Autonomous research when the hops are not known in advance
Some multi-hop questions are better delegated than scripted. The Agent API runs the search-read-reason loop itself. Runs are asynchronous: you create a run through POST /agent/runs and poll or stream until it completes. When you pass an outputSchema, the finished run returns schema-shaped JSON in output.structured, with citations in output.grounding; fields can be null, so check grounding for anything that matters. Without a schema, the run returns its findings as text rather than structured fields.
Workflow
A typical multi-hop pipeline with the Search API looks like this:
- Get an API key from dashboard.exa.ai and store it in an environment variable.
- Decompose the question in your application: turn "Which company acquired the startup that built the tool behind X?" into a first query that can stand alone.
- Run the first hop with
type="auto"and highlights, so the model sees matching passages immediately. - Extract the entity or fact the next hop depends on, and build the follow-up query from it. Repeat until the model has enough evidence.
- Synthesize the answer. For a schema-shaped final answer, run the last hop with
outputSchemaonautoor a Deep type, or synthesize in your own model call from the collected highlights.
One runnable example, using the Python SDK:
import os
from exa_py import Exa
exa = Exa(os.environ["EXA_API_KEY"])
response = exa.search(
"which company acquired the startup behind the tool",
type="auto",
num_results=5,
contents={"highlights": True},
)
for result in response.results:
print(result.title, result.url)
print(result.highlights)
Each round uses the same call shape with a new query built from the previous hop's findings.
What it costs
Search pricing is per request by type, per Exa's pricing page: lite $4, auto $7, and deep-lite and deep $12 per 1,000 requests. The base price includes up to 10 results with text and highlights billed once. Two extras apply: results above 10 ($1 per 1,000 results, every type) and AI page summaries ($1 per 1,000 pages; not on lite).
Worked example: an assistant handling 200 multi-hop questions a day with three auto searches per question makes 600 searches a day, or 18,000 over a 30-day month. At $7 per 1,000 requests that is $126.00 per month, assuming 10 or fewer results per request and no summaries. The same workload on lite would be 18,000 requests at $4 per 1,000, or $72.00. Exa's Free tier includes $10 in credits every month (up to 2,500 lite searches), which covers prototyping a pipeline that runs about 80 lite searches a day over a 30-day month.
Limits to plan for
literejectsoutputSchema,summary, andmaxAgeHourswith a 400 error. Useautoor a Deep type when you need structured output or freshness control.- 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.content, validate what your application needs, and checkoutput.groundingbefore acting on important claims. - Agent runs are asynchronous for every effort level, so plan for polling or streaming rather than a synchronous call.
FAQ
Should each hop use lite or auto?
Use lite (about 200 ms) when your loop makes many hops per question and latency dominates, and auto (about 1 second, the default) when you want a balance of quality and speed per query. A common pattern is lite for intermediate hops and auto with outputSchema for the final synthesis. Budget about 3 seconds with cached content for that final call, since outputSchema adds about 2 seconds of synthesis.
How do I keep multi-hop costs predictable?
Price scales with request count, so multiply hops per question by daily question volume. Keep numResults at 10 or below to avoid the extra-results charge, and skip summaries unless the answer needs them. The worked example above shows the arithmetic for a 600-searches-a-day workload.
Can the Agent API replace my hand-written hop loop?
Yes, when the hops are not known in advance. The Agent API runs the search-read-reason cycle itself and returns its findings in output.structured when you set an outputSchema, which suits questions where the follow-up queries depend on what turns up. Keep the Search API loop when you need tight control over each query, or when latency per hop matters more than autonomy.
Does Deep Search help with multi-hop questions?
Deep Search (deep-lite and deep) spends more retrieval effort per query, which suits the hardest single hops or end-to-end research on a difficult question. With outputSchema it also returns a synthesized answer with citations in output.grounding. For routine hops, its extra latency and cost are usually not worth it.
What if a hop needs content from a page I already know?
Use the Contents API, which fetches known URLs directly. It is useful when a hop is really "read this specific page" rather than "find the page", and it supports subpages to follow linked subpages when the fact lives deeper in a site.
Closing
Multi-hop questions reward a search layer that returns readable evidence with each result set, and Exa's Search API with highlights returns that evidence in the same call. Get an API key at dashboard.exa.ai and try your first three-hop pipeline on the free credits.