# PubMed Research Papers: Abstracts, Authors & Trends (`precious_bathmat/pubmed-scraper`) Actor

For researchers, pharma and medical writers: PubMed papers by search with abstract, authors and affiliations, journal, date, DOI, free full text link, MeSH terms, keywords and funders, plus papers per year, top journals, authors, countries and funders.

- **URL**: https://apify.com/precious_bathmat/pubmed-scraper.md
- **Developed by:** [Mariam Ahmed](https://apify.com/precious_bathmat) (community)
- **Categories:** AI, Education
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 papers

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 Research Papers: Abstracts, Authors & Trends

Scrape **PubMed research papers** with any PubMed search, using NCBI's official API, with no login and no API key, and get a **report for every search**:

- **Every paper**: title, **full abstract**, **authors** with affiliations and ORCID, journal, volume, issue, pages, **publication date**, **DOI**, PMID, **free full text link** (PubMed Central), **MeSH terms**, keywords, article types, **funders**, language, conflict of interest statement
- **Filters**: any PubMed search (field tags and AND / OR / NOT work), publication dates, article types (reviews, trials, meta-analyses ...), free full text only, language
- **Report per search**: **every matching paper per year** (is the field growing?), plus **top journals**, **top authors**, **top countries**, top **MeSH topics** and keywords, article types and **top funders** of the papers read

### What does this PubMed scraper do?

```
PubMed · "large language models clinical" · 11,040 papers
 Papers per year: 2023 492 · 2024 1,568 · 2025 3,660 · 2026 5,372 (so far)
 Top journal: Journal of Medical Internet Research
 Countries: USA 28% · China 19% · Germany 7%
 Funders: NIA NIH HHS · NIH HHS · 51% free full text
```

1. Enter **searches**, exactly as you would type them into PubMed.
2. Add **dates**, **article types**, **free full text** or **language** if you need them.
3. You get **one row per paper** and **one report per search**.

```mermaid
flowchart LR
    A[Searches,<br/>dates, types] --> B[PubMed search<br/>ids, newest first]
    B --> C[Paper records<br/>200 per request]
    C --> D[Papers<br/>abstract, authors,<br/>DOI, MeSH]
    A --> E[Counts<br/>per year]
    D --> F[Report<br/>journals, authors,<br/>countries, funders]
    E --> F
```

### Who is it for?

- **Researchers and PhD students**: literature reviews and systematic reviews, with abstracts and DOIs in one sheet
- **Pharma, biotech and medtech teams**: track new trials and reviews on a drug, target or device every week
- **Medical affairs and KOL mapping**: who publishes most on a topic, where, and who funds them
- **Investors and analysts**: how fast a research field grows, year by year
- **AI and data teams**: clean abstracts with MeSH labels for RAG, search and training data

### What data do you get?

**Papers** (dataset, one row per paper)

| Field | What it tells you |
|---|---|
| `pmid`, `url`, `doi`, `doiUrl`, `pmcid`, `freeFullTextUrl` | Identifiers and links (free full text when PubMed Central has it) |
| `title`, `abstract` | The paper (abstract sections labelled: Background, Methods, Results ...) |
| `journal`, `journalAbbreviation`, `issn`, `volume`, `issue`, `pages` | Where it was published |
| `publicationDate`, `year`, `electronicDate` | When |
| `authors`, `authorCount`, `firstAuthor`, `lastAuthor`, `firstAuthorAffiliation` | Who wrote it |
| `authorDetails` | Each author's name, first affiliation and ORCID |
| `countries` | Countries in the authors' affiliations |
| `meshTerms`, `keywords`, `publicationTypes`, `language` | What it is about and what kind of paper it is |
| `grantAgencies`, `conflictOfInterest` | Who funded it, and declared conflicts |
| `query`, `rank` | Which search found it, and its position |

**Report** (`REPORTS`, one per search; `REPORTS_CSV` as a flat sheet)

| Field | What it tells you |
|---|---|
| `totalPapers`, `papersRead`, `pubmedQuery`, `pubmedSearchUrl` | How many papers match, and how PubMed read your search |
| `allPapersByYear` | **Every** matching paper per publication year (last 10 years, or your date window) |
| `topJournals`, `topAuthors`, `topCountries`, `topFunders` | Over the papers read |
| `topMeshTerms`, `topKeywords`, `publicationTypes` | Topics and article types (generic MeSH terms like "Humans" left out) |
| `freeFullTextPercent`, `withAbstractPercent`, `medianAuthors`, `papersReadByYear` | More about the papers read |

### Example: 1 November 2026

Four searches, the 1,000 newest papers each (3,997 papers in 64 seconds):

| Search | Papers on PubMed | 2024 | 2025 | 2026 so far | Top countries | Free full text |
|---|---|---|---|---|---|---|
| GLP-1 receptor agonist obesity | 7,407 | 1,075 | 1,850 | 2,392 | USA, UK, Italy | 50% |
| crispr base editing | 26,131 | 2,972 | 3,548 | 2,854 | China, USA, India | 54% |
| long covid | 47,173 | 7,398 | 6,504 | 4,354 | USA, China, UK | 54% |
| large language models clinical | 11,040 | 1,568 | 3,660 | 5,372 | USA, China, Germany | 51% |

Long COVID research is shrinking each year, while clinical LLM papers more than doubled in 2025 and have already passed that number in 2026. With filters, "semaglutide" randomized trials and meta-analyses in English with free full text, 2024-2025, gave 159 papers; Novo Nordisk is the second funder after the NIH's NIDDK.

### Pricing

Pay per event:

| Event | Price |
|---|---|
| Paper saved | $0.001 |
| Search report | $0.01 |

1,000 papers with a report cost **$1.01**. Platform usage is small: the 3,997 papers above used about $0.035 of compute.

### Good to know

- **Searches work like PubMed's search box**: field tags (`[ti]` title, `[au]` author, `[mh]` MeSH, `[ta]` journal), quotes and AND / OR / NOT. PubMed also expands words to MeSH terms, so "crispr base editing" matches all CRISPR papers that mention editing; use quotes or `[ti]` for a narrow search. Each report's `pubmedQuery` shows exactly how PubMed read it.
- **Up to 10,000 papers per search** (PubMed's limit); split by date for more.
- **Speed**: NCBI allows 3 requests a second without a key; the Actor fetches 200 papers per request, usually **1,000 papers in 15 to 60 seconds**, longer when NCBI is busy (one 1,000-paper search took 2 minutes).
- **Papers per year** counts every matching paper by publication date; the current year is not over yet.
- **Countries** are read from the end of each author's affiliation and cover the 50 most common research countries.
- **E-mail addresses** that PubMed prints inside affiliations are removed. Author names, affiliations and ORCID ids are kept because they are part of the published record.

### Input

| Field | Default | What it does |
|---|---|---|
| `queries` | – | One PubMed search each |
| `maxPapersPerQuery` | `100` | Most papers saved per search (up to 10,000) |
| `sort` | `newest` | `newest`, `relevance`, `first-author` or `journal` |
| `dateFrom`, `dateTo` | – | Publication date window |
| `articleTypes` | – | e.g. `Review`, `Systematic Review`, `Meta-Analysis`, `Randomized Controlled Trial` |
| `freeFullTextOnly` | `false` | Only papers with free full text |
| `language` | – | e.g. `english` |
| `includeAbstracts` | `true` | Include abstracts |
| `includeReports` | `true` | One report per search |

```json
{
  "queries": ["semaglutide", "tirzepatide"],
  "articleTypes": ["Randomized Controlled Trial", "Meta-Analysis"],
  "dateFrom": "2024-01-01",
  "freeFullTextOnly": true,
  "maxPapersPerQuery": 500
}
```

### Integrations

Schedule it weekly to get **new papers on your topic**, send them to **Google Sheets**, **Notion**, **Zotero** (via DOI) or a vector database, or call it from **Make**, **Zapier**, **n8n** or the **Apify API**. The `REPORTS_CSV` record opens directly in any spreadsheet.

### Related tools

Other tools from the same publisher that pair well with this one:

- [Wikipedia Pageviews: Topic Interest & Trend Tracker](https://apify.com/precious_bathmat/wikipedia-pageviews)
- [Patent Landscape Tracker: Who Is Patenting What](https://apify.com/precious_bathmat/patent-landscape-tracker)
- [Spanish Case Law Search: CENDOJ Rulings & Jurisprudencia](https://apify.com/precious_bathmat/cendoj-case-law-search)
- [Google News Monitor: Real Article Links & Top Stories](https://apify.com/precious_bathmat/google-news-scraper)

# Actor input Schema

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

One PubMed search each, written as in the PubMed search box: "crispr base editing", "GLP-1 AND obesity", "Smith J\[au]", "long covid\[ti]".

## `maxPapersPerQuery` (type: `integer`):

Most papers to save per search (1 to 10,000).

## `sort` (type: `string`):

PubMed's sort order: which papers are read first.

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

Optional: papers published on or after this date.

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

Optional: papers published on or before this date.

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

Optional PubMed publication types, any of them: "Review", "Systematic Review", "Meta-Analysis", "Clinical Trial", "Randomized Controlled Trial", "Case Reports".

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

Only papers with free full text.

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

Optional: papers in one language, e.g. english, spanish, chinese, german.

## `includeAbstracts` (type: `boolean`):

Include the full abstract of each paper.

## `includeReports` (type: `boolean`):

One report per search: every matching paper per year (growth), plus top journals, authors, countries, MeSH topics, keywords, article types and funders of the papers read.

## Actor input object example

```json
{
  "queries": [
    "GLP-1 receptor agonist obesity",
    "crispr base editing"
  ],
  "maxPapersPerQuery": 100,
  "sort": "newest",
  "freeFullTextOnly": false,
  "includeAbstracts": true,
  "includeReports": true
}
```

# Actor output Schema

## `papers` (type: `string`):

One row per paper: title, abstract, authors, affiliations, journal, dates, DOI, free full text, MeSH terms, keywords, funders.

## `reports` (type: `string`):

Per search: papers per year, top journals, authors, countries, topics and funders.

## `reportsCsv` (type: `string`):

One flat row per search.

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

Requests, problems and the limits of the data.

# 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 = {
    "queries": [
        "GLP-1 receptor agonist obesity",
        "crispr base editing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("precious_bathmat/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 = { "queries": [
        "GLP-1 receptor agonist obesity",
        "crispr base editing",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("precious_bathmat/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 '{
  "queries": [
    "GLP-1 receptor agonist obesity",
    "crispr base editing"
  ]
}' |
apify call precious_bathmat/pubmed-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,precious_bathmat/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/rvfvg0df08eMyRwuK/builds/QX110hZziRhMvOP8V/openapi.json
