# PubMed Search — Citation Metadata \[$2.20/1K] (`zinin/pubmed-search-scraper`) Actor

Search PubMed by keyword and export citation rows: PMID, title, journal, publication date, DOI and PubMed link. Official NCBI E-utilities, no login, no proxy, no browser. Pay per citation, no start fee.

- **URL**: https://apify.com/zinin/pubmed-search-scraper.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** Education, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 8 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.54 / 1,000 result delivereds

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 Search — citation metadata

**$2.20 per 1,000 delivered citations, no start fee.** The prefilled run searches PubMed for `asthma` through official NCBI E-utilities, then returns PMID, title, journal, publication date, DOI when present, and a direct PubMed link. Empty searches and API failures produce free status rows.

This is a compact literature lookup for citation lists and monitoring. It does not return abstracts, full texts, author names, affiliations or patient data. It does not evaluate study quality, make clinical recommendations or give medical advice. Follow the linked PubMed record and the original publication before using a citation in research or care.

**NCBI notice:** This independent Actor is not endorsed by NCBI, NLM or NIH. [NCBI's disclaimer and copyright policy](https://www.ncbi.nlm.nih.gov/home/about/policies/) applies; PubMed may contain third-party material, and users must check the rights attached to linked articles. The Actor uses only brief bibliographic fields and does not reproduce abstracts or full text.

A public Apify Store snapshot on 12 November 2026 contained 81 PubMed-related listings with one identifiable per-result price; their median Free-tier result price was **$2.00/1K**. This Actor's $2.20/1K is slightly above that median and has no start fee. Published prices and Store user counts do not establish competitor quality or paying demand.

### What you get

One row per PubMed citation returned by a bounded recent search: PMID, article title, journal name or abbreviation, source publication date string, DOI when present, link to PubMed and retrieval time. Author/affiliation/abstract/full-text fields are omitted. Titles with email or phone-like strings are excluded.

The Actor calls [ESearch and ESummary](https://www.ncbi.nlm.nih.gov/books/NBK25500/) with `db=pubmed`, JSON output and up to 20 IDs. It makes at most **two NCBI API requests per run**, separated by 400 ms, below [NCBI's 3 requests/second guidance](https://www.ncbi.nlm.nih.gov/home/about/policies/). It includes a verified service contact and tool identifier in API requests, as NCBI asks for distributed software. Results are a recent sorted search window, not all matching PubMed records or a stable systematic-review corpus. NCBI can update or correct citations after a run.

### Input

```json
{
  "topic": "asthma",
  "maxItems": 20
}
```

- `topic`: 2–80 plain keyword characters. The Actor does not accept custom Entrez operators, arbitrary URLs or external credentials.
- `maxItems`: 1–20 matching PubMed IDs to summarize and potentially charge.
- `matchIn`: `all` (default) lets PubMed expand keywords to synonyms, MeSH terms and all fields; `titleAbstract` requires every keyword in the title or abstract. Use it when a result looks only loosely related to the topic. Common words such as `of`, `the`, `and`, `or`, `not` are ignored in this mode.
- `sort`: `date` (default, newest first) or `relevance` (PubMed Best Match).

### Output

```json
{
  "found": true,
  "pmid": "43012819",
  "title": "Example article title",
  "journal": "Example Journal",
  "pubDate": "2026 Oct 30",
  "doi": "10.1234/example",
  "pubmedUrl": "https://pubmed.ncbi.nlm.nih.gov/43012819/",
  "source": "NCBI E-utilities",
  "retrievedAt": "2026-11-12T00:00:00Z"
}
```

The text above illustrates the row shape; title, journal and DOI are placeholders. On no match or source error, the dataset receives a free `found:false` status row. Only valid citation rows trigger `result-found`, and the Actor checks the buyer's charge limit before delivering the next paid row. `pubDate` is the source's publication-date string, not a normalized clinical date.

### Price and limits

Free tier: $0.0022 per citation ($2.20/1K), with no start fee and no paid default-dataset event. Bronze $1.98/1K; Silver $1.76/1K; Gold, Platinum and Diamond $1.54/1K. Twenty rows cost at most $0.044 in result charges on the Free tier. **50,000 rows would be $110 in result charges only**, but this Actor caps a run at 20 rows and NCBI's API guidance applies; 50,000 rows is a price comparison, not a one-run capacity claim. Apify platform usage is separate if the buyer's plan charges it.

### For AI agents and workflow tools

The Actor uses limited permissions and declares input, dataset and output schemas. Through Apify hosted MCP, select `zinin/pubmed-search-scraper` and use a small `maxItems` for interactive lookup. Apify authentication and payment belong to the client's Apify connection. A returned citation is a pointer to source literature, not a medical conclusion.

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com?tools=zinin/pubmed-search-scraper" }
  }
}
```

In n8n, Make or Zapier, run the Actor, wait for completion, then fetch default-dataset items. Use `pmid` as the stable deduplication key; route `found:false` to a no-match or retry branch. See [Apify MCP](https://docs.apify.com/mcp) and [integration guides](https://docs.apify.com/integrations).

### You might also like

- [Patent Monitor](https://apify.com/zinin/patent-monitor) — monitor patent publications.
- [GitHub Repository Search](https://apify.com/zinin/github-repository-search-scraper) — discover public code projects.
- [Hacker News Jobs Feed](https://apify.com/zinin/hacker-news-jobs-scraper) — current public job posts.
- [App Release Regression Intelligence](https://apify.com/zinin/app-release-regression-intelligence) — compare software release signals.

### What's new — 12 November 2026

First version: bounded official NCBI ESearch/ESummary citation lookup, no author/abstract fields, result-only billing.

# Changelog

This Actor's version history is a separate document: https://apify.com/zinin/pubmed-search-scraper/changelog.md

# Actor input Schema

## `topic` (type: `string`):

Two to 80 plain keyword characters; a bounded PubMed search, not medical advice.

## `maxItems` (type: `integer`):

Search and summarize at most 20 matching PubMed IDs in two official NCBI API requests.

## `matchIn` (type: `string`):

Default "all": PubMed expands keywords to synonyms, MeSH terms and all fields. "titleAbstract": every keyword must be in the title or abstract, for stricter relevance. Common words (of, the, and, or, not) are ignored in this mode.

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

Default "date": newest matching citations first. "relevance": PubMed Best Match.

## Actor input object example

```json
{
  "topic": "asthma",
  "maxItems": 20,
  "matchIn": "all",
  "sort": "date"
}
```

# Actor output Schema

## `results` (type: `string`):

API URL of the run's default dataset items.

# 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 = {
    "topic": "asthma",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/pubmed-search-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 = {
    "topic": "asthma",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/pubmed-search-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 '{
  "topic": "asthma",
  "maxItems": 20
}' |
apify call zinin/pubmed-search-scraper --silent --output-dataset

```

## MCP server setup

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