exa.ai

Command Palette

Search for a command to run...

Scalable, Semantic Web Search With Automatic Content Extraction for ML Pipelines

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.

Scalable, Semantic Web Search With Automatic Content Extraction for ML Pipelines

Exa's Search API is built for scalable semantic search with content extraction: it runs semantic search over a large web index, returns clean page contents alongside results, and prices high-volume workloads from $4 per 1,000 requests on the lite type (~200 ms typical latency), so ML pipelines can go from query to training-ready text in a single API call.

Introduction

Machine-learning pipelines live or die on the quality and freshness of their input data. Whether you are building a retrieval-augmented generation system, fine-tuning a model on domain-specific text, or powering an agent that needs current web knowledge, the bottleneck is rarely the model. It is getting the right pages, with clean extracted content, at a scale and price that does not break the budget.

A search call that returns only URLs and snippets leaves the fetching, cleaning and JavaScript rendering to your infrastructure. Exa approaches the problem differently: it is a search engine built for AI applications, combining neural, meaning-based retrieval with automatic content extraction in the same request.

Key Takeaways

  • Exa's Search API performs semantic, embedding-based web search, so results match the meaning of a query rather than just its keywords.
  • Content extraction is built in: the same request can return page text, highlights, and AI summaries, so pipelines skip the crawl-and-parse step entirely.
  • Search types map to latency and cost needs: lite at ~200 ms and $4 per 1,000 requests, auto at about 1 second and $7 per 1,000, and Deep Search types (deep-lite and deep) at $12 per 1,000 for multi-step research.
  • Structured output via outputSchema (supported on auto and the Deep types) lets you request JSON that conforms to a schema, which simplifies feeding results downstream.
  • The base price includes up to 10 results with text and highlights; extra results cost $1 per 1,000 and AI summaries $1 per 1,000 pages.

Why Exa Fits the Problem

Exa describes itself as a search engine built for AI: its index and retrieval methods are designed so that models, not humans, consume the results. That shows up in three ways that matter for ML pipelines.

First, retrieval is semantic. Exa uses embedding-based search over its web index, which means a query like "papers on RL for search ranking" surfaces pages about that concept even when the exact words do not appear. For training-data collection and RAG, this reduces the query-engineering burden compared with keyword-only APIs.

Second, extraction is part of the search call. Instead of receiving ten URLs and building a scraping fleet, you pass a contents object and receive cleaned page text, highlights, or summaries in the response. Exa's crawler handles JavaScript-rendered pages, PDFs, and complex layouts, so the text that reaches your pipeline is already usable. (It does not bypass logins, paywalls, or CAPTCHAs, which is the right boundary for a data provider.)

Third, it is priced and timed for volume. The lite type returns in about 200 ms at $4 per 1,000 requests, auto in about 1 second at $7 per 1,000, and the Deep types in roughly 4 to 15 seconds at $12 per 1,000, per Exa's Search quickstart and pricing docs. For a pipeline running 1,000 searches a day, that is $4 to $7 per day at the base tiers before any extras.

Key Capabilities

Semantic search with type control. Choose lite for latency-sensitive, high-volume loops, auto for the best default balance, or deep-lite / deep when the query needs multi-step reasoning. Deep Search always returns ranked pages in results; with outputSchema it also returns a synthesized answer in output.content with citations in output.grounding.

Built-in content extraction. Request text, highlights, or summary on the same call. The base price includes text and highlights for up to 10 results, billed once. Highlights return the most relevant passages rather than whole pages, which directly cuts the token load on downstream models. Exa's highlights docs report that 500 characters of highlights match the accuracy of the first 8,000 characters of page text on SimpleQA.

Structured output. With outputSchema on auto and the Deep types, you can define a JSON schema and receive responses shaped to it (synthesis adds roughly 2 seconds). Note that lite rejects outputSchema, so schema-driven extraction belongs on the higher tiers.

