# arXiv Papers Scraper - Authors, Abstracts & PDFs (`eliai/arxiv-papers-scraper`) Actor

Search arXiv and get one row per paper: title, full abstract, every author, categories, the bare arXiv id plus its version, a direct PDF link, DOI and journal reference. arXiv query syntax, category filter, bulk searches. $0.01 per paper.

- **URL**: https://apify.com/eliai/arxiv-papers-scraper.md
- **Developed by:** [Broke to Built](https://apify.com/eliai) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 papers scrapeds

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

## arXiv Papers Scraper — Authors, Abstracts & PDFs

Search **arXiv** and get **one row per paper**: title, the full abstract, every author, categories,
the bare arXiv id **and** its version, a direct PDF link, DOI and journal reference.

No API key, no account. **$0.01 per paper** — a search that matches nothing is recorded and
**not charged**.

### Input

```json
{ "query": "diffusion model", "category": "cs.LG", "maxPapers": 100, "sort": "submitted" }
```

arXiv query syntax and bulk searches:

```json
{ "queries": ["au:Hinton AND cat:cs.LG", "ti:\"state space model\""], "maxPapers": 50 }
```

| Field | Type | Notes |
|---|---|---|
| `query` | string | Free text or arXiv syntax — `au:`, `ti:`, `abs:`, `cat:`, joined with AND/OR. |
| `queries` | string\[] | Up to 10 searches per run. |
| `maxPapers` | integer | 1–500 per search. **You are charged per paper returned.** |
| `sort` | enum | `relevance`, `submitted`, `updated`. |
| `category` | string | Restrict to one category — `cs.LG`, `cs.CV`, `math.ST`, `q-bio.NC`. |

### Output

```json
{
  "ok": true,
  "arxivId": "2201.00978",
  "version": 1,
  "title": "PyramidTNT: Improved Transformer-in-Transformer Baselines…",
  "abstract": "Transformer networks have achieved great progress…",
  "authors": ["Kai Han", "Jianyuan Guo", "Yehui Tang", "Yunhe Wang"],
  "firstAuthor": "Kai Han",
  "authorCount": 4,
  "primaryCategory": "cs.CV",
  "categories": ["cs.CV", "cs.LG"],
  "publishedAt": "2022-01-04T04:56:57Z",
  "updatedAt": "2022-01-04T04:56:57Z",
  "isRevised": false,
  "absUrl": "http://arxiv.org/abs/2201.00978v1",
  "pdfUrl": "https://arxiv.org/pdf/2201.00978v1",
  "doi": null,
  "journalRef": null,
  "totalMatches": 178100
}
```

### What it gets right

- ⭐ **The id and the version are separate.** arXiv returns `2201.00978v1`. The `v1` belongs in a
  download URL and breaks a citation or a cross-reference lookup. You get `arxivId: "2201.00978"`
  and `version: 1`, plus a `pdfUrl` that keeps the version because that is where it matters.
- **Titles and abstracts are one line.** The Atom feed wraps them over many lines with indentation;
  raw, they arrive full of newlines and double spaces and break every CSV.
- **`isRevised` is derived and checked.** A paper whose `updated` differs from `published` has been
  revised — useful, and asserted to agree with its own inputs so it cannot drift into decoration.
- **Category filters are applied server-side**, folded into the query, so you do not pay for rows
  you would filter out yourself.
- **It is deliberately unhurried.** arXiv asks callers to pause ~3 seconds between requests, and
  this does. A scraper that hammers a free scholarly API gets the whole platform blocked.
- **`totalMatches`** tells you whether 25 rows is the answer or the tip of 178,000.

### Pricing

**$0.01 per paper returned.** No start fee. A search matching nothing produces a `paperCount: 0`
record and **is not charged**.

### Limits

- 10 searches per run, up to 500 papers each.
- Returns **metadata and the abstract, not the full text**. Use `pdfUrl` for the paper itself.
- `doi` and `journalRef` exist only where the author supplied them — most preprints have neither.
- arXiv's relevance ranking is its own; this does not re-rank.

### FAQ

**Do I need an API key?** No — arXiv's API is open.

**Does arXiv query syntax work?** Yes: `au:`, `ti:`, `abs:`, `cat:`, `all:`, with AND/OR/ANDNOT.

**Why is it slower than other Actors?** The 3-second pause between pages is deliberate and is what
arXiv asks for.

### Changelog

- **0.1 (2026-09-10)** — first release. One row per paper, id/version split, normalised
  titles and abstracts, revised flag, category filter, polite paging.

# Actor input Schema

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

Free text, or arXiv syntax: au:Hinton, ti:diffusion, abs:"language model", cat:cs.LG, joined with AND/OR.

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

Several searches in one run. Up to 10.

## `maxPapers` (type: `integer`):

Pages 100 at a time, pausing 3 seconds between pages as arXiv asks. You are charged per paper returned.

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

Order by arXiv relevance, original submission date, or last update.

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

Restrict to one category, e.g. cs.LG, cs.CV, math.ST, q-bio.NC. Leave empty for all.

## Actor input object example

```json
{
  "query": "transformer",
  "queries": [],
  "maxPapers": 25,
  "sort": "relevance"
}
```

# Actor output Schema

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

Every item this run produced, as JSON.

## `resultsCsv` (type: `string`):

The same items as a spreadsheet-ready CSV.

# 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": "transformer",
    "queries": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("eliai/arxiv-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 = {
    "query": "transformer",
    "queries": [],
}

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

```

## MCP server setup

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