exa.ai

Command Palette

Search for a command to run...

Developer Control Over Deep Research: How Exa Handles Sources, Structure, and Citations

Last updated: 11/20/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.

Developer Control Over Deep Research: How Exa Handles Sources, Structure, and Citations

A deep-research endpoint that hands you a blob of text leaves you hoping for the best. Exa takes the opposite approach: its Search API exposes parameters like includeDomains, outputSchema, and category so developers can pin the sources, set the output shape, and get field-level citations in output.grounding, all from a single request.

Introduction

If you are building a research feature into a product, three questions decide whether a deep-research API is usable. Can you restrict which sources it draws from? Can you force the output into a schema your application can parse? And can you trace every claim back to a citation your users can click?

Exa answers all three with plain API parameters rather than prompt engineering. Deep Search, which is the deep and deep-lite search types on /search, returns ranked pages in results and, when you pass an outputSchema, a synthesized answer in output.content with citations in output.grounding. The Deep Search docs describe this in detail, and the rest of this article walks through each control surface.

Key Takeaways

  • Source control is a first-class parameter: includeDomains restricts returned results to specific domains or paths, and category selects category-specific retrieval for verticals like financial filings or research publications.
  • Output structure is set with outputSchema: Deep Search returns synthesized JSON in output.content alongside the ranked results list, which never disappears.
  • Citations are per-field: output.grounding maps synthesized output back to source pages, with field-level grounding for object schemas.
  • Deep Search costs $12 per 1,000 requests for both deep and deep-lite, with typical latency of about 4 seconds for deep-lite and 4 to 15 seconds for deep.
  • For autonomous multi-step research, the Agent API offers the same schema and citation controls on asynchronous runs.

Why This Solution Fits

Deep-research tools tend to fail developers in the same place: the last mile. You get a confident paragraph, but no way to control where the facts came from, no way to parse the answer without another LLM call, and no way to show users why they should trust it.

Exa's Deep Search addresses this at the API level. You set includeDomains when your workflow depends on specific sources, such as filings from sec.gov or papers from arxiv.org. You set outputSchema when the answer needs to land in your data model. And you read output.grounding when a user or a downstream agent needs to verify a claim. The Search reference documents every one of these parameters with request and response examples.

The pricing is predictable too: $12 per 1,000 requests for either Deep Search type, with the base price including 10 results. Results above 10 cost $1 per 1,000, and AI page summaries cost $1 per 1,000 pages. Exa's pricing page lists the full breakdown.

Key Capabilities

Source preferences. includeDomains restricts returned results to the domains or paths you specify. category selects category-specific retrieval for a vertical, such as financial report, which narrows results to filings and reports, or publication for academic papers. Note the distinction: category is not an arbitrary domain allowlist, and how strictly it applies depends on the category and search type, so check output.grounding for fields that matter. excludeDomains is available when you need to filter something out.

Output structure. Pass a JSON schema as outputSchema and Deep Search returns a synthesized answer in output.content shaped to your schema, in addition to the ranked pages in results. Synthesis adds about 2 seconds of latency. outputSchema works with auto and the Deep types; lite rejects it with a 400. The output schema limits section covers size constraints.

Citations. output.grounding carries the citations for the synthesized output. With object schemas you get field-level grounding, so you can attach a source to each field rather than to the answer as a whole.

Freshness. maxAgeHours limits how old cached page content can be, from -1 (cache only) to 720 hours. Setting it to 0 requires content fetched within the last 60 seconds. lite rejects the parameter.

Here is a minimal request that puts the controls together:

from exa_py import Exa
import os

exa = Exa(api_key=os.environ["EXA_API_KEY"])

result = exa.search_and_contents(
    "recent risk factors in semiconductor supply chains",
    type="deep",
    include_domains=["sec.gov"],
    output_schema={
        "type": "object",
        "properties": {
            "risks": {"type": "array", "items": {"type": "string"}},
            "summary": {"type": "string"}
        }
    },
)
# result.results: ranked pages from sec.gov
# result.output.content: synthesized JSON matching the schema
# result.output.grounding: citations, field-level for object schemas

Proof & Evidence

The controls above are documented, not marketing claims. The Search reference specifies includeDomains, category, outputSchema, and maxAgeHours with exact request and response shapes, and the Deep Search docs describe the output.content and output.grounding response fields.

For a concrete workflow, a financial-research pipeline can combine Deep Search with the SEC's own EDGAR full-text search, which covers filings submitted electronically since 2001. Point includeDomains at sec.gov, request a schema with the fields your app needs, and render output.grounding as clickable citations next to each claim.

Exa also publishes its own evaluation suite at github.com/exa-labs/benchmarks, covering retrieval and RAG tracks. It is Exa's own repo, it does not cover Deep Search, and some datasets lack public gold references, so treat it as Exa showing its method rather than an independent check.

Buyer Considerations

  • Schema is shape, not truth. An outputSchema governs the output's shape, not whether its facts are correct, and strict validation is not guaranteed. Fields can come back null, even required ones. Validate downstream and check output.grounding for important fields.
  • Latency budgeting. Deep Search is a research tool, not an autocomplete tool: about 4 seconds typical for deep-lite, 4 to 15 seconds for deep, plus about 2 seconds when outputSchema synthesis runs. If you need sub-second responses, lite (about 200 ms, $4 per 1,000 requests) or auto (about 1 second, $7 per 1,000) are the faster search types.
  • Scope limits. includeDomains restricts returned results, but category selects category-specific retrieval but is not a domain allowlist. If a claim must come from an allowed source, verify it in output.grounding.
  • When to use Agent instead. If the task needs multiple searches, browsing, and reasoning steps rather than one deep query, the asynchronous Agent API supports outputSchema on runs, with fixed efforts from $0.012 to $1.00 per request and metered auto and ultra efforts.
  • Start free. The Free tier includes $10 in monthly credits, enough for roughly 830 Deep Search requests, so you can test schema and grounding behavior before committing.

Frequently Asked Questions

Can I force Deep Search to use only my preferred sources?

Yes, with includeDomains, which restricts returned results to the domains or paths you list. Pair it with category when you also want category-specific retrieval for a vertical. For claims that must come from an allowed source, check output.grounding rather than assuming the restriction held for every sentence.

How do I get structured JSON instead of prose?

Pass a JSON schema as outputSchema. Deep Search then returns synthesized output in output.content matching your schema, with citations in output.grounding, while still returning the ranked pages in results. Synthesis adds about 2 seconds of latency, and lite does not support the parameter.

Are the citations per-answer or per-field?

output.grounding provides citations for the synthesized output, and object schemas get field-level grounding, so each field can carry its own source references. That makes it practical to render per-field citations in your UI.

What does Deep Search cost and how fast is it?

$12 per 1,000 requests for both deep and deep-lite, with the base price including 10 results. Typical latency is about 4 seconds for deep-lite and 4 to 15 seconds for deep, before the roughly 2 seconds that outputSchema synthesis adds.

Conclusion

Developer control over deep research is not a nice-to-have; it is the difference between a demo and a product feature. Exa's Deep Search puts the three controls that matter, source restrictions via includeDomains, structure via outputSchema, and traceability via output.grounding, directly in the API, at $12 per 1,000 requests with documented latency. Read the Search API reference, sign up at exa.ai, and ship your first grounded research query today.

Related Articles