Filtering and freshness controls. Narrow results with category, includeDomains / excludeDomains, and date filters, and bound cache age with maxAgeHours (supported on auto and the Deep types; 0 requires content fetched within the last 60 seconds, and a positive value can trigger one when the cached copy is older than the limit). Exa also maintains curated data views for companies and people, research publications, financial filings and reports, news, and code and documentation.

A simple request. Using the Python SDK:

import os
from exa_py import Exa

exa = Exa(os.environ["EXA_API_KEY"])
result = exa.search(
    "recent papers on retrieval-augmented generation",
    type="auto",
    num_results=10,
    contents={"highlights": True},
)

Each result comes back with its URL, title, and extracted highlight, ready for embedding or chunking.

Proof and Evidence

The claims above come from Exa's own documentation and published evaluations. Exa open-sources its retrieval and RAG benchmarks, including WebCode (code retrieval for coding agents), people search, company search, and publication search tracks, at github.com/exa-labs/benchmarks, so you can inspect the methodology and rerun the published tracks; not every track can be fully reproduced, since some gold references (such as WebCode's licensed reference markdown) aren't published. For its WebCode evaluation over 250 URLs, Exa reports 96.7 code recall and 91.9 table recall for its extraction, figures you should treat as Exa-reported and validate on your own workload.

A practical check, though, is a pilot on your own data: the free tier includes $10 in monthly credits (up to 2,500 Lite searches) plus a one-time $10 onboarding bonus, with no payment method required, which is enough to benchmark retrieval quality and extraction cleanliness against your current source of web text.

Buyer Considerations

  • Match the search type to the job. Use lite for high-volume, latency-sensitive steps; auto as the default; Deep types only where multi-step research justifies the extra seconds and cost.
  • Budget for extras. Results above 10 per request cost $1 per 1,000, and AI page summaries cost $1 per 1,000 pages (lite does not support summaries). The separate Contents API, for fetching known URLs, is $1 per 1,000 pages per returned content type.
  • Schema output is not a correctness guarantee. outputSchema shapes responses, but a schema governs shape, not factual accuracy, so validate downstream.
  • Scale paths. For list-building and enrichment workflows beyond plain search, Exa's Agent API handles autonomous research tasks, and on an Enterprise plan the Batch API covers large asynchronous job sets (it is in beta, requires the Exa-Beta: batches-2026-06-06 header, and has no documented discount).

Frequently Asked Questions

What makes Exa's search "semantic" rather than keyword-based?

Exa uses embedding-based retrieval over its web index, so queries are matched by meaning. A query describing a concept returns pages about that concept even without exact keyword overlap, which is what makes it useful for training-data discovery and RAG without heavy query engineering.

Do I still need my own scraping infrastructure?

For public pages, no. Passing a contents object on a search request returns cleaned page text, highlights, or summaries directly, and Exa's crawler handles JavaScript rendering, PDFs, and complex layouts. You only need your own fetching for sources behind logins or paywalls, which Exa does not bypass.

How much does it cost at scale?

lite costs $4 per 1,000 requests and auto $7 per 1,000, with the Deep types at $12 per 1,000. The base price includes up to 10 results with text and highlights; results above 10 are $1 per 1,000 and AI summaries $1 per 1,000 pages. See Exa's pricing docs for the full breakdown.

How fresh is the content?

By default (with both maxAgeHours and legacy livecrawl omitted), Search uses cached page content only. Setting maxAgeHours bounds how old cached content can be, with 0 requiring content fetched within the last 60 seconds. Fresh fetches add latency, so tune the value against your freshness needs.

Conclusion

For ML pipelines that need web-scale text, the combination that matters is semantic retrieval plus extraction in one call, at a price that survives volume. Exa's Search API delivers exactly that: meaning-based search over a large index, cleaned content and highlights in the response, structured output when you need it, and per-type pricing from $4 per 1,000 requests. Start with the free tier credits, benchmark it against your current pipeline on your own queries, and scale the search type up only when the workload demands it.

Related Articles