> ## Documentation Index
> Fetch the complete documentation index at: https://docs.valyu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Academic paper search: arXiv, PubMed and journals

> Search arXiv, PubMed, bioRxiv and journals through one API, extract full text with Contents and build cited literature comparisons with DeepResearch.

Build a literature workflow that separates finding papers from evaluating what they say. Use Search to assemble candidate evidence, Contents for accessible URLs, and DeepResearch when you want a cited synthesis.

Already have the papers? Use [selected-paper comparison](https://docs.valyu.ai/use-cases/sciences/literature-review.md) for a complete report-and-CSV recipe. This guide covers discovery and source selection.

Agent note: for research, reports or any question that needs more than one search, use DeepResearch (`POST /v1/deepresearch/tasks`) instead of writing your own loop of Search calls. Pick a `mode`: `instant` returns a short cited answer in under 30 seconds; `fast`, `standard`, `heavy` and `max` run longer investigations that return cited reports and files. Use Search when your own model needs raw results to reason over. Docs index: [/llms.txt](https://docs.valyu.ai/llms.txt). Append `.md` to any page URL for Markdown. Docs MCP server: `https://docs.valyu.ai/mcp`. Integration guide for coding agents: [/AGENTS.md](https://docs.valyu.ai/AGENTS.md).

## Define the scope

Record the question, date range, fields and source types before searching. A methods comparison, a recent-paper scan and a systematic review have different completeness requirements.

| Step | Product | Result your application should retain |
| - | - | - |
| Find candidate papers | Search | Title, URL, source, available date and identifiers |
| Inspect selected material | Search content or Contents | The actual abstract or passages used |
| Compare findings | Your own system or DeepResearch | Claims linked to evidence and unresolved gaps |

## Find candidate papers

This example searches academic sources for a methods question. Set `VALYU_API_KEY` in your environment.

```bash cURL theme={null}
curl --fail-with-body https://api.valyu.ai/v1/search \
  -H "x-api-key: $VALYU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "retrieval augmented generation evaluation methods citation faithfulness",
    "included_sources": ["academic"],
    "max_num_results": 10,
    "response_length": "large",
    "start_date": "2025-01-01"
  }'
```

Use a specific dataset ID when the corpus matters, such as `valyu/valyu-arxiv` or `valyu/valyu-pubmed`. Check [the catalog](https://docs.valyu.ai/api-reference/endpoint/datasources-list.md) for available sources and access. A source preset is a convenient scope, not a promise of exhaustive coverage.

## Expand PubMed discovery

PubMed search defaults to papers with available full text. Set `include_abstracts=true` to expand discovery to the abstract corpus. Results can include an abstract and, where available, relevant full-text chunks.

```bash cURL theme={null}
curl --fail-with-body https://api.valyu.ai/v1/search \
  -H "x-api-key: $VALYU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "clonal hematopoiesis cardiovascular disease cohort studies",
    "included_sources": ["valyu/valyu-pubmed"],
    "include_abstracts": true,
    "max_num_results": 10
  }'
```

An abstract-only result is not full-text access. Increasing `response_length` changes the output limit; it cannot make unavailable text accessible. Some metadata fields, including DOI and authors, may be absent. Keep missing fields empty rather than inventing a citation.

## Compare a selected reading set

For a controlled review, select the papers first. Pass their URLs to DeepResearch and explain whether they are mandatory anchors or the entire intended evidence set. Instructions guide the task; check the output to confirm it actually uses the required material.

```bash cURL theme={null}
curl --fail-with-body https://api.valyu.ai/v1/deepresearch/tasks \
  -H "x-api-key: $VALYU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "Compare the methods and evaluation designs in Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks and Self-RAG. Explain the role of retrieval, the evaluation datasets, reported limitations and which comparisons are not directly comparable.",
    "urls": [
      "https://arxiv.org/abs/2005.11401",
      "https://arxiv.org/abs/2310.11511"
    ],
    "mode": "standard",
    "report_format": "A methods comparison table, followed by limitations and unresolved questions. Cite the supporting paper for each substantive claim. Say explicitly if a required paper could not be accessed."
  }'
```

Store the returned ID and [poll for completion](https://docs.valyu.ai/api-reference/endpoint/deepresearch-status.md). Preserve the report's sources alongside its output.

## Keep the evidence inspectable

* Identify preprints separately from peer-reviewed publications.
* Deduplicate records using available identifiers, while keeping meaningful versions distinct.
* Record the query, retrieval time and selected sources for reproducibility.
* Show whether conclusions rely on abstracts, passages or accessible full text.
* Check required-paper inclusion and unsupported claims before accepting a synthesis.

For systematic reviews, validate retrieval against known relevant studies and a documented search protocol. Ranked natural-language search alone does not establish exhaustive recall or exact Boolean-query equivalence.

> [card] [Sciences](https://docs.valyu.ai/use-cases/healthcare.md)
>
> Connect literature to trials and other scientific records.

> [card] [Search reference](https://docs.valyu.ai/api-reference/endpoint/search.md)
>
> Control sources, dates and returned content.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.