# arXiv Scraper: Papers, Abstracts and PDF Links (`capable_coach/arxiv-papers-scraper`) Actor

Search arXiv by keyword, author or category and get title, abstract, authors, categories, DOI and direct PDF link as JSON, CSV or Excel. Date range and sort options, up to 1,000 preprints per run from the official export API. No key, $1.50 per 1,000 papers.

- **URL**: https://apify.com/capable_coach/arxiv-papers-scraper.md
- **Developed by:** [jules imbert](https://apify.com/capable_coach) (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.50 / 1,000 arxiv preprints

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

Search arXiv and get preprints back as structured JSON, one row per paper, from the official arXiv export API: no HTML parsing, no key.

### What you get

- arXiv id with version suffix, title and abstract (switch off with `includeAbstracts`).
- Authors with count and first author; primary category and cross-listed categories.
- Submission and last-update timestamps, declared DOI and journal reference, authors' comment field.
- Abstract page URL and direct PDF link (`pdfUrl`); files are not downloaded.

Real output shape (trimmed):

```json
{
  "recordType": "paper",
  "arxivId": "2403.09676v1",
  "title": "Unmasking the Shadows of AI: Investigating Deceptive Capabilities in Large Language Models",
  "abstract": "This research critically navigates the intricate landscape of AI deception… ",
  "authors": ["Linge Guo"],
  "published": "2024-02-07T00:21:46Z",
  "updated": "2024-02-07T00:21:46Z",
  "primaryCategory": "cs.CL",
  "categories": ["cs.CL", "cs.AI"],
  "doi": "",
  "url": "https://arxiv.org/abs/2403.09676v1",
  "pdfUrl": "https://arxiv.org/pdf/2403.09676v1"
}
```

### Who it's for

- **ML and research engineers** who need papers as data, not bookmarks.
- **Retrieval-augmented-generation builders** pulling abstracts for embeddings, with `arxivId` as a citation anchor.
- **Analysts** counting output per category over time.
- **Researchers** screening a literature window before downloading PDFs.

### How to use

1. Enter a `query` (searched across title, abstract and authors) and optionally an arXiv `category` such as `cs.LG`, `cs.CL`, `stat.ML`, `quant-ph`.
2. Choose `sortBy` (`relevance`, `submittedDate`, `lastUpdatedDate`), `sortOrder`, `dateFrom` / `dateTo` and `maxItems` (up to 1,000).
3. Run it and export JSON, CSV or Excel. For a weekly watch, sort by submission date and schedule the run.

Example input:

```json
{
  "query": "large language model reasoning",
  "category": "cs.CL",
  "maxItems": 20,
  "sortBy": "relevance",
  "includeAbstracts": true
}
```

### Pricing

Pay per event, no subscription: **$0.0005 per run start** (one event per GB of memory, minimum one) plus **$0.0015 per preprint** written to the dataset.

| Volume (Free plan) | Cost |
|---|---|
| 100 preprints | $0.1505 |
| 1,000 preprints | $1.5005 |

Example: 20 preprints cost $0.0305.

Set the run's *Maximum cost per run* in Apify to cap spending in advance.

### FAQ

**Do I need an arXiv API key?**
No. The export API is public and anonymous.

**Does arXiv rate-limit the API?**
Yes. Pages of 100 are requested one after the other with a 3-second pause, so large runs take minutes.

**Which categories work?**
Any arXiv code: `cs.LG`, `cs.CL`, `cs.CV`, `cs.AI`, `stat.ML`, `quant-ph`, `econ.EM`.

**Do I get the PDFs?**
You get `pdfUrl`, a direct link on arxiv.org. Files are not downloaded.

**How do I get one row per paper rather than per version?**
`arxivId` carries the version (`2403.09676v1`). Group on the id without the suffix; `updated` keeps the latest revision date.

**Can I download full text?**
No. Only metadata and abstracts are read.

### Limits

- Bounded by the export API: up to 1,000 preprints per run; ranking is arXiv's own.
- `doi` and `journalRef` stay empty when the authors did not declare them.
- Metadata only: no full text.
- Not affiliated with arXiv or Cornell University.

# Changelog

This Actor's version history is a separate document: https://apify.com/capable_coach/arxiv-papers-scraper/changelog.md

# Actor input Schema

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

Termes recherches dans tous les champs (titre, abstract, auteurs). Ex. large language models, graph neural networks.

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

Restreint a une categorie arXiv, ex. cs.LG, cs.CL, stat.ML, quant-ph, econ.EM. Laissez vide pour toutes.

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

Plafond de preprints recuperes (pagination automatique par 100).

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

Critere de tri applique par l'API arXiv.

## `sortOrder` (type: `string`):

Sens du tri.

## `dateFrom` (type: `string`):

Filtre optionnel sur la date de soumission arXiv.

## `dateTo` (type: `string`):

Filtre optionnel sur la date de soumission arXiv.

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

Ajoute le resume complet de chaque preprint.

## Actor input object example

```json
{
  "query": "large language models",
  "maxItems": 50,
  "sortBy": "relevance",
  "sortOrder": "descending",
  "includeAbstracts": true
}
```

# Actor output Schema

## `papers` (type: `string`):

Une ligne par preprint : arXiv ID, titre, abstract, auteurs, categories, PDF.

## `overview` (type: `string`):

Tableau pret a lire dans la console Apify.

## `summary` (type: `string`):

Requete construite, pages lues, preprints ecrits, erreurs.

# 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": "large language models"
};

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

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

```

## MCP server setup

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