# PubMed & Europe PMC API — Papers, Emails & PDFs (`yannabadie/pubmed-europepmc-api-mcp`) Actor

Official Europe PMC & PubMed REST API scraper & MCP tool. Extract full untruncated abstracts, author emails, ORCIDs, citations, MeSH terms, NIH/EU grants, NCT trials & free PDF links. $2/1k, free count mode, zero proxy.

- **URL**: https://apify.com/yannabadie/pubmed-europepmc-api-mcp.md
- **Developed by:** [Yann Abadie](https://apify.com/yannabadie) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 pubmed / europe pmc article records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

![PubMed & Europe PMC API — Papers, Emails & PDFs](https://raw.githubusercontent.com/yannabadie/yannabadie/main/assets/banner_pubmed_europepmc.png)

## PubMed & Europe PMC API — Papers, Emails & PDFs

Extract **37M+ biomedical papers, clinical studies & preprints** directly from the **official EMBL-EBI Europe PMC & PubMed REST API** — with **100% untruncated full abstracts**, corresponding author emails, ORCIDs, citation counts, MeSH terms, NIH/EU grants, linked ClinicalTrials.gov `NCT` numbers, and direct free PDF links.

Zero API key. Zero proxy. Pure pay-per-event (**$2.00 / 1,000 papers**, no Apify compute surcharge) + **FREE `count` mode** (`0` paper charge).

***

### Why This Actor vs. Legacy PubMed HTML Scrapers

| Feature | This Actor (`pubmed-europepmc-api-mcp`) | EasyApi PubMed Scraper | ScrapeStorm PubMed Scraper |
|---|---:|---:|---:|
| **Price per 1,000 papers** | **$2.00 flat** (no compute surcharge) | $2.99 + **$0.09/start** + compute | **$9.99** + compute |
| **Actor start fee** | **$0.005** (`18×` cheaper) | $0.09 | Platform compute |
| **Full untruncated abstracts** | **Yes (100% complete text)** | Truncated snippets (`...`) | Truncated snippets (`...`) |
| **Author emails & ORCIDs** | **Yes** (`onlyWithEmail` filter) | No | No |
| **Free PDF & HTML links** | **Yes** (Europe PMC + Unpaywall) | No | No |
| **Citations, MeSH & Grants** | **Yes** (`citedByCount`, NIH/ERC grants) | No | No |
| **ClinicalTrials.gov `NCT` links** | **Yes** (`onlyWithNct` filter) | No | No |
| **FREE `count` preview mode** | **Yes (`\$0` per paper)** | No | No |
| **Structured filters + `startUrl`** | **Yes** (query, author, journal, MeSH, year, OA, PDF) | URL only | Keyword only |

***

### Four Modes in One Actor

1. **`search` (default)** — Structured query (`query`, `author`, `journal`, `meshTerm`, `grantAgency`, `pubYearFrom`/`pubYearTo`, `pubType`, `source` = `ALL`/`MED`/`PPR`, `openAccessOnly`, `hasFreePdf`, `onlyWithEmail`, `onlyWithNct`, `sortBy` = `relevance`/`date`/`cited`) or paste any **`startUrl`** (`https://pubmed.ncbi.nlm.nih.gov/?term=...`).
2. **`count` (FREE — $0 paper charge)** — Preview exact `totalMatches` and estimated cost before pulling a large literature dataset.
3. **`lookup_pmids`** — Direct batch lookup by `PMID` (`27295427`), `PMCID` (`PMC4985288`), or `DOI` (`10.1056/NEJMoa1603827`), automatically deduplicated.
4. **`batch_search`** — Query multiple drugs, biomarkers, or diseases in one run with deduplication and `matchedQuery` tagging.

***

### Input Examples

#### Highly cited GLP-1 papers linked to ClinicalTrials.gov with free PDFs

```json
{
  "mode": "search",
  "query": "GLP-1 semaglutide",
  "pubYearFrom": 2022,
  "hasFreePdf": true,
  "onlyWithNct": true,
  "sortBy": "cited",
  "maxResults": 100
}
```

#### FREE volume & cost preview before bulk export

```json
{
  "mode": "count",
  "query": "CRISPR gene therapy",
  "openAccessOnly": true,
  "pubYearFrom": 2024
}
```

#### Direct PMID / PMCID / DOI enrichment

```json
{
  "mode": "lookup_pmids",
  "pmids": ["27295427", "PMC4985288", "10.1056/NEJMoa1603827"]
}
```

***

### Output Sample

```json
{
  "pmid": "27295427",
  "pmcid": "PMC4985288",
  "doi": "10.1056/nejmoa1603827",
  "title": "Liraglutide and Cardiovascular Outcomes in Type 2 Diabetes.",
  "abstractText": "BACKGROUND: The cardiovascular effect of liraglutide, a glucagon-like peptide 1 analogue, when added to standard care in patients with type 2 diabetes, remains unknown...",
  "journalTitle": "The New England journal of medicine",
  "journalIso": "N Engl J Med",
  "pubYear": 2016,
  "citedByCount": 5702,
  "isOpenAccess": false,
  "hasFreeFullText": true,
  "hasPdf": true,
  "firstAuthor": "Marso SP",
  "primaryAuthorEmail": null,
  "authorEmails": [],
  "grants": [{ "grantId": "UL1 TR001111", "agency": "NCATS NIH HHS", "acronym": "TR" }],
  "meshTerms": ["Humans", "Cardiovascular Diseases", "Liraglutide"],
  "linkedClinicalTrialNcts": ["NCT01179048"],
  "freePdfUrl": "https://europepmc.org/articles/PMC4985288?pdf=render",
  "pubmedUrl": "https://pubmed.ncbi.nlm.nih.gov/27295427/",
  "europePmcUrl": "https://europepmc.org/article/MED/27295427"
}
```

***

### MCP & AI Agents Integration

Connect directly from **Claude Desktop, Cursor, Windsurf, or n8n** via the Apify MCP Server:

```json
{
  "mcpServers": {
    "apify-pubmed": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=yannabadie/pubmed-europepmc-api-mcp"
    }
  }
}
```

Need a free local stdio MCP server for interactive queries (`<= 25` rows) or ready-to-import n8n workflows?

- **Free Open-Source MCP Server (MIT)**: https://github.com/yannabadie/eu-us-opendata-mcp
- **Free n8n Workflow Templates**: https://github.com/yannabadie/official-opendata-mcp-n8n-templates

***

### Complete Official Open-Data Suite (`yannabadie`)

#### Healthcare, Pharma & Life Sciences Suite (3 Actors)

- **[ClinicalTrials.gov API v2 — Trials & Contacts](https://apify.com/yannabadie/clinical-trials-api-mcp)** — Pair linked `NCT` trial IDs from PubMed papers with live NIH recruitment status, sponsors & PI contacts (`$5/1k`).
- **[NPI Registry Scraper — US Doctors & Clinics API](https://apify.com/yannabadie/npi-healthcare-providers-mcp)** — Enrich U.S. clinical investigators & physicians with direct phones, fax, specialties & clinics (`$2.50/1k` flat).
- **[PubMed & Europe PMC API — Papers, Emails & PDFs](https://apify.com/yannabadie/pubmed-europepmc-api-mcp)** — Full abstracts, author emails, ORCIDs, citations, grants & free PDFs (`$2/1k`).

#### European B2B & GovTech Suite (2 Actors)

- **[Pappers / SIRENE Scraper — French Companies API](https://apify.com/yannabadie/french-company-intelligence-mcp)** — French SIRENE/RNE, EU VAT, BODACC insolvency & BOAMP awards (`$6/1k`).
- **[TED Europa & BOAMP — EU Public Tenders & Contacts](https://apify.com/yannabadie/eu-public-tenders-ted-boamp)** — 27-country EU tenders & French BOAMP with buyer emails, phones & winners (`$3–4/1k`).

***

### Pricing (`PAY_PER_EVENT` — Transparent & All-Inclusive)

- **`apify-actor-start`**: `\$0.005` once per run.
- **`pubmed-article-record`**: `\$0.002` per emitted paper (`\$2.00 / 1,000` papers — full abstract, emails, grants, MeSH & PDF links included; `\$0` in `count` mode).
- No extra Apify compute or proxy fees.

### FAQ

- **Does this Actor require an NCBI / PubMed API key or proxy?** No. It queries the official public EMBL-EBI Europe PMC REST API directly (which mirrors all 37M+ PubMed/MEDLINE records plus PMC open-access full text and bioRxiv/medRxiv preprints).
- **Are abstracts ever truncated?** Never. Using `resultType=core`, every paper returns the complete cleaned `abstractText`.
- **How are author emails extracted?** From structured `authorAffiliationDetailsList` and affiliation metadata returned by Europe PMC. Enable `onlyWithEmail: true` for outreach-ready KOL lists.

# Actor input Schema

## `mode` (type: `string`):

search = structured search (or startUrl); count = FREE exact hitCount & cost preview ($0 paper charge); lookup_pmids = direct batch lookup by PMIDs/PMCIDs/DOIs; batch_search = deduplicated pull across multiple queries.

## `query` (type: `string`):

Keywords, drug, disease, or boolean Europe PMC / PubMed query (e.g. 'GLP-1 semaglutide', 'CRISPR gene editing', '"rheumatoid arthritis" AND biologic').

## `startUrl` (type: `string`):

Paste a PubMed search URL (https://pubmed.ncbi.nlm.nih.gov/?term=...) or Europe PMC search URL to import its query automatically.

## `queries` (type: `array`):

List of search queries to run and deduplicate by PMID/DOI in batch_search mode.

## `pmids` (type: `array`):

Direct identifiers to retrieve (e.g. \['27295427', 'PMC4985288', '10.1056/NEJMoa1603827']).

## `author` (type: `string`):

Filter by author name (e.g. 'Marso SP' or 'Doudna J').

## `journal` (type: `string`):

Filter by journal title or ISO abbreviation (e.g. 'Lancet', 'N Engl J Med', 'Nature').

## `meshTerm` (type: `string`):

Filter by Medical Subject Heading (e.g. 'Cardiovascular Diseases', 'Neoplasms').

## `grantAgency` (type: `string`):

Filter by funder name (e.g. 'NIH', 'Wellcome Trust', 'European Research Council').

## `pubYearFrom` (type: `integer`):

Start publication year inclusive (e.g. 2023).

## `pubYearTo` (type: `integer`):

End publication year inclusive (e.g. 2026).

## `pubType` (type: `string`):

Filter by publication type (e.g. 'Clinical Trial', 'Randomized Controlled Trial', 'Review', 'Meta-Analysis', 'Preprint').

## `source` (type: `string`):

ALL = PubMed + Europe PMC + Preprints; MED = PubMed/MEDLINE only; PPR = Preprints only (bioRxiv/medRxiv).

## `sortBy` (type: `string`):

Sort results by relevance, newest publication date, or highest citation count.

## `openAccessOnly` (type: `boolean`):

Restrict to Open Access articles (OPEN_ACCESS:Y).

## `hasFreePdf` (type: `boolean`):

Restrict to articles with a free downloadable PDF (HAS_PDF:Y).

## `onlyWithEmail` (type: `boolean`):

Filter output to articles containing at least one extracted corresponding/author email.

## `onlyWithNct` (type: `boolean`):

Filter output to articles referencing at least one ClinicalTrials.gov NCT identifier.

## `maxResults` (type: `integer`):

Maximum number of articles to emit (up to 5000 per run). Ignored in free count mode.

## Actor input object example

```json
{
  "mode": "search",
  "query": "GLP-1 semaglutide",
  "startUrl": "",
  "queries": [],
  "pmids": [],
  "author": "",
  "journal": "",
  "meshTerm": "",
  "grantAgency": "",
  "pubType": "",
  "source": "ALL",
  "sortBy": "relevance",
  "openAccessOnly": false,
  "hasFreePdf": false,
  "onlyWithEmail": false,
  "onlyWithNct": false,
  "maxResults": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("yannabadie/pubmed-europepmc-api-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("yannabadie/pubmed-europepmc-api-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call yannabadie/pubmed-europepmc-api-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yannabadie/pubmed-europepmc-api-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/6TA0hrb0g9TTOtbmN/builds/ZcgU5Bjt62tmwDbLq/openapi.json
