# arXiv Papers Scraper - Research to LLM-Ready Text for RAG (`get_anything/arxiv-papers-scraper`) Actor

Search arXiv or fetch paper IDs and get clean records - title, authors, abstract, categories, dates, DOI, PDF & abstract URLs - plus OPTIONAL full paper text as LLM-ready Markdown. Feed research into ChatGPT/Claude or a RAG pipeline. Official arXiv API, no key. Export JSON, CSV or Markdown.

- **URL**: https://apify.com/get\_anything/arxiv-papers-scraper.md
- **Developed by:** [Get Anything](https://apify.com/get_anything) (community)
- **Categories:** AI, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.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?

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 — Research to LLM-Ready Text for RAG

Search **arXiv** (or fetch specific paper IDs) and get clean, structured records — **title, authors, abstract, categories, dates, DOI, PDF & abstract URLs** — and **optionally the full paper text as LLM-ready Markdown**. Built for feeding research into **ChatGPT / Claude** or a **RAG** pipeline.

### Why this one

Researchers and AI builders constantly pull papers into LLMs to summarise, compare, and ground answers. This Actor turns an arXiv search into a clean dataset in one run, using arXiv's **official Atom API** — no key, no scraping tricks. Turn on `fetchFullText` and it also returns each paper's body as Markdown from arXiv's HTML render.

### What it does

- Search by **keywords**, **categories** (`cs.CL`, `cs.AI`, …), **authors**, or a **raw arXiv query**.
- Or fetch exact papers by **arXiv ID** (`2005.11401`).
- Sort by **relevance / last updated / submitted**.
- Optional **full-text Markdown** with a token count per paper.
- Export to **JSON, CSV, or Markdown**, or pull via the Apify API.

### Input

| Field | Description |
|-------|-------------|
| `searchTerms` | Keywords (combined with OR). |
| `categories` | arXiv categories, e.g. `cs.CL`. |
| `authors` | Author filters. |
| `searchQuery` | Raw arXiv query (advanced; overrides the above). |
| `ids` | Specific arXiv IDs. |
| `maxResults` | Number of papers (≤200). |
| `sortBy` / `sortOrder` | Ordering. |
| `fetchFullText` | Also fetch each paper's full text as Markdown. |
| `maxCharsPerPaper` | Truncate full text (0 = no limit). |

#### Example

```json
{
  "searchTerms": ["retrieval augmented generation"],
  "categories": ["cs.CL"],
  "maxResults": 25,
  "sortBy": "submitted",
  "fetchFullText": false
}
```

### Output

One record per paper:

```json
{
  "resultType": "paper",
  "arxivId": "2005.11401",
  "title": "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks",
  "authors": ["Patrick Lewis", "Ethan Perez", "..."],
  "summary": "Large pre-trained language models ...",
  "primaryCategory": "cs.CL",
  "published": "2020-05-22T...",
  "pdfUrl": "https://arxiv.org/pdf/2005.11401"
}
```

### Use cases

- **RAG over research** — chunk abstracts (or full text) into a vector DB.
- **Literature review** — pull a topic's latest papers and summarise with an LLM.
- **Trend monitoring** — schedule daily runs on a category and feed new papers to a model.
- **Citation / metadata harvesting** — DOIs, journal refs, authors at scale.

### FAQ

**Do I need an API key?** No — arXiv's API is open. The Actor sends a descriptive User-Agent and paces requests per arXiv etiquette.

**Can I get the full paper, not just the abstract?** Yes — enable `fetchFullText` (from arXiv's HTML render). Some older papers may not have an HTML version.

*Please use arXiv data in line with arXiv's API terms.*

### 🤖 Use with Claude or ChatGPT (MCP)

Run this actor from Claude, ChatGPT, Cursor or any MCP client via the [Apify MCP server](https://mcp.apify.com). In **Claude Desktop**: Settings → Connectors → Add custom connector → `https://mcp.apify.com`. Or expose just this tool:

```json
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=get_anything/arxiv-papers-scraper" } } }
```

Full guide: [Connect Apify actors to Claude & ChatGPT](https://dev.to/get_anything/connect-any-apify-scraper-to-claude-or-chatgpt-in-2-minutes-mcp-37he).

### ⭐ Found this useful?

If this Actor saved you time, please leave a rating on its [Apify page](https://apify.com/get_anything/arxiv-papers-scraper) — reviews genuinely help others discover it and help me keep improving it.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords to search across all fields, e.g. 'retrieval augmented generation', 'diffusion models'. Combined with OR.

## `categories` (type: `array`):

Optional category filters, e.g. 'cs.CL', 'cs.AI', 'stat.ML'.

## `authors` (type: `array`):

Optional author filters, e.g. 'Yoshua Bengio'.

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

Optional raw arXiv API query (overrides the fields above), e.g. 'all:transformer AND cat:cs.CL'.

## `ids` (type: `array`):

Fetch specific papers by arXiv ID, e.g. '2005.11401', '1706.03762'.

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

Number of papers to return (arXiv serves up to 200 per call).

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

How to order results.

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

Sort direction for the results.

## `fetchFullText` (type: `boolean`):

For each paper, fetch arXiv's HTML render and extract the full text as clean Markdown (great for RAG). Slower.

## `includeLinks` (type: `boolean`):

Preserve inline hyperlinks when fetching full text.

## `maxCharsPerPaper` (type: `integer`):

Truncate each paper's full text (0 = no limit).

## `maxRetries` (type: `integer`):

arXiv's API enforces a global rate limit and may return 429 'Rate exceeded'. The Actor retries with a patient backoff; raise this if arXiv is busy.

## `proxyConfiguration` (type: `object`):

Proxy for the arXiv request. arXiv rate-limits shared datacenter IPs (429), so a residential proxy is recommended and used by default.

## Actor input object example

```json
{
  "searchTerms": [
    "retrieval augmented generation"
  ],
  "categories": [],
  "authors": [],
  "ids": [],
  "maxResults": 25,
  "sortBy": "relevance",
  "sortOrder": "descending",
  "fetchFullText": false,
  "includeLinks": false,
  "maxCharsPerPaper": 0,
  "maxRetries": 8,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Structured results in the default dataset - one item per paper.

# 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 = {
    "searchTerms": [
        "retrieval augmented generation"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("get_anything/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 = { "searchTerms": ["retrieval augmented generation"] }

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

```

## MCP server setup

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