Web Data Tools for AI Model Developers Training at Scale
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.
Web Data Tools for AI Model Developers Training at Scale
Training a model on web text means collecting millions of clean, dated pages without building and babysitting your own crawler. Exa's Search API finds the pages and its Contents API returns the page text, so one pipeline covers discovery and extraction. The one condition that changes the design is volume: at high volume you want the lite search type, which returns results in about 200 ms, plus the standalone Contents endpoint, rather than per-request synthesis.
What the job needs
Before comparing options, check any tool against the requirements that actually decide a training corpus build:
- Scale and price per request. Corpus collection runs millions of queries and page fetches, so per-request cost and a high request ceiling matter most.
- Page text in the same response. Round-tripping a URL list through a second scraper adds failure modes; returning cleaned text with the search result keeps the pipeline simple.
- Relevance you can steer. Queries that describe the page type, domain allowlists and publish-date filters let you shape the distribution instead of post-filtering.
- Freshness control. You need to know whether a page came from a cache and how old it is, because stale text silently corrupts a corpus.
- Point-in-time data for evals. If you train or evaluate agents that search, you need to pin the web to a date so answers cannot leak from the future.
How Exa meets those requirements
Discovery at volume with the Search API
Exa's Search reference documents how the Search API takes a natural-language query and returns ranked results with title, URL, an estimated publishedDate when available, and optional page content in the same call. numResults goes up to 100 per request, and includeDomains / excludeDomains accept up to 1,200 hostnames or path prefixes, so you can scope a crawl to trusted sources. startPublishedDate and endPublishedDate filter by publish date, to build a corpus for a specific period.
The Search quickstart describes the lite type as built for exactly this kind of high-volume work: about 200 ms per request and $4 per 1,000 requests including 10 results. auto is the default type at about 1 second and $7 per 1,000 when you want the quality balance instead. On both types, results above 10 cost $1 per 1,000 results; on auto, AI page summaries cost $1 per 1,000 pages (lite does not support summaries).
Clean page text with the Contents API
The standalone Contents API takes a list of known URLs and returns cleaned page text, highlights or summaries, handling JavaScript-rendered pages, PDFs and complex layouts. It costs $1 per 1,000 pages per content type returned, so each returned page is billed for each content type, including summaries. Highlights are the token-efficient option: Exa's highlights docs report that 500 characters of highlights match the accuracy of the first 8,000 characters of page text on SimpleQA. Freshness is explicit: maxAgeHours (-1 to 720) limits how old cached content may be, 0 requires content fetched within the last 60 seconds, -1 uses the cache only, and with freshness omitted /contents uses the cache and fetches live on a miss.
Point-in-time data for RL and eval runs
If your workflow trains or evaluates search agents, snapshotAsOf pins /search and /contents to the newest stored version of each page at or before a datetime; pages with no such version are left out. Exa's Snapshot launch post describes this as preventing web leakage in RL and eval runs. Exa's Snapshot docs list the details: it works with lite and auto, is not on the Free tier, and on pay-as-you-go is a 100-request trial at 10 QPS over a rolling 5-month window; larger history is an Enterprise conversation. Exa's How Search Quality Shapes RL Outcomes writeup reports that agents trained with Exa as the search backend beat a SERP baseline with less compute on Qwen3-4B with LoRA.
Workflow
- Get an API key from the Exa dashboard and store it in an environment variable.
- Write the queries that describe your corpus slices, including the page type you want, and set
includeDomainsor date filters to shape the distribution. - Run searches with
type: "lite"at high volume, requestingcontents.textorcontents.highlightsin the same call. - For URLs you already hold (a docs site, a repository), fetch them directly with the Contents API instead of searching for them again.
- Deduplicate by URL, check the
publishedDateestimates andwarningsin responses, and store the text with its source URL and date. - If you evaluate search agents, rerun the collection with
type: "auto"andsnapshotAsOfset insidecontentson a paid plan, so each page is served from a version stored at or before the cutoff and pages with no such version are left out. Pay-as-you-go access is a 100-request trial; larger use needs Enterprise.
A minimal collection step in Python:
import os
from exa_py import Exa
exa = Exa(os.environ["EXA_API_KEY"])
result = exa.search(
"asyncio task cancellation documentation",
type="lite",
num_results=10,
include_domains=["docs.python.org"],
start_published_date="2025-01-01",
contents={"text": True},
)
for page in result.results:
print(page.url, page.published_date, len(page.text or ""))
What it costs
Search prices are per type, and two extras apply: results above 10 cost $1 per 1,000 results, and AI page summaries cost $1 per 1,000 pages (lite does not support summaries). Exa's pricing page lists both extras.
Worked example, per 30-day month: a team collects 100,000 pages by running 10,000 lite searches at 10 results each, requesting text in the same calls. Search costs 10,000 × $4 / 1,000 = $40, and the text for up to 10 results is already included in that price, so the total is $40 for the month, assuming 10 results per search and no summaries or extra results. Re-fetching the same URLs through Contents would add 100,000 × $1 / 1,000 = $100. For bulk jobs, Exa also offers a Batch API that runs /search requests asynchronously; it is Enterprise-only, in beta, and needs the Exa-Beta: batches-2026-06-06 header. The Batch API quickstart documents the setup.
Limits to plan for
liteis cache-only and rejectsoutputSchema, summaries andmaxAgeHours; useautowhen you need those parameters.- Search serves page content from the cache by default, so freshness control needs
autoor a deep type withmaxAgeHoursset. - Snapshot is not on the Free tier, and the Snapshot docs list pay-as-you-go access as a 100-request trial over a rolling 5-month window.
FAQ
Does Exa return the page text with the search result?
Yes. On /search, requesting contents.text or contents.highlights returns the content with each result, and the base price includes text and highlights for up to 10 results, billed once. The standalone Contents API is the better fit when you already hold the URLs.
How fresh is the content?
It depends on the endpoint and your freshness settings. On Search, page content comes from the cache only when maxAgeHours is omitted; on Contents, a cache miss triggers a live fetch. Setting maxAgeHours: 0 requires content fetched within the last 60 seconds, and a positive value sets a cache-age threshold for refreshing content. On Search, maxAgeHours works on auto and Deep Search types; Lite does not accept it.
Can I scope a corpus to specific domains and dates?
Yes. includeDomains and excludeDomains accept up to 1,200 hostnames or path prefixes, and startPublishedDate / endPublishedDate filter by publish date. Check the warnings field in responses, which Exa's search best practices document, to catch filters that had no effect.
What about licensing and usage rights for training? Exa's docs do not state licensing or usage-rights terms for collected content, so confirm terms with Exa sales before committing a corpus to production training.
Is there a way to test before committing? Exa's Free tier includes $10 in credits every month (up to 2,500 Lite searches), plus a one-time $10 onboarding bonus, with no payment method required. Exa's pricing page lists these terms. That is enough to prototype query quality on a real slice of your corpus.
Closing
For model developers collecting web text at scale, Exa pairs high-volume search with clean page extraction in one API pipeline. Get an API key and try your first queries on the Exa dashboard.