# 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
- **Stats:** 2 total users, 1 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/platform/actors/running/actors-in-store#pay-per-event

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

## 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). No subscription or platform fees; you pay only for the results you get.

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

# 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ponderable_hydrometer/arxiv-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Qs57ROocXK6Bv3dCl/builds/BOhG0acCOfa3Hliea/openapi.json
