Skip to main content
A RAG pipeline or research agent is only as good as what its retrieval step puts in the context window. For scientific questions, that means four things from a search API:
  1. The right papers in the top few results for a question written in plain language, because agents ask in sentences.
  2. Full-text snippets, not just titles, so the model reads the passage that supports a claim.
  3. Metadata to weigh the evidence, so the model can prefer a meta-analysis to a case report.
  4. Stable identifiers, so every claim the model makes stays citable.

How the APIs compare for RAG

Full-text snippets, ready for a prompt

Add include_full_text_chunks=true to a Consensus search on a paid plan. Each eligible result gains up to 3 passages from the body of the paper, chosen for your query, each starting with the section it came from. You get the doses, methods and measured values that abstracts leave out, without downloading and chunking PDFs.
Python
Snippets come from open-access papers. Partner full text improves which papers rank, but isn’t returned. When a paper has no snippet, fall back to its abstract and takeaway. See Full text in the API.

Or let Consensus run the agent

If you’d rather not build the retrieval loop, the Threads API runs the Consensus research agent for you. It does more than search: it plans a multi-step strategy, crawls citations backward and forward from key papers, looks up authors, finds specific papers and reads them in full. It returns a written answer with numbered citations and the quotes it relied on.
  • pro reads about 20 papers. Use it for most questions.
  • deep reads about 50 papers and writes a structured report. It needs a paid plan.
For assistants and agents that speak MCP, the Consensus MCP server offers the same search and research agent as tools.

Web search APIs vs a scholarly search API

Exa and Tavily are web search APIs built for AI agents. Exa’s search endpoint “lets you search the web”, and offers a publication category for research papers and journal articles8. Tavily calls itself “the web layer for AI agents”9. They’re the right tools for news, company pages and the open web. The biggest difference is full text. Consensus searches the full text of papers from 13 publisher partners, including 7 of the 10 largest academic publishers, as well as every open-access paper, and hands your agent the passage from the paper that supports the point. That text isn’t on the open web, so a web index can’t search it. Search results carry snippets from open-access papers, and the research agent’s citations carry the quotes it relied on. A scholarly API also gives your agent:
  • A defined corpus of papers, each with a DOI, journal and year, instead of a mix of papers, press releases and blog posts.
  • Evidence metadata, so the agent can tell a randomized trial from a case report and a peer-reviewed paper from a preprint.
  • Retraction handling. Consensus marks retracted papers and never uses them in its AI answers.
Many teams give their agent both: web search for current events and general facts, Consensus for anything that needs a citation to the literature.

In production

  • Owkin replaced a hand-maintained set of PubMed abstracts with the Consensus MCP server inside its AI scientist, and got 25x the paper coverage. See Swap a hand-maintained paper corpus.
  • Phylo’s agents fan each biology question out into parallel Consensus API searches to screen about 20,000 drug targets. See Parallel search angles.

Add an evidence layer to an agent

Give a working agent peer-reviewed literature as a tool.

Compare scholarly APIs

Why teams choose Consensus, and every API at a glance.

Sources

Facts about other providers were checked against their official documentation on 5 November 2026. Limits and prices change, so check the source before you build on a number.
  1. PubMed User Guide: Boolean operators, field tags, MeSH and Best Match sorting.
  2. About PMC: “more than 10 million full-text article records”.
  3. About Europe PMC: 49.2 million abstracts and 12.5 million full-text articles; searches abstracts and full text; searches can be limited to clinical trials, preprints or article sections such as Methods; free to anyone.
  4. Europe PMC developer resources: REST, SOAP, OAI-PMH and FTP access to open-access content and metadata; automated bulk download of other content isn’t allowed. The Articles RESTful API includes /{id}/fullTextXML.
  5. OpenAlex semantic search: embeds title, abstract and venue name; up to 50 results per query; 1 request a second; 17 supported filters, and others such as cited_by_count return a 400 error.
  6. OpenAlex full text: cached PDF and TEI XML for more than 60 million open-access works.
  7. Semantic Scholar Academic Graph API reference: /paper/search (up to 1,000 relevance-ranked results), /paper/search/bulk (Boolean), /snippet/search (passages of about 500 words from title, abstract and body), and the publicationTypes, minCitationCount and venue filters.
  8. Exa search API reference: “The search endpoint lets you search the web”; the publication category covers research papers, preprints and journal articles.
  9. About Tavily: “the web layer for AI agents”.