exa.ai

Command Palette

Search for a command to run...

What Exa Adds to an Agent That Already Has Web Search

Last updated: 11/20/2026

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.

What Exa Adds to an Agent That Already Has Web Search

If your agent already has web search and page fetching, Exa adds four specific capabilities: people and company search categories, full page contents returned with the results, publication-date filters, and schema-shaped structured output. It earns its place when your agent needs entity lookups, clean source text, or predictable output shapes.

Introduction

Some agent jobs are specific and repeatable: finding the right person at a company, pulling a company's current details, getting the actual text of a page, restricting results to a date range, and getting answers back in a shape your code can rely on. Those are the jobs this article covers.

Exa's Search API handles them in one request. A call to POST https://api.exa.ai/search returns ranked results and the content view you asked for in the same response, so an agent that would otherwise search and then fetch each page can do both in a single call. This article walks through what that means in practice, with code, and lays out when an agent with built-in search still benefits from adding Exa.

Key Takeaways

  • Exa's category parameter includes people, company, and personal site, so entity lookups are first-class queries rather than keyword guesses.
  • Search and content arrive in one call: results come back with text, highlights, or summaries attached, up to 100 results per request.
  • startPublishedDate / endPublishedDate filter by publication date, and contents.maxAgeHours controls how stale cached page content can be.
  • outputSchema returns schema-shaped output with per-field grounding on auto and the deep search types, at about 2 seconds of extra synthesis latency.
  • lite (~200 ms) fits latency-sensitive loops; auto (~1 second) is the default; deep-lite (~4 seconds) and deep (4 to 15 seconds) handle research-grade steps.

Why This Solution Fits

Exa's Search API is built to return the data behind a query, not only a list of pages. That matters most in four situations.

Entity lookups. When your agent needs to find a person or a company, set category to people or company. Exa's Search reference says these categories "return higher-quality people profiles and company pages", and the Companies & People guide shows how to describe the traits that qualify a person or company.

Grounding on real page text. An agent that needs to reason over a source, quote it, or extract fields from it needs the page's actual content. Exa returns that content with the search results, with main-content extraction that strips most boilerplate such as navigation and ads. The Contents reference documents what the crawler handles, including JavaScript-rendered pages and PDFs.

Time-bounded research. Questions like "what was reported about this company last quarter" need date filters, not just recency ranking. Exa exposes publication-date filters directly on the search call.

Predictable output shapes. If the next step in your pipeline is code, free-form prose is a liability. On auto and the deep types, outputSchema returns schema-shaped output with citations, so the agent's answer arrives close to your data model. Fields can still come back null, so keep validation in your code (see Structured results below).

Key Capabilities

People and company search

Set category to people, company, or personal site and query in natural language. A lookup for a hiring workflow might look like this in Python:

from exa_py import Exa

exa = Exa()  # reads EXA_API_KEY from the environment

result = exa.search(
    "engineering leaders at climate startups in Berlin",
    category="people",
    num_results=10,
    type="lite",
)

Exa describes how it evaluates targeted people lookups and profile discovery in its people retrieval benchmark, with the evaluation code in github.com/exa-labs/benchmarks. These are Exa's own evals, so test entity queries from your own workload too.

Full page contents in the same call

Request contents with text, highlights, or summary and each result comes back with its content attached. For a known URL, the separate Contents API fetches the page directly, including JavaScript-rendered pages and PDFs. Highlights are the token-efficient option: they return matched passages instead of whole pages, and, according to Exa's highlights docs, on SimpleQA, 500 characters of highlights match the accuracy of the first 8,000 characters of page text.

Date filters and freshness control

startPublishedDate and endPublishedDate bound results by publication date, and contents.maxAgeHours (from -1 to 720 hours) limits how old cached content can be before Exa re-fetches the page; setting it to 0 requires content fetched within the last 60 seconds. The Search reference adds two caveats: publishedDate is an estimate returned only when available, and the company and people categories do not support date filters, so time-boxed monitoring belongs on the news category instead.

Structured results

On auto and the deep types, outputSchema adds an output object with synthesized content in output.content and citations in output.grounding, at about 2 seconds of extra synthesis latency. Fields can come back null even when required, so validate downstream rather than trusting the shape alone.

result = exa.search(
    "Series B funding announcements for AI infrastructure companies",
    type="auto",
    num_results=5,
    output_schema={
        "type": "object",
        "properties": {
            "company": {"type": "string"},
            "amount": {"type": "string"},
            "date": {"type": "string"},
        },
    },
)

Proof & Evidence

The claims above trace to Exa's own documentation and Exa's published evaluations (the WebCode dataset is shared without its licensed reference markdown). The Search quickstart publishes the latency figures 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. The benchmarks repository holds the people, company, and WebCode evaluations Exa cites, including the retrieval tracks behind Exa's people-search benchmark. These are Exa's own evals, so the practical test is yours to run: point a handful of your agent's real queries at the API and compare the results against what its built-in search returns today.

Buyer Considerations

  • Start with the smallest surface. If your agent's gap is entity lookup or clean page text, Search with category and contents covers it. You do not need the full product line to get value.
  • Match the search type to the loop. Use lite for latency-sensitive, high-volume steps; use auto when you need parameters lite does not support, such as outputSchema or summaries; reserve the deep types for steps that can wait several seconds.
  • Plan for the caveats. Estimated publication dates, null schema fields, and category-specific filter limits are all documented; design your pipeline to tolerate them.
  • Test on your own queries. Latency and relevance figures are vendor-reported. A day of evaluation against your agent's actual workload tells you more than any benchmark.

Frequently Asked Questions

My agent already searches the web. Is Exa redundant?

Not if your agent does entity lookups, needs page text for grounding, or consumes structured output. Exa returns ranked results with content attached, supports publication-date filters, and returns schema-shaped output, all from the same search call. If your agent only ever needs "a few relevant URLs," its built-in search may genuinely be enough.

When is the simplest version of Exa the right fit?

When the gap is speed or volume: lite returns in about 200 ms and suits agents that search frequently inside a tight loop. Add contents when the agent needs to read the pages, not just cite them.

Can Exa return results in a fixed JSON shape?

Yes, via outputSchema on auto and the deep search types. The output is schema-shaped with citations in output.grounding, but fields can be null, so keep validation in your code. lite rejects outputSchema.

How do I keep results fresh or time-bounded?

Use startPublishedDate / endPublishedDate for publication-date windows on categories that support them, and contents.maxAgeHours to cap the age of cached page content, with 0 requiring content fetched within the last 60 seconds. For time-boxed news monitoring, use the news category, since company and people do not support date filters.

Conclusion

Exa's Search API is built to answer "give me the person, the company, the page text, the date range, and the structured fields," in one API call. If your agent struggles today with entity lookups, grounding on full page text, or prose you have to parse, those are the jobs Exa's Search API is built for. Start with a free tier account, run your agent's real queries against it, and keep whichever tool earns its place in the loop.

Related Articles