> ## 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.

# PubMed API for AI Agents - Search 37M+ Biomedical Papers

> Access PubMed's 37M+ biomedical papers through one API. Full-text search with semantic retrieval for AI agents, RAG applications, and medical research.

Search PubMed's 37M+ biomedical and life sciences papers through Valyu's unified API. Get full-text semantic search with author metadata, citations, and DOIs.

## Dataset Overview

| Property      | Value                                                         |
| ------------- | ------------------------------------------------------------- |
| **Source ID** | `valyu/valyu-pubmed`                                          |
| **Size**      | 37M+ papers                                                   |
| **Coverage**  | Medicine, genetics, pharmacology, epidemiology, life sciences |
| **Updates**   | Monthly                                                       |
| **Data Type** | Unstructured (full-text)                                      |

## What You Get

* **Full-text search** - Search across abstracts and paper content, not just titles
* **Author metadata** - Author names, affiliations, and ORCID IDs
* **Citation data** - DOIs, citation counts, and reference links
* **Publication dates** - Filter by date ranges for time-sensitive research
* **Semantic ranking** - Results ranked by relevance to your query

## Quick Start

<CodeGroup>
  ```python Python theme={null}
  from valyu import Valyu

  valyu = Valyu()

  response = valyu.search(
      "CRISPR gene editing therapeutic applications",
      search_type="proprietary",
      included_sources=["valyu/valyu-pubmed"],
      max_num_results=10
  )

  for result in response.results:
      print(f"Title: {result.title}")
      print(f"Authors: {', '.join(result.authors) if result.authors else 'N/A'}")
      print(f"DOI: {result.doi or 'N/A'}")
      print(f"Content: {result.content[:300]}...")
  ```

  ```javascript JavaScript theme={null}
  import { Valyu } from "valyu-js";

  const valyu = new Valyu();

  const response = await valyu.search(
    "CRISPR gene editing therapeutic applications",
    {
      searchType: "proprietary",
      includedSources: ["valyu/valyu-pubmed"],
      maxNumResults: 10
    }
  );

  response.results.forEach((result) => {
    console.log(`Title: ${result.title}`);
    console.log(`Authors: ${result.authors?.join(", ") || "N/A"}`);
    console.log(`DOI: ${result.doi || "N/A"}`);
    console.log(`Content: ${result.content.slice(0, 300)}...`);
  });
  ```
</CodeGroup>

## Use Cases

* **Literature reviews** - Comprehensive searches across biomedical literature
* **Drug discovery research** - Find studies on compounds, targets, and mechanisms
* **Clinical evidence** - Locate clinical studies and treatment outcomes
* **Systematic reviews** - Gather sources for meta-analyses
* **Medical AI training** - Build datasets for healthcare AI applications

## Combine with Other Sources

PubMed works well combined with other healthcare datasets:

```python theme={null}
response = valyu.search(
    "CAR-T cell therapy clinical outcomes",
    search_type="proprietary",
    included_sources=[
        "valyu/valyu-pubmed",
        "valyu/valyu-clinical-trials",
        "valyu/valyu-biorxiv"
    ],
    max_num_results=20
)
```

## Related Data Sources

<CardGroup cols={2}>
  <Card title="Clinical Trials" icon="flask" href="/sources/clinical-trials">
    500K+ clinical studies from ClinicalTrials.gov
  </Card>

  <Card title="ChEMBL" icon="atom" href="/sources/chembl">
    2.5M+ bioactive molecules for drug discovery
  </Card>
</CardGroup>
