# arXiv Papers Scraper (`wakey7dev/arxiv-papers-scraper`) Actor

Search and fetch academic papers from arXiv.org — filter by category, date range, and author. Returns structured metadata with PDF links.

- **URL**: https://apify.com/wakey7dev/arxiv-papers-scraper.md
- **Developed by:** [Chris Wakefield](https://apify.com/wakey7dev) (community)
- **Categories:** AI
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

![Chris The Dev](https://raw.githubusercontent.com/chriswakefield87/appstore-screenshot-translator/main/assets/actor-banner.png)

## arXiv Papers Scraper

Search and fetch academic papers from [arXiv.org](https://arxiv.org) — the premier open-access repository for physics, mathematics, computer science, and more.

### Features

- 🔍 **Full-text search** across 2.4M+ papers
- 📂 **Category filtering** — cs.AI, cs.LG, stat.ML, physics.*, math.*, and more
- 📅 **Date range filtering** — papers published between specific dates
- 📊 **Structured JSON output** — title, authors, abstract, categories, DOI, PDF/ABS URLs
- 🔄 **Pagination support** — fetch up to 1,000 results per run
- 🆓 **No API key required** — uses the free arXiv API

### Use Cases

- **AI/ML researchers** — track latest papers on transformers, LLMs, diffusion models
- **Academic institutions** — monitor publications by department or topic
- **Competitive intelligence** — track what competitors are publishing
- **Literature reviews** — quickly gather papers for systematic reviews
- **Data pipelines** — feed structured paper data into analysis tools

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `searchQuery` | string | ✅ | Search terms (e.g. "large language models", "attention mechanism") |
| `category` | string | | arXiv category filter (e.g. "cs.AI", "cs.LG", "stat.ML") |
| `dateFrom` | string | | Papers published on or after (YYYY-MM-DD) |
| `dateTo` | string | | Papers published on or before (YYYY-MM-DD) |
| `maxResults` | integer | | Max papers to return (default: 50, max: 1000) |

### Output

Each paper in the dataset contains:

```json
{
  "title": "Attention Is All You Need",
  "abstract": "The dominant sequence transduction models...",
  "authors": ["Ashish Vaswani", "Noam Shazeer", "Niki Parmar"],
  "publishedDate": "2017-06-12",
  "updatedDate": "2023-08-02",
  "arxivId": "1706.03762",
  "pdfUrl": "https://arxiv.org/pdf/1706.03762",
  "absUrl": "https://arxiv.org/abs/1706.03762",
  "categories": ["cs.CL", "cs.AI"],
  "doi": "10.48550/arXiv.1706.03762"
}
```

### Popular arXiv Categories

| Category | Field |
|---|---|
| `cs.AI` | Artificial Intelligence |
| `cs.LG` | Machine Learning |
| `cs.CL` | Computation and Language (NLP) |
| `cs.CV` | Computer Vision |
| `cs.RO` | Robotics |
| `stat.ML` | Machine Learning (Statistics) |
| `physics.comp-ph` | Computational Physics |
| `math.OC` | Optimization and Control |

### Example Queries

```json
{"searchQuery": "large language models", "category": "cs.CL", "maxResults": 100}
{"searchQuery": "diffusion models", "category": "cs.CV", "dateFrom": "2024-01-01"}
{"searchQuery": "reinforcement learning", "maxResults": 50}
{"category": "stat.ML", "maxResults": 200}
```

### Notes

- arXiv API has rate limits — this actor automatically handles throttling with backoff
- Results are sorted by submission date (newest first)
- Date filtering is applied client-side after fetching
- The actor supports arXiv's full query syntax in `searchQuery` (e.g. `ti:attention AND ti:mechanism`)

### Pricing

Pay-per-event: **$1.00 per 1,000 papers** returned.

# Actor input Schema

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

Search terms (e.g. 'transformer attention', 'BERT', 'cat:cs.AI'). Supports arXiv query syntax.

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

arXiv category (e.g. cs.AI, cs.LG, stat.ML). Leave empty for all categories.

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

Papers published on or after this date (YYYY-MM-DD).

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

Papers published on or before this date (YYYY-MM-DD).

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

Maximum number of papers to return.

## Actor input object example

```json
{
  "searchQuery": "large language models",
  "maxResults": 50
}
```

# Actor output Schema

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

All papers in JSON format.

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

Human-readable summary of papers.

## `stats` (type: `string`):

Metadata about the run.

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

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

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

```

## MCP server setup

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