# arXiv Scraper — Papers, Abstracts & Authors (`ponderable_hydrometer/arxiv-scraper`) Actor

Search arXiv preprints — title, abstract, authors, categories, PDF link, DOI & journal ref. Full arXiv query syntax. Free keyless API. For research, LLM datasets & alerts.

- **URL**: https://apify.com/ponderable_hydrometer/arxiv-scraper.md
- **Developed by:** [Ponderable Hydrometer](https://apify.com/ponderable_hydrometer) (community)
- **Categories:** Developer tools, Automation, SEO tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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.

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 Scraper — Papers, Abstracts & Authors

**Search arXiv's preprint catalogue with the full query grammar — or fetch exact IDs — and get clean, structured paper metadata.** Title, abstract, authors, categories, PDF link, DOI and journal reference. Free keyless API, robust XML parsing, polite rate-limiting.

Ideal for research alerts ("new papers in my field"), LLM training datasets, literature reviews and competitive-science tracking.

### What you get

Per paper:

- **Core metadata** — arXiv ID, title, full abstract (`summary`), author list
- **Dates** — `published` and `updated` timestamps
- **Categories** — `primaryCategory` plus all `categories` (e.g. `cs.LG`, `stat.ML`)
- **Publication links** — `doi`, `journalRef`, author `comment`
- **Direct URLs** — `pdfUrl` (the PDF) and `absUrl` (the abstract page)

### Output sample

```json
{
  "arxivId": "1706.03762v7",
  "title": "Attention Is All You Need",
  "summary": "The dominant sequence transduction models are based on complex recurrent...",
  "authors": ["Ashish Vaswani", "Noam Shazeer", "Niki Parmar"],
  "published": "2017-06-12T17:57:34Z",
  "updated": "2023-08-02T00:41:18Z",
  "primaryCategory": "cs.CL",
  "categories": ["cs.CL", "cs.LG"],
  "doi": null,
  "journalRef": null,
  "comment": "15 pages, 5 figures",
  "pdfUrl": "http://arxiv.org/pdf/1706.03762v7",
  "absUrl": "http://arxiv.org/abs/1706.03762v7"
}
```

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchQuery` | string | — | arXiv query syntax: `all:transformer`, `cat:cs.LG AND ti:diffusion`, `au:hinton` |
| `idList` | array | — | Fetch specific arXiv IDs, e.g. `["1706.03762","2005.14165"]` |
| `sortBy` | string | `submittedDate` | `relevance`, `lastUpdatedDate` or `submittedDate` |
| `sortOrder` | string | `descending` | `ascending` or `descending` |
| `maxResults` | integer | `100` | Cap on papers returned (paged in batches of 100) |

Provide a `searchQuery` or an `idList`. Query prefixes: `ti` (title), `au` (author), `abs` (abstract), `cat` (category), `all`.

### Example input

```json
{
  "searchQuery": "cat:cs.LG AND all:diffusion",
  "sortBy": "submittedDate",
  "sortOrder": "descending",
  "maxResults": 100
}
```

### Why this actor

- **Full query grammar** — not a thin one-off scraper: field prefixes, boolean operators, sort options, and exact-ID lookup.
- **Correct & complete parsing** — proper Atom XML parsing pulls all authors, both categories, DOI and journal ref that thinner scrapers drop.
- **Reliable at scale** — pages in batches with arXiv's requested politeness delay and backoff on 429/5xx.

### Pricing

Pay per result — **$1.50 per 1,000 results** (one result = one paper), plus Apify's standard per-run start event ($0.00005 per GB of memory, so a fraction of a cent per run). No subscription.

### Notes & limits

- Source is arXiv's official free Atom API — no key, no anti-bot.
- The actor waits ~3s between pages as arXiv asks; large pulls take proportionally longer.
- Public metadata; you are responsible for compliant use. Not affiliated with arXiv/Cornell.

### Related actors

- **CrossRef Scraper** — 150M+ published scholarly works with DOIs and citation counts (pairs with arXiv to cover preprints + published).
- **Semantic Scholar Scraper** — papers, citations and influence metrics.
- **Open Library Scraper** — books and ISBN metadata.

# Actor input Schema

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

arXiv query, e.g. "all:transformer", "cat:cs.LG AND ti:diffusion", "au:hinton". Prefixes: ti (title), au (author), abs (abstract), cat (category), all.

## `idList` (type: `array`):

Fetch specific arXiv IDs, e.g. \["2401.00001","1706.03762"].

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

relevance, lastUpdatedDate or submittedDate.

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

ascending or descending.

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

Cap on number of papers returned (paged in batches of 100 with a politeness delay).

## Actor input object example

```json
{
  "searchQuery": "cat:cs.LG AND all:diffusion",
  "sortBy": "submittedDate",
  "sortOrder": "descending",
  "maxResults": 100
}
```

# Actor output Schema

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

All rows produced by this run, as JSON.

# 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": "cat:cs.LG AND all:diffusion"
};

// Run the Actor and wait for it to finish
const run = await client.actor("ponderable_hydrometer/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 = { "searchQuery": "cat:cs.LG AND all:diffusion" }

# Run the Actor and wait for it to finish
run = client.actor("ponderable_hydrometer/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 '{
  "searchQuery": "cat:cs.LG AND all:diffusion"
}' |
apify call ponderable_hydrometer/arxiv-scraper --silent --output-dataset

```

## MCP server setup

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