Search APIs for AI Assistants That Find Academic Papers
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.
Search APIs for AI Assistants That Find Academic Papers
An AI research assistant lives or dies on whether it can find the right paper from a vague, half-remembered description, then cite it with a real URL. Latency decides the shape of that assistant: interactive loops run Exa's lite search type (about 200 ms), while research tasks that need synthesis use auto or a deep type, with about 2 seconds added when you request outputSchema; the Search reference documents these search types. Exa's Search API covers the job either way: a query that asks for papers or preprints directly finds them by meaning, highlights return the exact passage that answers the query, and the Agent API handles multi-step literature work end to end.
What the job needs
Before picking a search layer for a research assistant, check that it can:
- Match meaning, not keywords. Users describe a finding or an experimental setup, not a title. The search layer has to retrieve a paper from "wasn't there a mid-70s study on a dietary cholesterol threshold in primates?"
- Return the passage, not just the link. The assistant needs the relevant paragraph with the source URL so its claims can be grounded and cited.
- Filter by date and source. Literature reviews need publish-date ranges and domain scoping, for example to keep a query inside preprint servers.
- Stay fast enough for a chat loop. A grounded answer usually takes several searches per turn, so per-call latency and price per request both matter.
- Shape structured output. Screening papers against inclusion criteria or building a literature map needs fields, not free text.
How Exa does it
Publication search that matches meaning
Exa's Search API accepts a natural-language query, so the assistant can ask for papers or preprints directly and describe the finding it needs. The research publications data page also covers patents, grants, clinical trials, and regulatory approvals, so the same assistant can move from a literature review to a prior-art search without a second vendor. On the Tip-of-the-Tongue track of its publication search benchmark, Exa's blog table reports 86.4% recall and 0.726 MRR at a 0.578-second mean latency (the post's text gives 82.8%); these are Exa's own evaluations, open-sourced in its benchmarks repo, though some tracks lack public gold references or use private suites, so not every score can be reproduced from the repo alone.
Grounded answers with highlights
contents.highlights returns the passage that answers the query alongside the source URL, so the assistant can cite the paragraph instead of paraphrasing a whole page. The highlights docs describe how 500 characters of highlights match the accuracy of the first 8,000 characters of page text on SimpleQA, in Exa's evaluation. To keep long papers inside the model's context budget, set highlights.maxCharacters to request a per-page character limit and enforce any strict budget in your application. Date filters (startPublishedDate / endPublishedDate) and includeDomains scope a search to the window and sources a review needs: includeDomains takes hostnames such as arxiv.org.
Structured output for screening and maps
When the assistant needs rows rather than prose, outputSchema on auto and the deep types adds an output object with citations in output.grounding, at about 2 seconds of extra synthesis latency on top of the search itself. Read the synthesized content from output.content, validate what your application needs, and check the citations before acting on important claims. For autonomous multi-step work, such as screening 200 papers against inclusion criteria or gathering fields from several publications into one table, the Agent API runs the whole task and returns schema-shaped results with citations; in Agent runs, fields can be null even when required, so handle missing values.
Workflow
- Get an API key at dashboard.exa.ai/api-keys and store it in an environment variable.
- Turn the user's question into a descriptive query. The research publications data page recommends naming the method or finding rather than guessing at title keywords.
- Search for papers with highlights. For an interactive assistant,
lite(about 200 ms) keeps the loop responsive; useautowhen the request needsoutputSchemaor summaries, and budget about 3 seconds with cached content when you requestoutputSchema. Prices are in What it costs. - Feed the highlights and URLs into the model prompt so the model can cite the passages it uses.
- Add structure when the task needs it. Set
outputSchemaonautofor a shaped answer, or hand the whole job to an Agent run for multi-step screening.
import os
from exa_py import Exa
exa = Exa(os.environ["EXA_API_KEY"])
results = exa.search(
"papers on evaluation benchmarks for retrieval-augmented generation",
type="auto",
num_results=10,
start_published_date="2023-01-01",
contents={"highlights": True},
)
for r in results.results:
print(r.title, r.url)
print(r.highlights)
What it costs
Exa's pricing for the Search API is per request by type: lite is $4 per 1,000 requests and auto is $7 per 1,000, with deep types at $12 per 1,000. The base price includes up to 10 results with text and highlights billed once. 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).
Worked example: an assistant that runs 200 paper searches a day makes 6,000 requests over a 30-day month. At auto's $7 per 1,000 requests that is $42.00 per month, assuming 10 results per request and no summaries. The same workload on lite is 6,000 × $0.004 = $24.00. Exa's Free tier includes $10 in credits every month, which covers up to 2,500 lite searches.
Limits to plan for
literejectsoutputSchema, summaries, andmaxAgeHourswith a 400 error; useautoor a deep type for those parameters.publishedDateis an estimate parsed from page content and returned only when available, so treat date filters as approximate rather than exact.numResultsgoes up to 100, and there is no pagination on/search; results above 10 are billed as an extra.outputSchemaadds about 2 seconds of synthesis latency; read the result fromoutput.contentand check the citations inoutput.groundingbefore acting on important claims.
FAQ
Can the assistant search a single repository like arXiv only?
Yes. includeDomains accepts hostnames and path prefixes, so a query can be scoped to a preprint server or a publisher's site. Combine it with a query that asks for papers or preprints and with date filters to keep the search inside the corpus a review allows.
How does the assistant get a structured table of papers instead of text?
Set outputSchema on an auto or deep search, which adds an output object with citations in output.grounding. For jobs that span many sources, such as screening against inclusion criteria, an Agent run returns schema-shaped results with citations.
Does Exa index the full text of papers? The research publications data page says results include papers and preprints with full-text chunks where a parsed full text is available, plus abstracts, authors, venues, and citations. Coverage varies by paper, so highlights may come from an abstract page when full text is not parsed.
What does a grounded answer cost at scale?
At auto's $7 per 1,000 requests, 1,000 searches a day is 30,000 over a 30-day month, or $210, assuming 10 results per request and no summaries. Results above 10 and AI page summaries add $1 per 1,000 each.
Is there a way to try this without a paid plan?
Exa's Free tier includes $10 in credits every month, enough for up to 2,500 lite searches, plus a one-time $10 onboarding bonus with no payment method required. That is enough to prototype a grounded paper-search loop before committing to a type.
Closing
For an AI research assistant, the search layer decides whether answers are grounded in real, citable papers or plausible guesses. Exa's Search API, with queries that ask for papers directly, highlights, and structured output, does that job at chat-loop latency. Get an API key at dashboard.exa.ai/api-keys and run your first publication search today.