# Biomedical Article Search (unofficial) (`504spam/pubmed-articles-search`) Actor

Search PubMed with normal PubMed query syntax and get titles, authors, journal, dates, DOI, PMC link and optional abstracts as rows.

- **URL**: https://apify.com/504spam/pubmed-articles-search.md
- **Developed by:** [Damion Morgan](https://apify.com/504spam) (community)
- **Categories:** Developer tools, News, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 articles

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

## Biomedical Article Search (unofficial)

I wanted a repeatable way to pull a literature list into a spreadsheet or a script on a schedule. This Actor runs your query through NCBI's official E-utilities API for PubMed and returns one row per article.

### What it does

- Takes any PubMed query, using the same syntax as the PubMed search box.
- Lets you limit by publication date and sort by relevance or date.
- Returns the PMID, title, journal, publication and e-publication dates, volume, issue and pages, author list, first and last author, publication types, language, DOI, PMC ID, a free-full-text flag, an optional abstract, and a link.

### Who it's for

Researchers doing literature reviews, medical writers, pharma teams tracking publications on a drug or target, and anyone building a research digest.

### Input example

```json
{ "query": "crispr base editing", "email": "you@example.com", "publishedWithinDays": 30, "sort": "date", "includeAbstract": false, "maxResults": 200 }
```

### Output example

```json
{ "pmid": "42749803", "title": "Targeted genomic integration and rearrangement using prime assembly.", "journal": "Nature", "pubDate": "2026 Nov", "firstAuthor": "Levesque S", "doi": "10.1038/s41586-026-11024-2", "url": "https://pubmed.ncbi.nlm.nih.gov/42749803/" }
```

### Good to know

- NCBI asks distributed tools to send a contact email and a tool name. I send the address you enter in **Contact email**, together with the tool name `apify-biomedical-article-search`, only to NCBI E-utilities. Use an address NCBI can reach if they need to contact the operator about this tool's usage.
- Without an NCBI API key I stay under NCBI's limit of 3 requests per second. A free key raises this to 10.
- Abstracts are off by default. NLM does not claim copyright in PubMed abstracts, but publishers or authors may. If you turn abstracts on, check the publisher's terms before you republish them.

### Data source and terms

Courtesy of the U.S. National Library of Medicine. Data comes from PubMed via NCBI E-utilities, following NCBI's usage guidelines. NCBI and NLM names and views may not be used to imply endorsement of this tool. Bibliographic data is provided by NLM; I don't use NLM or PubMed logos.

Unofficial tool, not affiliated with or endorsed by PubMed, NCBI, the National Library of Medicine or the U.S. government.

# Actor input Schema

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

Same syntax as the PubMed search box, e.g. 'crispr AND therapy\[tiab]'.

## `email` (type: `string`):

NCBI asks distributed tools to send a contact email with every request so they can reach the operator if needed. I send this address, together with the tool name apify-biomedical-article-search, only to NCBI E-utilities. Use an address you monitor.

## `publishedWithinDays` (type: `integer`):

0 = any date.

## `minDate` (type: `string`):

Optional, YYYY-MM-DD. Ignored if 'Published within' is set.

## `maxDate` (type: `string`):

Optional, YYYY-MM-DD.

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

Order of results.

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

Off by default. Abstracts may be copyrighted by the publisher or authors; NLM does not claim copyright in them. Check the publisher's terms before you republish. Adds one extra request per 100 articles.

## `apiKey` (type: `string`):

Free key from your NCBI account. Raises the rate limit from 3 to 10 requests per second.

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

Stop after this many results.

## Actor input object example

```json
{
  "query": "crispr base editing",
  "publishedWithinDays": 0,
  "sort": "relevance",
  "includeAbstract": false,
  "maxResults": 100
}
```

# Actor output Schema

## `results` (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": "crispr base editing"
};

// Run the Actor and wait for it to finish
const run = await client.actor("504spam/pubmed-articles-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": "crispr base editing" }

# Run the Actor and wait for it to finish
run = client.actor("504spam/pubmed-articles-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": "crispr base editing"
}' |
apify call 504spam/pubmed-articles-search --silent --output-dataset

```

## MCP server setup

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