# arXiv AI & Research Papers Structured JSON Extractor (`regenerative_cornice/arxiv-ai-research-extractor`) Actor

Query the official arXiv Atom API by keyword, category (cs.AI, cs.LG, cs.CR, q-fin.TR), author, and sort order to extract clean structured JSON papers with titles, authors, abstracts, DOIs, and PDF/abs links for RAG pipelines, n8n, and MCP agents.

- **URL**: https://apify.com/regenerative_cornice/arxiv-ai-research-extractor.md
- **Developed by:** [John Erlbacher](https://apify.com/regenerative_cornice) (community)
- **Categories:** AI, Developer tools, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 research paper extracteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 AI & Research Papers Structured JSON Extractor

Extract clean, normalized JSON records for scientific preprints and AI research papers directly from the **official public arXiv Atom API** (`https://export.arxiv.org/api/query`). Designed for AI research labs, RAG ingestion pipelines, technical newsletter automation, n8n/Make workflows, and Model Context Protocol (MCP) agents.

Instead of scraping HTML pages or hand-parsing raw Atom/OpenSearch XML namespaces, this Actor delivers strictly typed JSON containing canonical arXiv IDs, whitespace-normalized titles and full abstracts, ordered author lists, primary and secondary arXiv categories, ISO-8601 UTC timestamps, DOIs, author submission comments, and direct HTTPS PDF & abstract links.

***

### Key Features

- **Official arXiv Atom API (`https://export.arxiv.org/api/query`)**: Uses HTTPS, a polite identifying `User-Agent`, polite inter-page pacing, and exponential backoff on transient HTTP `429`/`5xx` responses—no brittle HTML scraping and no API key required.
- **Flexible Multi-Facet Search**: Filter by plain keywords, exact quoted phrases, native arXiv query expressions (`ti:`, `abs:`, `au:`, `cat:`, `AND`/`OR`/`ANDNOT`), single or multiple comma-separated subject categories (`cs.AI`, `cs.LG`, `cs.CR`, `q-fin.TR`, `stat.ML`, `quant-ph`, etc.), and author name.
- **Hardened XXE-Safe XML Parsing**: Powered by `lxml` with external entity resolution, DTD loading, and network access strictly disabled (`resolve_entities=False`, `no_network=True`, `load_dtd=False`, `huge_tree=False`).
- **RAG & Agent-Ready Normalization**: Strips embedded line breaks from titles and abstracts, guarantees HTTPS `pdfUrl` and `absUrl` links, normalizes publication and update timestamps to ISO-8601 UTC (`YYYY-MM-DDTHH:MM:SSZ`), and deduplicates categories and paginated results by `arxivId`.
- **Transparent Pay-Per-Event Billing**: Charges one `paper-extracted` event per emitted paper using deterministic `arxiv-{arxivId}` idempotency keys and honors user spending limits cleanly via `event_charge_limit_reached`.

***

### Common Use Cases

1. **AI & LLM Research Monitoring**: Schedule daily runs filtering `cs.AI` and `cs.CL` sorted by `submittedDate` to track agent architectures, reasoning benchmarks, and safety papers in Slack, Notion, or email digests.
2. **RAG & Vector Database Pipelines**: Ingest clean abstracts, authors, categories, and direct `pdfUrl` endpoints directly into LangChain, LlamaIndex, Pinecone, Qdrant, or Weaviate without XML boilerplate.
3. **Quantitative Finance & Security Intelligence**: Monitor specialized archives such as `q-fin.TR` (Trading & Market Microstructure), `q-fin.PM` (Portfolio Management), or `cs.CR` (Cryptography & Security).
4. **Autonomous MCP & n8n Workflows**: Give Claude, ChatGPT, Cursor, or n8n agents a fast, deterministic research retrieval tool with predictable JSON output.

***

### Input Configuration

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `query` | `string` | `"large language model agents"` | Plain keywords (AND-matched across fields), quoted phrases (`"retrieval augmented generation"`), or native arXiv expressions (`ti:transformer AND abs:attention`). Leave blank to query purely by `category` or `author`. |
| `category` | `string` | `"cs.AI"` | arXiv subject classification such as `cs.AI`, `cs.LG`, `cs.CL`, `cs.CV`, `cs.CR`, `stat.ML`, `q-fin.TR`, or `quant-ph`. Supports comma-separated categories (e.g. `"cs.AI, cs.LG"`). Leave blank to search across all archives. |
| `author` | `string` | `""` | Optional author name filter (e.g. `"Yann LeCun"` or `"Vaswani"`). |
| `sortBy` | `string` | `"submittedDate"` | Sort criterion: `submittedDate`, `relevance`, or `lastUpdatedDate`. |
| `sortOrder` | `string` | `"descending"` | Sort direction: `descending` (newest or most relevant first) or `ascending`. |
| `maxItems` | `integer` | `10` | Maximum number of normalized papers to extract (`1`–`500`). |

#### Example Input

```json
{
  "query": "large language model agents",
  "category": "cs.AI",
  "author": "",
  "sortBy": "submittedDate",
  "sortOrder": "descending",
  "maxItems": 10
}
```

#### Popular arXiv Subject Categories

- **Artificial Intelligence & Machine Learning**: `cs.AI`, `cs.LG`, `cs.CL`, `cs.CV`, `cs.RO`, `cs.MA`, `stat.ML`
- **Security & Systems**: `cs.CR` (Cryptography & Security), `cs.SE` (Software Engineering), `cs.DC` (Distributed Computing)
- **Quantitative Finance & Economics**: `q-fin.TR`, `q-fin.PM`, `q-fin.RM`, `q-fin.CP`, `econ.EM`
- **Physics & Math**: `quant-ph`, `math.OC`, `hep-th`, `cond-mat`

***

### Output Format

Each dataset item represents one normalized arXiv research paper:

```json
{
  "arxivId": "2611.22288v1",
  "title": "ConfGuard: a physics-grounded reference monitor for predictive-maintenance large-language-model agents",
  "authors": [
    "Jane Doe",
    "John Smith"
  ],
  "primaryCategory": "cs.AI",
  "categories": [
    "cs.AI",
    "cs.CR"
  ],
  "publishedUtc": "2026-11-17T06:40:49Z",
  "updatedUtc": "2026-11-17T06:40:49Z",
  "summary": "Large-language-model agents now close the industrial predictive-maintenance loop...",
  "pdfUrl": "https://arxiv.org/pdf/2611.22288v1",
  "absUrl": "https://arxiv.org/abs/2611.22288v1",
  "doi": "10.48550/arXiv.2611.22288",
  "comment": "15 pages, 5 figures"
}
```

#### Output Field Reference

- `arxivId` (`string`): Canonical versioned arXiv identifier (supports both modern `YYMM.NNNNNvN` and legacy `archive/YYMMNNNvN` formats).
- `title` (`string`): Clean single-line paper title.
- `authors` (`string[]`): Ordered author names.
- `primaryCategory` (`string | null`): Primary arXiv subject classification.
- `categories` (`string[]`): All unique arXiv subject classifications for the paper.
- `publishedUtc` (`string | null`): Initial submission timestamp in ISO-8601 UTC.
- `updatedUtc` (`string | null`): Latest revision timestamp in ISO-8601 UTC.
- `summary` (`string`): Full, whitespace-normalized abstract.
- `pdfUrl` (`string`): Direct HTTPS link to the downloadable PDF.
- `absUrl` (`string`): Canonical HTTPS link to the arXiv abstract landing page.
- `doi` (`string | null`): Publisher or arXiv DOI if present, otherwise `null`.
- `comment` (`string | null`): Author submission note (pages, figures, venue, code links), otherwise `null`.

***

### Usage & Compliance Notes

- **Attribution**: Paper metadata is sourced from the public [arXiv API](https://info.arxiv.org/help/api/index.html). Thank you to arXiv for use of its open access interoperability.
- **Rate Limits**: When requesting more than 100 papers, the Actor automatically pauses between pages in accordance with arXiv's published API guidelines.
- **Pay-Per-Event Pricing**: Billed per normalized research paper record (`paper-extracted`), with automatic enforcement of your configured Apify max-charge budget.

# Actor input Schema

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

Keywords, quoted exact phrase (e.g. "chain of thought"), or native arXiv query expression (e.g. ti:transformer AND abs:attention). Leave blank to retrieve papers strictly by category and/or author.

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

Optional arXiv subject category filter such as cs.AI, cs.LG, cs.CL, cs.CV, cs.CR, stat.ML, q-fin.TR, or quant-ph. Provide comma-separated categories (e.g. cs.AI, cs.LG) to match any of them, or leave blank to search all archives.

## `author` (type: `string`):

Optional author name filter (e.g. "Yann LeCun" or "Vaswani"). Leave blank to include all authors.

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

Ranking criterion applied by the official arXiv Atom API.

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

Sort direction for matching arXiv papers.

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

Maximum number of normalized arXiv paper records to extract and store in the dataset.

## Actor input object example

```json
{
  "query": "large language model agents",
  "category": "cs.AI",
  "author": "",
  "sortBy": "submittedDate",
  "sortOrder": "descending",
  "maxItems": 10
}
```

# Actor output Schema

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

Structured overview table of normalized arXiv research papers with PDF links and metadata.

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

All extracted arXiv research paper records in the default dataset.

# 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 model agents",
    "category": "cs.AI",
    "author": "",
    "sortBy": "submittedDate",
    "sortOrder": "descending",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("regenerative_cornice/arxiv-ai-research-extractor").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 model agents",
    "category": "cs.AI",
    "author": "",
    "sortBy": "submittedDate",
    "sortOrder": "descending",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("regenerative_cornice/arxiv-ai-research-extractor").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 model agents",
  "category": "cs.AI",
  "author": "",
  "sortBy": "submittedDate",
  "sortOrder": "descending",
  "maxItems": 10
}' |
apify call regenerative_cornice/arxiv-ai-research-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,regenerative_cornice/arxiv-ai-research-extractor"
        }
    }
}
```

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/uiBeNiUBtJwKVeBO0/builds/4ucDeWnYu97PwRlvZ/openapi.json
