# Academic Papers Scraper: arXiv, PubMed, Crossref and OpenAlex (`datagrovehq/academic-papers-scraper`) Actor

Search research papers across arXiv, PubMed, Crossref and OpenAlex in one run. Titles, abstracts, authors, affiliations, DOIs, PDF links, citation counts and MeSH terms in one clean schema, deduplicated across sources.

- **URL**: https://apify.com/datagrovehq/academic-papers-scraper.md
- **Developed by:** [Datagrove](https://apify.com/datagrovehq) (community)
- **Categories:** Education, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 papers

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

## Academic Papers Scraper: arXiv, PubMed, Crossref and OpenAlex

Search research papers in four scholarly databases at once and get one clean table:
title, abstract, authors, affiliations, publication date, journal, DOI, PDF or full-text
link, citation count, topics and MeSH terms. Export to JSON, CSV or Excel, or call it from
your own code, a schedule, or an AI agent.

Every source is an official, open scholarly API. No login, no browser, no blocked pages.

### What you can do

- **Literature search.** One query, four databases, duplicates removed (same DOI, arXiv ID,
  PubMed ID or title is returned once).
- **Track new papers on a topic.** Sort by newest, set *Published after* to `7 days`, and
  schedule the run weekly.
- **Look up known papers.** Paste DOIs, arXiv IDs or PubMed IDs to get full metadata and
  abstracts.
- **Build datasets.** Up to 10,000 papers per query per source, with abstracts, for
  training sets, bibliometrics, systematic reviews or RAG pipelines.

### Sources

| Source | Covers | Best for |
|---|---|---|
| arXiv | 2.5M+ preprints in CS, physics, math, stats, biology, economics | AI/ML and physics, the newest work |
| PubMed | 38M+ biomedical and life-science citations | medicine, biology, MeSH terms, PMC full-text links |
| Crossref | 160M+ DOIs from every publisher | journals, books, proceedings, citation counts |
| OpenAlex | 250M+ works with citations and open-access links | broad coverage, citation counts, OA PDFs |

arXiv, PubMed and Crossref are on by default. OpenAlex meters free use per IP address, so
for reliable OpenAlex results add your own free OpenAlex API key (openalex.org/settings/api,
takes a minute). Without a key OpenAlex may stop answering once the shared daily budget of
the run's IP address is used up; the run then reports it in an error row.

### Pricing

**$0.50 per 1,000 papers.** No start fee. Error rows and skipped duplicates are free. Set
a maximum cost per run in the run options and the tool stops cleanly when it is reached.

### Input examples

Newest AI safety preprints and papers from the last 30 days:

```json
{
  "queries": ["AI safety", "alignment of language models"],
  "sources": ["arxiv", "crossref"],
  "sort": "newest",
  "publishedAfter": "30 days",
  "maxResultsPerSource": 200
}
```

PubMed with its own search syntax (MeSH terms, author and journal tags):

```json
{
  "queries": ["semaglutide[tiab] AND obesity[mh]", "base editing AND sickle cell"],
  "sources": ["pubmed"],
  "publishedAfter": "2024",
  "maxResultsPerSource": 1000
}
```

arXiv only, limited to categories:

```json
{
  "queries": ["retrieval augmented generation"],
  "sources": ["arxiv"],
  "arxivCategories": ["cs.CL", "cs.IR"],
  "sort": "newest"
}
```

Look up known papers:

```json
{
  "dois": ["10.1038/nature14539"],
  "arxivIds": ["1706.03762"],
  "pubmedIds": ["33301246"]
}
```

### Output

One row per paper:

```json
{
  "source": "pubmed",
  "sourceId": "40520893",
  "title": "Large Language Models in Medicine: Applications, Challenges, and Future Directions",
  "abstract": "In recent years, large language models (LLMs) represented by GPT-4 have ...",
  "authors": ["Erlan Yu", "Xuehong Chu", "Wanwan Zhang"],
  "authorCount": 7,
  "firstAuthor": "Erlan Yu",
  "affiliations": ["Department of Neurology, Xuanwu Hospital, Capital Medical University, Beijing, China."],
  "publishedDate": "2025-05-31",
  "year": 2025,
  "venue": "International journal of medical sciences",
  "publisher": null,
  "type": "Journal Article",
  "doi": "10.7150/ijms.111780",
  "url": "https://pubmed.ncbi.nlm.nih.gov/40520893/",
  "pdfUrl": "https://pmc.ncbi.nlm.nih.gov/articles/PMC12163604/",
  "arxivId": null,
  "pmid": "40520893",
  "pmcid": "PMC12163604",
  "topics": ["Humans", "Natural Language Processing", "Language"],
  "citationCount": null,
  "referenceCount": null,
  "isOpenAccess": true,
  "license": null,
  "language": "eng",
  "volume": "22",
  "issue": "11",
  "pages": "2792-2801",
  "query": "large language models",
  "scrapedAt": "2026-11-22T14:08:10Z"
}
```

Field notes:

- `citationCount` comes from Crossref and OpenAlex. arXiv and PubMed do not publish counts.
- `topics` holds arXiv categories, PubMed MeSH terms and keywords, Crossref subjects or
  OpenAlex topics, depending on the source.
- `pdfUrl` is the arXiv PDF, the PubMed Central full text, a publisher PDF link from
  Crossref, or the best open-access copy from OpenAlex.
- Crossref has abstracts only for publishers that deposit them (about half of recent
  articles). Use PubMed or OpenAlex when you need abstracts for most rows.
- A query or ID that fails produces one row with `error` set, and the rest of the run goes on.

### Tips

- **Search syntax.** arXiv accepts `ti:`, `au:`, `abs:` and `cat:` prefixes (for example
  `ti:transformer AND au:vaswani`); plain words are all required. PubMed accepts its full
  syntax, for example `crispr[tiab] AND 2024[dp]`.
- **Speed.** arXiv asks for one request every 3 seconds, so arXiv runs fetch about 200
  papers per 3 seconds. PubMed is faster with a free NCBI API key.
- **Dates** take `2025-01-01`, `2025`, or a period such as `30 days` or `1 year`.

### Limits and data use

The tool reads public scholarly metadata through each provider's official API and follows
their rate rules. Metadata from Crossref and OpenAlex is open (CC0). arXiv abstracts and
PubMed records may carry their own copyright: check the publisher's terms before you
republish abstracts in bulk. The tool does not download paywalled full texts.

### Feedback

Found a bug or want another source (Semantic Scholar, Europe PMC, bioRxiv, DBLP)? Open an
issue on the Issues tab and we will answer.

# Actor input Schema

## `queries` (type: `array`):

Topics, titles or keywords. Each query is searched in every selected source. Source syntax works too: arXiv field prefixes (ti:, au:, abs:, cat:) and PubMed tags such as smith j\[au] or cancer\[mh].

## `sources` (type: `array`):

arXiv (preprints in physics, math, CS, biology, economics), PubMed (biomedical and life-science literature with MeSH terms), Crossref (journal articles, books and proceedings from every publisher that registers DOIs), OpenAlex (250M+ works with citations; works best with your free API key).

## `maxResultsPerSource` (type: `integer`):

Upper limit for each query in each source. PubMed can return up to 9,999 per query; arXiv, Crossref and OpenAlex up to 10,000.

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

Stop the run after this many papers across all queries and sources. 0 = no total limit.

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

Best match first, or newest first.

## `publishedAfter` (type: `string`):

Only papers published on or after this date: 2025-01-01, 2025, or a period back from today such as 30 days or 1 year.

## `publishedBefore` (type: `string`):

Only papers published on or before this date: 2025-12-31 or 2025.

## `arxivCategories` (type: `array`):

Limit arXiv results to these categories, for example cs.CL, cs.LG, q-bio.GN, astro-ph. Other sources ignore this.

## `dois` (type: `array`):

Fetch metadata for these DOIs from Crossref (10.1038/nature12373 or https://doi.org/...).

## `arxivIds` (type: `array`):

Fetch these arXiv papers, for example 1706.03762 or https://arxiv.org/abs/2005.14165.

## `pubmedIds` (type: `array`):

Fetch these PubMed records, for example 33301246.

## `includeAbstracts` (type: `boolean`):

Turn off for smaller rows when you only need titles and metadata.

## `dedupe` (type: `boolean`):

A paper found in several sources (same DOI, arXiv ID, PMID or title) is returned once, from the first source that found it. Skipped duplicates are free.

## `openAlexApiKey` (type: `string`):

Free key from openalex.org/settings/api. Without it, OpenAlex shares a small daily budget per IP address and may stop answering.

## `ncbiApiKey` (type: `string`):

Free key from your NCBI account settings. Raises PubMed's limit from 3 to 10 requests per second for big PubMed runs.

## Actor input object example

```json
{
  "queries": [
    "large language models"
  ],
  "sources": [
    "arxiv",
    "pubmed",
    "crossref"
  ],
  "maxResultsPerSource": 50,
  "maxResults": 0,
  "sort": "relevance",
  "includeAbstracts": true,
  "dedupe": true
}
```

# 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 = {
    "queries": [
        "large language models"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datagrovehq/academic-papers-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 = { "queries": ["large language models"] }

# Run the Actor and wait for it to finish
run = client.actor("datagrovehq/academic-papers-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 '{
  "queries": [
    "large language models"
  ]
}' |
apify call datagrovehq/academic-papers-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datagrovehq/academic-papers-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/vjkgHKkRnFysxKVZJ/builds/IPmTvwIWLMrC1bJh4/openapi.json
