# 🔬 arXiv Scraper - Scientific Papers, Abstracts & PDFs (`benthepythondev/arxiv-scraper`) Actor

arXiv Scraper for the official arXiv API. Search 2M+ scientific papers in CS, physics, math and biology by keyword, title, author, abstract or category. Extract title, authors, abstract, categories, DOI, dates and PDF links. For AI/ML research, literature reviews and RAG datasets.

- **URL**: https://apify.com/benthepythondev/arxiv-scraper.md
- **Developed by:** [Ben](https://apify.com/benthepythondev) (community)
- **Categories:** AI, Automation, Other
- **Stats:** 5 total users, 0 monthly users, 96.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🔬 arXiv Scraper — Scientific Papers, Abstracts & PDF Links as Clean Data

Extract **scientific papers from [arXiv.org](https://arxiv.org)** — over 2 million
open-access preprints in physics, computer science, math, biology and economics — as
clean, structured records, powered by the official arXiv API. Search by keyword, title,
author, abstract or category like `cs.LG`, and get titles, authors, full abstracts,
categories, DOIs, journal references and direct PDF links, no API key, proxy or browser
required. It is ideal for AI/ML research and for building RAG and LLM datasets from
topic-filtered abstracts.
Export to JSON/CSV/Excel, run on a schedule, call via API, or connect to Make, Zapier or n8n.

### 🔬 What is the arXiv Scraper?

It turns any arXiv search into a structured dataset. Use the simple fields — keyword,
title, author, abstract and category — or a raw advanced query for full arXiv syntax,
and it returns every matching paper with authors, full abstract, categories, DOI,
journal reference and direct links to the abstract page and PDF. Everything is flattened
into clean rows so you can drop them straight into a literature review, research tracker
or vector database. It parses arXiv's Atom feed, paginates automatically and waits
between requests as arXiv asks, so a request for hundreds of papers just works.

#### What data does it extract?

- **Identifier** — `arxiv_id`
- **Title** — the paper `title`
- **Authors** — `authors` and `author_count`
- **Abstract** — full `abstract` text
- **Categories** — `primary_category` and `categories`
- **Dates** — `published` and `updated`
- **Publication info** — `doi`, `journal_ref` and `comment`
- **Links** — `pdf_url` and `abstract_url`
- **Run metadata** — `scraped_at`

### ⬇️ Input

Use the simple fields, or a raw `searchQuery` for full arXiv syntax:

| Field | Description |
|-------|-------------|
| `allFields` | Keyword across title, abstract, authors and more |
| `title` | Only papers whose title contains this term |
| `author` | Filter by author name |
| `abstract` | Only papers whose abstract contains this term |
| `category` | arXiv category code, e.g. `cs.LG`, `cs.CL`, `cs.AI`, `physics.optics`, `math.PR` |
| `searchQuery` | Advanced raw query (overrides the simple fields above), e.g. `all:transformer AND cat:cs.LG` |
| `sortBy` | `relevance`, `newest` (submitted) or `updated` (recently updated) |
| `maxResults` | Cap the run (1–2000) |

#### Example input

```json
{
  "allFields": "large language models",
  "category": "cs.CL",
  "sortBy": "newest",
  "maxResults": 100
}
```

### ⬆️ Output

Every paper is one clean row (view as a **table**, or export **JSON / CSV / Excel**):

```json
{
  "arxiv_id": "2605.30351v1",
  "title": "VideoMLA: Low-Rank Latent KV Cache for Minute-Scale Video Generation",
  "authors": ["Hidir Yesiltepe", "Jiazhen Hu"],
  "author_count": 2,
  "abstract": "Long-rollout causal video diffusion models accumulate memory cost...",
  "primary_category": "cs.CV",
  "categories": ["cs.CV", "cs.AI"],
  "published": "2026-05-28T17:59:57Z",
  "updated": "2026-05-28T17:59:57Z",
  "doi": null,
  "journal_ref": null,
  "comment": "10 pages, 6 figures",
  "pdf_url": "https://arxiv.org/pdf/2605.30351v1",
  "abstract_url": "https://arxiv.org/abs/2605.30351v1",
  "scraped_at": "2026-06-26T15:30:00.000Z"
}
```

### 💡 Use cases

- **🤖 AI/ML research:** track the newest papers in a field or category like `cs.LG`, `cs.CL` or `cs.AI` and never miss a release.
- **🧠 RAG & LLM datasets:** build topic-filtered corpora of full abstracts plus PDF links to index in a vector database.
- **🔍 Literature reviews:** gather, sort and export every relevant paper on a subject in one run.
- **📊 Research analytics:** analyse output by category, author and time, and link papers to their published DOIs.

### ❓ FAQ

**How do I search arXiv with this Actor?** Fill in the simple fields — `allFields`,
`title`, `author`, `abstract` or `category` — choose a `sortBy` order, then Run. You get
structured papers with title, authors, full abstract, categories, DOI and PDF links.

**Can I use advanced arXiv query syntax?** Yes. Put a raw query in `searchQuery`, for
example `cat:cs.CL AND abs:retrieval augmented` or `all:transformer AND cat:cs.LG`, and it
overrides the simple fields for full control.

**What are arXiv categories and how do I use them?** Categories are arXiv's subject codes,
such as `cs.LG` (machine learning), `cs.CL` (NLP), `cs.AI`, `physics.optics` or `math.PR`.
Put one in the `category` field to restrict results to that area.

**Do I need an API key?** No. The Actor uses the free, official arXiv API with no key,
login, proxy or browser. It waits a few seconds between requests, as arXiv asks clients to
do.

**Does it include full abstracts and PDF links?** Yes. Every record contains the complete
`abstract` text plus a `pdf_url` and an `abstract_url`, which makes it well suited to
building RAG and LLM datasets.

**Can I get the newest papers first?** Yes. Use `sortBy: newest` to sort by submission
date or `sortBy: updated` for recently revised papers; `relevance` uses arXiv's default
ranking.

**How many papers can it return?** Up to your `maxResults` cap (1–2000). It paginates
through the results automatically.

**Why are some fields like `doi` or `journal_ref` empty?** Many arXiv papers are preprints
that have not been formally published, so they have no `doi`, `journal_ref` or `comment`.
The Actor returns these fields when the author provides them and `null` otherwise.

**Can I run it on a schedule or via API?** Yes. Schedule recurring runs in Apify, call it
via the API/SDK, or connect it to Make, Zapier or n8n to push results into your own tools.

**Is scraping arXiv legal?** The Actor uses the official arXiv API, which is provided for
programmatic access to public papers. Use it responsibly, respect arXiv's API terms and
rate limits, and follow applicable laws.

### 🔗 You might also like

- **[OpenAlex Scraper](https://apify.com/benthepythondev/openalex-scraper)** — academic papers & citations
- **[PubMed Scraper](https://apify.com/benthepythondev/pubmed-scraper)** — biomedical literature & citations
- **[GitHub Repository Intelligence](https://apify.com/benthepythondev/github-repository-intelligence)** — repo metadata, stars & activity

***

**Keywords:** arXiv scraper, arXiv API, scientific papers scraper, preprints, research papers, abstracts, PDF links, AI ML research, RAG dataset, LLM dataset, cs.LG, cs.CL, literature review tool, research metadata, paper search.

# Actor input Schema

## `searchQuery` (type: `string`):

Raw arXiv query, e.g. 'all:transformer AND cat:cs.LG'. If set, it overrides the simple fields below. See arXiv API docs for syntax.

## `allFields` (type: `string`):

Search across title, abstract, authors and more.

## `title` (type: `string`):

Only papers whose title contains this term.

## `author` (type: `string`):

Filter by author name.

## `abstract` (type: `string`):

Only papers whose abstract contains this term.

## `category` (type: `string`):

arXiv category code, e.g. 'cs.LG' (Machine Learning), 'cs.CL' (NLP), 'cs.AI', 'physics.optics', 'math.PR', 'q-bio'.

## `sortBy` (type: `string`):

How to sort the results.

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

Maximum number of papers to return.

## Actor input object example

```json
{
  "searchQuery": "",
  "allFields": "large language models",
  "title": "",
  "author": "",
  "abstract": "",
  "category": "",
  "sortBy": "relevance",
  "maxResults": 25
}
```

# 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 = {
    "allFields": "large language models",
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("benthepythondev/arxiv-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 = {
    "allFields": "large language models",
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("benthepythondev/arxiv-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 '{
  "allFields": "large language models",
  "maxResults": 25
}' |
apify call benthepythondev/arxiv-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,benthepythondev/arxiv-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/HrgpbivjSOaFLWbPK/builds/KSzWASFRLPscC7LhE/openapi.json
