Dataset-Building APIs That Return Source URLs for Every Field: How to Audit Your Data
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.
Dataset-Building APIs That Return Source URLs for Every Field: How to Audit Your Data
Exa Websets is the dataset-building API that returns the source URLs used to justify each field. Every item found by a search ships with verification reasoning and references, and every enrichment result carries its own reasoning and references, so a CEO name or funding amount can be traced back to the page it came from and audited.
Introduction
If you build datasets from web data, you know the audit problem. A pipeline hands you a spreadsheet of companies with fields like "founded 2019" or "Series B, $30M." Which page said that? Was it the company's own site, a press release, or a scraped directory that has not been updated in two years? Without the source URL attached to each field, every value is a claim you cannot check, and "trust the model" is not an acceptable answer when the data feeds CRM records, investment screens, or compliance work.
Most dataset-building workflows treat citations as an afterthought, if they include them at all. You get the extracted value, and reconstructing provenance means re-running searches by hand. Exa built Websets differently: provenance is part of the output, not a feature you bolt on. This article explains how Websets returns source URLs and verification reasoning for each item, and what that means for your audit workflow.
Key Takeaways
- Exa Websets returns each item found by a search with verification reasoning and references, so every accepted result carries the evidence behind it.
- Enrichments (fields like text, date, number, email, phone, or url) are filled by searching the web per item, and each enrichment result has its own reasoning and references showing where the data came from.
- Verification is criteria-based: only candidates that pass your stated criteria become items, and the reasoning explains why each one passed.
- Results arrive asynchronously via dashboard, polling, or webhooks, and can be exported through the API, CSV, or integrations (CRM integrations accept People only).
- The Websets API requires a paid plan; the Free plan caps a webset at 25 verified results, enough to inspect references before committing.
Why This Solution Fits
The question you are really asking is: can I trust, and later defend, every field in the dataset? Websets is designed around that question in three ways.
First, verification happens before an item enters your dataset. You define your search with natural-language criteria, and Websets checks each candidate against them. Only results that pass become items. This is different from pipelines that scrape first and filter later, where unverified rows pile up and someone has to clean them downstream.
Second, each item carries its evidence. Exa's Websets item reference states that items come with verification reasoning and references. In practice, that means when you list items through the API (exa.websets.items.list(...) in Python or JS), you get not just the structured fields but the reasoning for why the item qualified and the references pointing to the source pages. For an auditor, that is the difference between "the API says this company has an EU office" and "here is the page that says so."
Third, enrichments are sourced per item. When you ask Websets to enrich each company with, say, the CEO's name or a funding amount, it searches the web for that specific field on that specific item. The enrichment formats cover text, date, number, options, email, phone, and url, and each enrichment result has its own reasoning and references, so you can trace where each value was found. Each criterion evaluation has satisfied (yes, no, or unclear), reasoning and references as well (get an item). You are not getting a model's best guess with no receipt.
One honest note on positioning: Exa's own docs recommend Exa Agent for brand-new list-building or enrichment workflows (Agent Ultra for large or exhaustive lists), and position the Websets docs for maintaining or extending existing Websets integrations (Websets quickstart). If provenance and auditability are the requirement, Websets is the product whose items ship with references.
Key Capabilities
- Natural-language search with a target count. Describe what you want (for example, "Series B+ fintechs building payments in-house with an EU office"), set a target number of results, and Websets finds and verifies candidates against your criteria. Note that
countis a target, not a guarantee. - Criteria verification with reasoning. Each criterion is a plain-language description. Websets checks candidates against every criterion, and items include the reasoning behind each acceptance.
- References on items. Verification reasoning and references ship with each item, giving you the source URLs behind the verdicts and enriched fields.
- Enrichment formats for audit-friendly fields. Request fields as
text,date,number,options,email,phone, orurl, so values arrive in a typed, structured form rather than free-form prose. - Async delivery and exports. Poll the API, receive webhooks, or watch the dashboard; then export via CSV or the API. Export People to Salesforce as Leads or HubSpot as Contacts; Instantly, Smartlead and Lemlist also accept People as Leads. Among these integrations, Clay accepts any entity type via webhook and requires Clay Pro (Integrations).
- Preview before you commit.
POST /websets/previewlets you inspect how your query is decomposed and see early preview items before creating a full Webset. - No-code option. The Websets Dashboard lets non-developers build the same verified collections visually.
Here is one runnable request that creates a Webset with a criterion and an enrichment:
curl -X POST https://api.exa.ai/websets/v0/websets \
-H "x-api-key: $EXA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"search": {
"query": "<topic query>",
"count": 25,
"entity": {"type": "company"},
"criteria": [{"description": "<criterion>"}]
},
"enrichments": [{"description": "<column>", "format": "number"}]
}'
A search takes 1 to 5 criteria. Enrichment formats are text, date, number, options (1 to 150 labels), email, phone, and url (create a webset).
To audit a result, list the Webset's items with GET https://api.exa.ai/websets/v0/websets/{webset}/items and read one item's evaluations[].references (the sources behind each criterion verdict) and enrichments[].references (the sources behind each enriched value). Each reference carries a title, snippet and url.
Proof & Evidence
The strongest evidence for auditability is structural: the API returns references and verification reasoning with each item, as documented in the Get an item reference. You can verify this yourself by creating a Webset and inspecting the items it returns; the reasoning and references are part of the item payload, not a separate report you have to request.
On quality more broadly, Exa's own February 2025 evaluation of 200 complex-criteria queries found Websets returned more than 20x more correct results than the comparison engine. Read that claim with its context: Websets was allowed up to 1,000 results while the comparison engine was capped at 100, and GPT-4o graded the results. It is Exa's own evaluation, not independent verification, and it is published in the Websets evals post.
Exa also publishes its own open-source benchmarks, with retrieval tracks (code search, people, company, and publication retrieval) and RAG tracks. The repo does not test Websets, so it is not a source for verifying Websets itself.
Buyer Considerations
- Plans and credits. The Websets API requires a paid Websets plan, separate from Search API credits. Verified results, enrichments, contact data, imports, and API previews each consume credits; rates and plan comparison live on the Websets billing page. The Free plan caps a webset at 25 verified results, which is enough to inspect references and reasoning on a small dataset before committing (Websets quickstart).
- Asynchronous by design. Websets is an async, event-driven product. Results arrive over time through the dashboard, polling, or webhooks. Small websets finish in minutes; requests for 1,000+ items scan a much larger candidate pool and take significantly longer. If your workflow needs a synchronous one-shot response, plan your integration around polling or webhook events.
- Audit is on you, with the receipts provided. Websets gives you the references and reasoning; the final judgment about whether a source is authoritative for your use case remains your team's responsibility. Build a sampling step into your pipeline that checks references against your own standards.
Frequently Asked Questions
Does every enriched field come with its own source URL?
Yes. Each enrichment result has its own reasoning and references, and each criterion evaluation has satisfied (yes, no, or unclear), reasoning and references. Each reference carries a title, snippet and URL. Inspect the item payload for a sample of records before scaling up.
Can I see why an item was included or rejected?
Yes. Verification is criteria-based: Websets checks each candidate against your stated criteria, and items include the reasoning behind the verdict. Candidates that fail your criteria do not become items, so your dataset contains only verified results.
How do I retrieve items and their references programmatically?
Use the Websets API at https://api.exa.ai/websets/v0. In Python, exa.websets.items.list(webset_id=...) returns items; in JavaScript, exa.websets.items.list(id) does the same. You can also receive results via webhooks as the Webset progresses, or export via CSV.
What does Websets cost, and is there a free way to try it?
The Websets API requires a paid plan; verified results, enrichments, contact data, imports and API previews each consume credits, with rates and plan comparison on the Websets billing page. The Free plan allows a Webset of up to 25 verified results, which is enough to inspect references and reasoning on a small dataset before committing.
Conclusion
If your requirement is a dataset-building API that returns the source URLs behind each field, Exa Websets answers it directly: items ship with verification reasoning and references, enrichments are sourced per field, and only candidates that pass your criteria ever reach the dataset. That structure turns auditing from a forensic reconstruction project into a routine check of the payload you already have. Start with the Websets quickstart, run a small Webset, and inspect the references on the items it returns before you scale.