# PubMed Scraper: Biomedical Papers, Abstracts, Authors & MeSH (`plotpointtech/pubmed-scraper`) Actor

Export PubMed articles via NCBI's official API: titles, structured abstracts, authors with affiliations and ORCID, DOI, PMC free full-text links, MeSH, grants and citing articles. PubMed query syntax or PMIDs. $0.75 per 1,000.

- **URL**: https://apify.com/plotpointtech/pubmed-scraper.md
- **Developed by:** [Plot Point Technologies](https://apify.com/plotpointtech) (community)
- **Categories:** AI, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.47 / 1,000 articles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper: Biomedical Papers, Abstracts, Authors & MeSH

**Export PubMed search results as clean, structured rows, straight from NCBI's official E-utilities API.** Use full PubMed query syntax or simple fields (keywords, author, journal, dates, article type, free full text), or paste a list of PMIDs, and get the title, the full abstract with its structured sections, every author with affiliations and ORCID, journal and dates, DOI, PMC ID and free full-text link, MeSH headings, keywords, publication types, grants, linked clinical trial IDs and, optionally, the articles that cite each paper. **$0.75 per 1,000 articles.**

### What does this PubMed scraper do?

- **Uses NCBI's official E-utilities** (esearch, efetch, elink), the API the US National Library of Medicine provides for automated access to PubMed. No browser, no login, no scraping of web pages.
- **Covers all of PubMed:** more than 38 million citations for biomedical and life-science literature from MEDLINE, PubMed Central and publisher submissions, updated daily.
- **Accepts real PubMed queries:** anything you type in the PubMed search box works, including field tags like `[tiab]`, `[mh]`, `[au]`, `[pt]`, `[dp]` and Boolean logic. Or fill in the simple fields and the tool builds the query for you.
- **Keeps structured abstracts structured:** BACKGROUND, METHODS, RESULTS and CONCLUSIONS come as separate labelled sections, plus a ready-to-read combined `abstract` text.
- **Rich author data:** full names, initials, every affiliation, ORCID iDs (when the publisher supplied them) and equal-contribution flags.
- **Large downloads that do not stop at 9,999:** PubMed's API only pages through the first 9,999 hits of a query. Above that, the tool automatically splits the search into publication-date windows (newest first) and uses NCBI's history server for each one, so you can export tens of thousands of records in a single run.
- **Plays by NCBI's rules:** identifies itself with the `tool` and `email` parameters, stays under 3 requests per second without a key, and uses your own free NCBI API key, if you add one, for 10 requests per second.
- **Fast:** the default run (50 articles for one query) takes about 4 seconds.

### Who uses it?

- **Pharma, biotech and medical affairs teams:** literature surveillance for a drug, target or indication; key opinion leader (KOL) mapping from authors and affiliations; competitive intelligence on publications by company or institution.
- **Researchers, librarians and evidence-synthesis teams:** export search results for systematic reviews and meta-analyses with MeSH terms and publication types for screening.
- **Grant and funding analysts:** see which NIH institutes and foundations fund work in an area, using the `grants` field.
- **AI and data teams:** build biomedical datasets, RAG knowledge bases and training corpora from titles, abstracts and MeSH annotations.
- **Medical writers and consultancies:** current, citable lists of papers with DOIs and free full-text links.

### How to use it

1. Click **Try for free** (or **Start**).
2. Type a **PubMed search query** (for example `CRISPR gene therapy` or `"breast neoplasms"[mh] AND trastuzumab[tiab]`), or use the simple fields: **Keywords**, **Author**, **Journal**, **Published from / to**, **Article types**, **Free full text only**.
3. To fetch known articles, paste **PMIDs** (or PubMed URLs) instead.
4. Set **Maximum results**, and switch on **Include citing articles** if you need citation links.
5. Run, then download the results as Excel, CSV, JSON or HTML, or send them on with the API or an integration.

### Input

| Field | What it does |
|---|---|
| `query` | Any PubMed search, with full PubMed syntax (field tags, AND/OR/NOT, quotes, date ranges). |
| `keywords` | Simple keyword search, combined with the query using AND. |
| `author` | Author name as PubMed indexes it, e.g. `Doudna JA`. Several authors separated by `;` (any matches). |
| `journal` | Journal title or abbreviation, e.g. `Nature`, `N Engl J Med`. Several separated by `;`. |
| `dateFrom`, `dateTo` | Publication date range: `YYYY`, `YYYY-MM` or `YYYY-MM-DD`. |
| `articleTypes` | PubMed publication types: Review, Systematic Review, Meta-Analysis, Randomized Controlled Trial, Clinical Trial (and phases), Case Reports, Guideline, Preprint and more. |
| `language` | Article language, e.g. `english`. |
| `freeFullTextOnly` | Only articles PubMed marks as free full text. |
| `hasAbstract` | Only articles that have an abstract. |
| `pmids` | Specific PubMed IDs or PubMed URLs. |
| `sortBy` | Best match, newest first, first author or journal. |
| `maxResults` | Stop after this many articles (default 50; 0 = all matches). |
| `includeCitedBy`, `maxCitedByPmids` | Add the number and PMIDs of articles that cite each paper. |
| `apiKey` | Optional: your own free NCBI API key, for 10 instead of 3 requests per second on large runs. Stored as a secret. |

With empty input the tool runs the example search `CRISPR gene therapy` and returns 50 articles.

### Input example

Randomized controlled trials of semaglutide published in NEJM or The Lancet since 2021, with citing articles:

```json
{
  "keywords": "semaglutide",
  "journal": "N Engl J Med; Lancet",
  "dateFrom": "2021",
  "articleTypes": ["Randomized Controlled Trial"],
  "sortBy": "newest",
  "maxResults": 200,
  "includeCitedBy": true
}
```

The same search in PubMed syntax: `{"query": "semaglutide AND (\"N Engl J Med\"[journal] OR \"Lancet\"[journal]) AND randomized controlled trial[pt] AND 2021:2026[dp]"}`

### Output example

A real record from the default run (long lists shortened to 3 items, 2 of 28 authors and 1 of 19 MeSH headings shown):

```json
{
  "pmid": "40963013",
  "title": "CRISPR activation for SCN2A-related neurodevelopmental disorders.",
  "abstract": "Most neurodevelopmental disorders with single gene diagnoses act via haploinsufficiency, in which only one of the two gene copies is functional1. SCN2A haploinsufficiency is one of the most frequent causes of neurodevelopmental disorder, often presenting with...",
  "abstractSections": [
    {
      "label": null,
      "category": null,
      "text": "Most neurodevelopmental disorders with single gene diagnoses act via haploinsufficiency, in which only one of the two gene copies is functional1. SCN2A haploinsufficiency is one of the most frequent causes of neurodevelopmental disorder, often presenting with..."
    }
  ],
  "authors": [
    {
      "name": "Serena Tamura",
      "lastName": "Tamura",
      "foreName": "Serena",
      "initials": "S",
      "collectiveName": null,
      "orcid": null,
      "orcidUrl": null,
      "affiliations": [
        "Department of Bioengineering and Therapeutic Sciences, University of California San Francisco, San Francisco, CA, USA.",
        "Institute for Human Genetics, University of California San Francisco, San Francisco, CA, USA."
      ],
      "equalContribution": true
    },
    {
      "name": "Elizabeth C Hamada",
      "lastName": "Hamada",
      "foreName": "Elizabeth C",
      "initials": "EC",
      "collectiveName": null,
      "orcid": "0009-0008-0614-8141",
      "orcidUrl": "https://orcid.org/0009-0008-0614-8141",
      "affiliations": [
        "Weill Institute for Neurosciences, University of California San Francisco, San Francisco, CA, USA.",
        "Department of Neurology, University of California San Francisco, San Francisco, CA, USA."
      ],
      "equalContribution": false
    }
  ],
  "authorNames": "Tamura S; Nelson AD; Spratt PWE; Hamada EC; Zhou X; Kyoung H; Li Z; Arnould C; Barskyi V; Krupkin B; Young K; Zhao J; Holden SS; Sahagun A; Keeshen CM; Lu C; Ben-Shalom R; Taloma SE; Schamiloglu S; Li YC; Min L; Jenkins PM; Pan JQ; Paz JT; Sanders SJ; Matharu...",
  "firstAuthor": "Tamura S",
  "lastAuthor": "Bender KJ",
  "authorCount": 28,
  "journal": "Nature",
  "journalAbbreviation": "Nature",
  "issn": "1476-4687",
  "volume": "646",
  "issue": "8086",
  "pages": "983-991",
  "pubDate": "2025-10",
  "pubYear": 2025,
  "pubDateText": null,
  "electronicPubDate": "2025-09-17",
  "doi": "10.1038/s41586-025-09522-w",
  "doiUrl": "https://doi.org/10.1038/s41586-025-09522-w",
  "pmcid": "PMC12581945",
  "freeFullTextUrl": "https://pmc.ncbi.nlm.nih.gov/articles/PMC12581945/",
  "pmcReleaseDate": "2025-11-03",
  "meshTerms": [
    "Animals",
    "Mice",
    "NAV1.2 Voltage-Gated Sodium Channel"
  ],
  "majorMeshTerms": [
    "NAV1.2 Voltage-Gated Sodium Channel",
    "Neurodevelopmental Disorders",
    "CRISPR-Cas Systems"
  ],
  "meshHeadings": [
    {
      "descriptor": "Animals",
      "ui": "D000818",
      "majorTopic": false,
      "qualifiers": []
    }
  ],
  "keywords": [],
  "publicationTypes": [
    "Journal Article",
    "Research Support, N.I.H., Extramural",
    "Research Support, Non-U.S. Gov't"
  ],
  "isRetracted": false,
  "grants": [
    {
      "grantId": "R01 MH125978",
      "acronym": "MH",
      "agency": "NIMH NIH HHS",
      "country": "United States"
    },
    {
      "grantId": "R01 MH126960",
      "acronym": "MH",
      "agency": "NIMH NIH HHS",
      "country": "United States"
    },
    {
      "grantId": "R01 MH136475",
      "acronym": "MH",
      "agency": "NIMH NIH HHS",
      "country": "United States"
    }
  ],
  "grantAgencies": [
    "NIMH NIH HHS",
    "NINDS NIH HHS"
  ],
  "chemicals": [
    "NAV1.2 Voltage-Gated Sodium Channel",
    "Scn2a protein, mouse",
    "SCN2A protein, human"
  ],
  "clinicalTrialIds": [],
  "language": "eng",
  "journalCountry": "England",
  "publicationStatus": "ppublish",
  "medlineStatus": "MEDLINE",
  "copyright": "© 2025. The Author(s), under exclusive licence to Springer Nature Limited.",
  "dateRevised": "2026-11-02",
  "url": "https://pubmed.ncbi.nlm.nih.gov/40963013/"
}
```

Main fields: `pmid`, `title`, `abstract`, `abstractSections` (label, NLM category, text), `authors` (name, last name, fore name, initials, collective name, `orcid`, `orcidUrl`, `affiliations`, equal contribution), `authorNames`, `firstAuthor`, `lastAuthor`, `authorCount`, `journal`, `journalAbbreviation`, `issn`, `volume`, `issue`, `pages`, `pubDate`, `pubYear`, `electronicPubDate`, `doi`, `doiUrl`, `pmcid`, `freeFullTextUrl`, `pmcReleaseDate`, `meshTerms`, `majorMeshTerms`, `meshHeadings` (with qualifiers and unique IDs), `keywords`, `publicationTypes`, `isRetracted`, `grants`, `grantAgencies`, `chemicals`, `clinicalTrialIds`, `language`, `journalCountry`, `publicationStatus`, `copyright`, `dateRevised`, `url`, and with citations switched on `citedByCount` and `citedByPmids`.

### How much does it cost?

**$0.75 per 1,000 articles** ($0.00075 per article), plus a $0.00005 start fee per run. Turning on citing articles does not change the price. You set the maximum, and the run stops when your spending limit is reached.

| You collect | You pay |
|---|---|
| 50 articles for one query (default run) | about $0.04 |
| 1,000 articles for a literature review | $0.75 |
| 20,000 articles on a therapeutic area | $15 |
| Weekly alert: 300 new articles on your drug or target | about $1 a month |

**Volume discounts on higher Apify plans.** The prices above are for the Apify Free plan. On paid plans the per-article price drops automatically: about 15% lower on Bronze, 25% lower on Silver and 38% lower on Gold and above.

### Use it via API, Make, Zapier, n8n or an AI agent

**Apify API.** Start a run and get the results back in one HTTP request (replace `YOUR_API_TOKEN` with the token from Apify Console > Settings > Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/plotpointtech~pubmed-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "CRISPR gene therapy", "maxResults": 50}'
```

For longer jobs, start the run asynchronously and read the dataset when it finishes. Official `apify-client` libraries exist for Python and JavaScript; the **API** tab on this page has ready-made code.

**No-code automation.** Connect the tool to **Make, Zapier, n8n, Google Sheets, Slack, Airtable** or any webhook with Apify integrations, and use **Schedules** in Apify Console to run it daily or weekly (for example with `sortBy` set to newest and a recent `dateFrom`) as a literature alert.

**AI agents (MCP).** Give Claude, ChatGPT, Cursor, VS Code or any MCP-compatible agent direct access to this tool through the hosted Apify MCP server. Add this server URL to your client:

```
https://mcp.apify.com?tools=plotpointtech/pubmed-scraper
```

The agent can then call the tool with the same input fields shown above and read the results.

### FAQ

**Is it legal to use PubMed data?**
PubMed citation data is provided by the US National Library of Medicine, and E-utilities is NLM's official interface for automated access. This tool follows NCBI's usage policy: it identifies itself, keeps to the published request limits and uses the history server for large result sets. Note that abstracts and some other content may be protected by the copyright of the publisher or author (see the `copyright` field); NLM does not grant rights to reuse them. Check that your use (for example republishing abstracts) is allowed. NCBI asks that very large jobs run outside US business hours or at weekends.

**Do I need an NCBI API key?**
No. Without a key the tool runs at NCBI's 3 requests per second, which already exports about 600 articles per second of fetching. A free key from your NCBI account raises the limit to 10 per second and makes runs of thousands of articles roughly 3x faster.

**Can I get more than 10,000 results?**
Yes. PubMed's API only returns the first 9,999 records of a single search, so for bigger requests the tool splits your search into publication-date windows, newest first, and collects each one. The sort order then applies within each window.

**Does it download the full text?**
No. It returns the PubMed record and a link to the free full text in PubMed Central (`freeFullTextUrl`) when one exists and the publisher embargo has ended (`pmcReleaseDate`). "Free full text only" also includes articles that are free on the publisher's site; for those, follow the DOI link.

**Why are citation counts lower than Google Scholar's?**
`citedByCount` comes from NCBI's "cited in" links, which count citing articles whose reference lists are in PubMed Central. It is a reliable, reproducible count, but a subset of all citations. For broader citation counts, use our OpenAlex tool below.

**Why do some authors have no ORCID or affiliation?**
These fields are supplied by publishers. Older papers usually list the affiliation of the first author only, and ORCID iDs appear mainly in papers from the last decade.

### Related tools from Plot Point Technologies

- [Research Papers Scraper - OpenAlex 250M+ Works](https://apify.com/plotpointtech/research-papers-scraper-openalex): scholarly papers from every field with citation counts, open-access links and institutions, beyond biomedicine.
- [ClinicalTrials.gov Scraper - Studies, Sites & Contacts](https://apify.com/plotpointtech/clinicaltrials-gov-scraper): look up the trials behind the `clinicalTrialIds` in your PubMed results, with sponsors, phases, sites and contacts.
- [NPI Registry Scraper - US Healthcare Providers](https://apify.com/plotpointtech/npi-registry-healthcare-providers): US doctors, clinics and pharmacies from the official NPI Registry.
- [News Scraper - Worldwide News Search by Keyword](https://apify.com/plotpointtech/worldwide-news-search): news coverage of a drug, company or disease in 65+ languages.

Plot Point Technologies is not affiliated with PubMed, the National Center for Biotechnology Information (NCBI), the US National Library of Medicine or the National Institutes of Health. Data source: PubMed, retrieved through NCBI E-utilities at run time.

***

If this tool saved you time, we would be grateful for a short review on this page; it helps other people find it. If something did not work as expected, please open an issue on the **Issues** tab and we will look into it quickly.

# Actor input Schema

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

Anything you would type in the PubMed search box, including full PubMed syntax: field tags such as \[ti], \[tiab], \[au], \[mh], \[pt], \[dp], Boolean AND/OR/NOT and quotes. Example: "breast neoplasms"\[mh] AND trastuzumab\[tiab] AND 2020:2026\[dp]. Leave empty to use only the simple fields below.

## `keywords` (type: `string`):

Simple keyword search (all fields, PubMed's automatic term mapping), ANDed with the query, e.g. semaglutide obesity.

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

Author name as PubMed indexes it, e.g. Doudna JA or Zhang Feng. Separate several authors with ; (any of them matches).

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

Journal title or abbreviation, e.g. Nature, N Engl J Med, The Lancet. Separate several with ;.

## `dateFrom` (type: `string`):

Publication date on or after: YYYY, YYYY-MM or YYYY-MM-DD.

## `dateTo` (type: `string`):

Publication date on or before: YYYY, YYYY-MM or YYYY-MM-DD.

## `articleTypes` (type: `array`):

Keep articles with any of these PubMed publication types. Leave empty for all.

## `language` (type: `string`):

Article language, e.g. english, german, chinese. Leave empty for all.

## `freeFullTextOnly` (type: `boolean`):

Keep only articles PubMed marks as free full text (PMC or free at the publisher).

## `hasAbstract` (type: `boolean`):

Skip records without an abstract (letters, comments, many older papers).

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

Fetch these PubMed IDs directly, e.g. 33301246. PubMed URLs work too. If a query is also given, its results are added after these.

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

Order of search results. Above 9,999 results the search is split into publication-date windows, newest first, and the order applies inside each window.

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

Stop after this many articles. You pay per article. 0 = no limit (all matching records).

## `includeCitedBy` (type: `boolean`):

Add citedByCount and the PMIDs of articles that cite each paper (NCBI elink 'cited in'; counts only citations from PMC full-text articles, so they are lower than Google Scholar or OpenAlex). One extra request per 100 articles.

## `maxCitedByPmids` (type: `integer`):

Cap the citedByPmids list per article (the count is always complete). 0 = no cap.

## `apiKey` (type: `string`):

Free key from your NCBI account (Account settings > API Key Management). Raises the NCBI limit from 3 to 10 requests per second, which makes large runs about 3x faster. Not needed for normal runs.

## Actor input object example

```json
{
  "query": "CRISPR gene therapy",
  "freeFullTextOnly": false,
  "hasAbstract": false,
  "sortBy": "relevance",
  "maxResults": 50,
  "includeCitedBy": false,
  "maxCitedByPmids": 100
}
```

# Actor output Schema

## `results` (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 = {
    "query": "CRISPR gene therapy",
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("plotpointtech/pubmed-scraper").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 = {
    "query": "CRISPR gene therapy",
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("plotpointtech/pubmed-scraper").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 '{
  "query": "CRISPR gene therapy",
  "maxResults": 50
}' |
apify call plotpointtech/pubmed-scraper --silent --output-dataset

```

## MCP server setup

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

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/lYiavlIoI5MpRVhgF/builds/4DgvqB5Hv4NLhxQlc/openapi.json
