# PubMed Medical Literature, Clinical Research & MeSH Scraper (`slavako/pubmed-clinical-literature-scraper`) Actor

Scrape official NCBI PubMed database: 36M+ biomedical citations, clinical trials, abstracts, authors, MeSH terms, and DOI references without API keys.

- **URL**: https://apify.com/slavako/pubmed-clinical-literature-scraper.md
- **Developed by:** [Sviatoslav](https://apify.com/slavako) (community)
- **Categories:** Developer tools, AI, Business
- **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 research paper 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 Medical Literature, Clinical Research & MeSH Scraper

Fast, reliable, and production-grade Apify Actor to extract biomedical citations, clinical trials, full structured abstracts, author affiliations, MeSH keywords, and DOI identifiers directly from the official **US National Library of Medicine (NLM) NCBI PubMed** database (over 36 million citations).

***

### Features

- **Direct NCBI Entrez API Integration:** Access authoritative medical and clinical publications with zero API keys required.
- **Rich Biomedical Metadata:** Extracts PMID, PMC ID, DOI, journal details, publication date, and publication types (Clinical Trial, Meta-Analysis, Review, etc.).
- **Full Structured Abstracts:** Captures multi-section abstracts (Background, Methods, Results, Conclusions).
- **Author & Affiliation Intelligence:** Retrieves researcher rosters and institutional research affiliations for KOL (Key Opinion Leader) mapping.
- **MeSH Term Indexing:** Extracts NLM Medical Subject Headings (MeSH) descriptors for taxonomy classification and medical ontology mapping.
- **LLM & RAG Optimized:** Clean, structured JSON output ready for AI vector databases, LangChain, LlamaIndex, and medical research pipelines.
- **Ultra-Lightweight & Cost-Effective:** Operates on 128 MB RAM with zero browser overhead and zero proxy surcharges.

***

### Use Cases

1. **Pharma & Biotech Market Intelligence:** Track competitor clinical drug developments, target discovery, and biomarker research.
2. **Medical AI & RAG Knowledge Bases:** Feed biomedical literature and clinical trial findings into domain-specific LLM agents.
3. **KOL & Clinical Trial Investigator Scouting:** Identify leading researchers and clinical trial investigators by therapeutic area and institution.
4. **Meta-Analyses & Systematic Reviews:** Automate literature screening across thousands of peer-reviewed biomedical papers.

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `term` | String | `"crispr"` | PubMed search term, disease, drug, target, or gene (e.g. `oncology immunotherapy`, `mrna vaccine`). |
| `sortBy` | String | `"pub_date"` | Sort order: `pub_date` (Most Recent) or `relevance` (Best Match). |
| `maxResults` | Integer | `20` | Number of biomedical articles to scrape (1 to 500). |
| `includeAbstract` | Boolean | `true` | Fetch and reconstruct complete structured abstract text. |
| `includeAuthors` | Boolean | `true` | Extract full author list and institutional research affiliations. |
| `includeMeshTerms` | Boolean | `true` | Extract official NLM MeSH headings and publication types. |

***

### Output Example

Each record in the dataset is structured as follows:

```json
{
  "pmid": "43070968",
  "title": "Thermodynamically Guided CRISPR Spacer Optimization: Strategy-Dependent Off-Target Trade-Offs.",
  "doi": "10.1021/acs.jcim.6c03063",
  "pmcid": null,
  "journal": "Journal of chemical information and modeling",
  "pubDate": "2026 Nov 23",
  "abstract": "Most CRISPR-Cas9 design tools select guide RNAs (gRNAs) by ranking predefined candidates rather than actively optimizing them. Here we instead formulate spacer design as an explicit sequence optimization problem...",
  "authors": [
    "Arsenii Kechin",
    "Anastasia Vepreva",
    "Ivan Dubrovsky"
  ],
  "affiliations": [
    "Institute of Chemical Biology and Fundamental Medicine SB RAS, Novosibirsk, Russia."
  ],
  "meshTerms": [
    "Clustered Regularly Interspaced Short Palindromic Repeats",
    "CRISPR-Cas Systems",
    "Gene Editing"
  ],
  "publicationTypes": [
    "Journal Article"
  ],
  "pubmedUrl": "https://pubmed.ncbi.nlm.nih.gov/43070968/"
}
```

***

### Pay-Per-Event (PPE) Pricing

This Actor uses fair, transparent event-based pricing with **no recurring monthly subscription**:

| Event | Price (USD) | Description |
|---|---|---|
| **Actor Start** | **$0.003** | Charged once per Actor execution run. |
| **Research Paper Record** | **$0.001** | Primary charge per medical article saved to dataset. |
| **Enriched Biomedical Data** | **$0.002** | Charged per article enriched with full abstract, affiliations, and MeSH terms. |

***

### Disclaimer

This Actor is independently developed and is not officially affiliated with, sponsored by, or endorsed by the National Center for Biotechnology Information (NCBI) or the National Institutes of Health (NIH). All data is retrieved from official public NCBI e-utilities endpoints in compliance with public research access guidelines.

# Actor input Schema

## `term` (type: `string`):

PubMed search query, medical keyword, condition, drug, or gene symbol (e.g. 'crispr', 'oncology immunotherapy', 'mrna vaccine', 'alzheimer').

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

Order of retrieved PubMed articles.

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

Maximum number of biomedical articles to scrape (1 to 500).

## `includeAbstract` (type: `boolean`):

Fetch and reconstruct complete structured abstract text (charged as enriched-biomedical).

## `includeAuthors` (type: `boolean`):

Extract full author roster and institutional research affiliations.

## `includeMeshTerms` (type: `boolean`):

Extract official NLM Medical Subject Headings (MeSH) indexing tags and publication types.

## Actor input object example

```json
{
  "term": "crispr",
  "sortBy": "pub_date",
  "maxResults": 20,
  "includeAbstract": true,
  "includeAuthors": true,
  "includeMeshTerms": true
}
```

# Actor output Schema

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

Extracted biomedical citations, full abstracts, author affiliations, MeSH terms, and DOI references.

# 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 = {
    "term": "crispr"
};

// Run the Actor and wait for it to finish
const run = await client.actor("slavako/pubmed-clinical-literature-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 = { "term": "crispr" }

# Run the Actor and wait for it to finish
run = client.actor("slavako/pubmed-clinical-literature-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 '{
  "term": "crispr"
}' |
apify call slavako/pubmed-clinical-literature-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,slavako/pubmed-clinical-literature-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/90fBeYvjX2eiZMGqa/builds/jlb14ETnC3WrIgF9G/openapi.json
