# PubMed Article Search: PMID, DOI & Citations (`ailu_studio/pubmed-article-search`) Actor

Find biomedical citation metadata by PubMed query, including PMID, DOI, journal and authors. Export JSON/CSV with source links, bounded requests and clear run summaries.

- **URL**: https://apify.com/ailu_studio/pubmed-article-search.md
- **Developed by:** [Ailu Studio](https://apify.com/ailu_studio) (community)
- **Categories:** Developer tools
- **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 output rows

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 Article Search: PMID, DOI & Citations

Find biomedical citation metadata by PubMed query, including PMID, DOI, journal and authors.

### Quick start

Paste this input and run the Actor. The defaults request a small real sample.

```json
{
  "query": "cancer immunotherapy",
  "maxItems": 5
}
```

Change the source parameters above and set `maxItems` (1–500) and `maxPages` (1–10). The Actor stops at either limit. Explicit URL lists allow at most 20 URLs. Requests use the documented public source endpoints; no account login is performed.

### Output

One dataset row per source record, with stable source IDs and links. Download JSON, CSV or Excel from the dataset. Here are selected output fields from an actual sample; arrays are shortened for readability.

```json
{
  "id": "43000203",
  "title": "Individualizing Apheresis Processing Volumes Using a Predictive Algorithm: Analysis of the CAR T-Cell Collection Protocol Utilized in ACIT001/EXC002, a Phase Ib/II Trial of Decentralized Production of CAR T Cells for Treatment of Relapsed/Refractory Aggressive NHL and ALL.",
  "url": "https://pubmed.ncbi.nlm.nih.gov/43000203/",
  "pmid": "43000203",
  "doi": "10.1002/jca.70202",
  "pmcid": null,
  "authors": [
    "Croden J",
    "Breckenridge Z"
  ],
  "journal": "Journal of clinical apheresis",
  "publishedDate": "2026 Dec",
  "publicationTypes": [
    "Journal Article",
    "Clinical Trial, Phase I"
  ],
  "languages": [
    "eng"
  ]
}
```

`OUTPUT` in the default key-value store reports pages, requests, emitted rows, errors and whether a limit may have truncated the results. Zero matches are legitimate and are not fabricated. Source HTTP errors fail the run; mixed website failures are marked partial. No error row is charged.

### Automation

Schedule this Actor in Apify, use its API, or connect the dataset to Make, Zapier, n8n or a spreadsheet. Each run is an independent snapshot; compare stable IDs in your downstream system. This Actor does not send alerts or deduplicate across separate runs.

### Price and limits

$1.00 per 1,000 emitted result rows, plus Apify platform usage paid by the user. Set a run charge limit in Apify. Requests are bounded (40 maximum), sequential per host and stop on rate limits. Website tools read initial HTTP HTML only; they do not run a browser or bypass access controls.

### Source and limitations

[Official source documentation](https://www.nlm.nih.gov/dataguide/eutilities/utilities.html). Uses NCBI ESearch and ESummary with at least 500 ms between requests. Metadata only; no abstracts or full text. Source rights apply, and indexed publications are not medical advice.

Only access sources you are authorized to use. Preserve source attribution and applicable dataset/content licenses when redistributing output. No affiliation or endorsement by the source provider is implied.

### Local verification

`npm ci --ignore-scripts` then `npm test`. The portable source includes a real-response fixture, extraction checks, output-cap checks and input validation.

# Actor input Schema

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

Source parameter: query.

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

Maximum number of emitted dataset records per run.

## `maxPages` (type: `integer`):

Hard pagination limit. Applies to API adapters; explicit website URL lists are not recursively crawled.

## Actor input object example

```json
{
  "query": "cancer immunotherapy",
  "maxItems": 5,
  "maxPages": 3
}
```

# Actor output Schema

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

No description

## `summary` (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": "cancer immunotherapy"
};

// Run the Actor and wait for it to finish
const run = await client.actor("ailu_studio/pubmed-article-search").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": "cancer immunotherapy" }

# Run the Actor and wait for it to finish
run = client.actor("ailu_studio/pubmed-article-search").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": "cancer immunotherapy"
}' |
apify call ailu_studio/pubmed-article-search --silent --output-dataset

```

## MCP server setup

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

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/AGcS57MfdIi3tR0uy/builds/3QIzLTBxHRG6v4Ej3/openapi.json
