# PubMed Articles Scraper 📚🎓 (`scrapestorm/pubmed-articles-scraper`) Actor

Easily retrieve relevant academic articles from PubMed with this powerful scraper 🔍. Customize results with filters like max items to extract 🔢 and sorting options like "e.g Best match" 🏆. Ideal for medical research, scientific papers, and gathering references fast! 🌍

- **URL**: https://apify.com/scrapestorm/pubmed-articles-scraper.md
- **Developed by:** [Storm_Scraper](https://apify.com/scrapestorm) (community)
- **Categories:** Integrations, Automation
- **Features:** Limited permissions
- **Stats:** 35 total users, 1 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.00005 / actor start

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Articles Scraper 📚✨

This PubMed Articles Scraper is designed to help you easily retrieve relevant academic articles based on your search query 🔍. You can customize the results with filters like the maximum number of items to extract 🔢 and sorting options such as "Best match" 🏆.

Whether you're researching medical topics, reviewing scientific papers, or gathering references, this tool gives you quick access to the most relevant articles on PubMed 🌍.

### Description 💯🎓

The PubMed Articles Scraper is your go-to tool for discovering academic research on PubMed. Simply enter a topic, keyword, or disease, and get tailored results with adjustable filters 🛠️. You can specify the maximum number of articles to extract (e.g., 30 articles) and the sorting preference (e.g., Best match) 🔍.

Retrieve detailed information about each article, including the title 📝, authors ✍️, journal details 📖, DOI 🔗, publication date 🗓️, and a direct link to the article 📑. This tool provides an efficient and streamlined way to gather relevant articles from PubMed.

### How many results can you extract using this PubMed Articles Scraper? 🔍

There is no limit to the number of articles you can extract 📊, as long as they match your search query and filter criteria.

You can specify how many results you wish to retrieve, for example, up to 100 articles 🔢.

### Key Features ✨

- Unlimited Results 🔢: Extract as many articles as needed, depending on your query and filters.

- Customizable Sorting Options 🔍: Choose how to sort your results, such as by “Best match” or by relevance.

- Detailed Article Info 📝: Extract key details such as article title, authors, publication date, journal info, DOI, and a direct link to the article.

- Search Flexibility 🔍: Specify any keyword, disease, or topic to find related academic articles.

### 💸 Pricing

This scraper operates on a monthly subscription basis, priced at $18.99/month.

### Using this PubMed Articles Scraper is simple and intuitive! Just follow these easy steps:

```
Enter your search query — for example, a keyword like "heart disease" 🔑.
Customize your filters: Choose the maximum number of articles to extract (e.g., 30 articles) and the sorting preference (e.g., Best match) 🔍.
Click the "Start" button to begin the scraping process 🚀.
Once completed, download the extracted data in your preferred format:
    JSON 📄
    CSV 📊
    XML 📑
    Excel 📈
    HTML 🌐
```

### Applications 🌟

```
Exploring online learning opportunities and enhancing skills 📚
Building learning paths for researchers, students, and professionals 🧑‍🏫
Analyzing course trends and learner preferences 📊
Evaluating course ratings, reviews, and duration 🏆
```

### Input Example for PubMed Articles Scraper 👌

The scraper accepts various parameters to customize the scraping process. Here’s how to structure your input JSON:

```
{
    "keyword": "Heart disease",
    "maxitems": 30,
    "sort_by": "Best match"
}


```

### Output Example from PubMed Articles Scraper 👌

Once the extraction is finished, the data will be stored in a dataset. You can download this data in various formats (JSON, CSV, XML, RSS, HTML Table).

Here is an example of the JSON output for an article:

```
{
  "title": "Heart Disease in Children.",
  "authors": "Garcia RU, Peddy SB.",
  "journal_date_doi": "Prim Care. 2018 Mar;45(1):143-154. doi: 10.1016/j.pop.2017.10.005.",
  "date": "2018",
  "doi": "10.1016/j.pop.2017.10.005.",
  "volume_issue": "45(1)",
  "pages": "143-154",
  "abstract": "More children than ever born with congenital heart disease (CHD) are growing into adulthood. Primary care providers play a key role in diagnosis, management, and referral of children with CHD because many common cardiac complaints (eg, feeding intolerance, cyanosis, \u2026",
  "link": "https://pubmed.ncbi.nlm.nih.gov/29406940/"
}


```

### Related Actors ⭐

If you're interested in other Google, social media scraper or real estate Actors:

- [Coursera Course Scraper 📚⚡](https://apify.com/scrapestorm/coursera-course-scraper)
- [Udemy Course Reviews Scraper 📖💬](https://apify.com/scrapestorm/udemy-course-reviews-scraper)
- [Google Scholar Scraper: Fast & Affordable (Rental) 📚⚡](https://apify.com/scrapestorm/google-scholar-scraper-fast-affordable-rental)
- [Google Scholar Scraper: Fast & Affordable (Pay Per Result) 📚⚡](https://apify.com/scrapestorm/google-scholar-scraper-fast-affordable-pay-per-result)
- [Google News Scraper Fast & Real-Time (Pay per results) 📰⚡](https://apify.com/scrapestorm/google-news-scraper-fast-real-time-pay-per-results)
- [Facebook Likes Scraper (Fast & Cheap) 👍 🌟](https://apify.com/scrapestorm/facebook-likes-scraper-fast-cheap)
- [Facebook Shares Scraper (Exclusive & Affordable) 🚀💡](https://apify.com/scrapestorm/facebook-shares-scraper-exclusive-affordable)
- [Facebook Followers & Following Scraper 📊👥](https://apify.com/scrapestorm/facebook-followers-following-scraper)
- [Facebook Comments Scraper (All-in-One) 💬](https://apify.com/scrapestorm/facebook-comments-scraper-all-in-one)
- [YouTube Scraper (By Keyword) - ⭐⭐⭐⭐⭐ Fast & cheap](https://apify.com/scrapestorm/youtube)
- [Youtube Channel Scraper](https://apify.com/scrapestorm/youtube-channel-scraper)
- [Youtube Shorts Scraper 📺 (Rental) - Fast & cheap](https://apify.com/scrapestorm/youtube-shorts-scraper-rental---fast-cheap)
- [Zillow (Find a Home Improvement Agent) 🛠️)](https://apify.com/scrapestorm/zillow-find-a-home-improvement-agent)
- [YouTube Transcript Video Scraper 📝 (⚡ Fast & 💸 Cheap)](https://apify.com/scrapestorm/youtube-transcript-videos)
- [Youtube Playlist Scraper 🎵 - Rental (Fast & cheap)](https://apify.com/scrapestorm/youtube-playlist-scraper---rental-fast-cheap)

***

### Can I use this PubMed Articles API in Python? 🎓

Yes, you can use the Apify API with Python.

To access the PubMed Articles Scraper via Python, use the apify-client PyPI package. You can find more details about the client in our Python Client documentation.

### 📫 Support

😊 Leave us a ⭐⭐⭐⭐⭐ if you are satisfied with the product!
🌍 For any questions, specific needs or issues, please reach out through Apify's platform or via email - [Storm_Scraper 🌪️🌩️](https://apify.com/scrapestorm)

# Actor input Schema

## `keywords` (type: `array`):

One or more keywords to search on PubMed. Each keyword is scraped separately.

## `maxitems` (type: `integer`):

Maximum number of results you want to scrape per keyword 📊

## `sort_by` (type: `string`):

Select a Sort type 🌍

## Actor input object example

```json
{
  "keywords": [
    "Heart disease"
  ],
  "maxitems": 50,
  "sort_by": "Best match"
}
```

# Actor output Schema

## `overview` (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 = {
    "keywords": [
        "Heart disease"
    ],
    "maxitems": 50,
    "sort_by": "Best match"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapestorm/pubmed-articles-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 = {
    "keywords": ["Heart disease"],
    "maxitems": 50,
    "sort_by": "Best match",
}

# Run the Actor and wait for it to finish
run = client.actor("scrapestorm/pubmed-articles-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 '{
  "keywords": [
    "Heart disease"
  ],
  "maxitems": 50,
  "sort_by": "Best match"
}' |
apify call scrapestorm/pubmed-articles-scraper --silent --output-dataset

```

## MCP server setup

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