# arXiv Papers Search (Official API) (`jayraj0975/arxiv-papers-search`) Actor

Search arXiv via the official API and return clean paper records: arXiv id, title, authors, abstract, categories, primary category, ISO dates, PDF and abs URLs, DOI, journal reference, and comment. Pay-per-result.

- **URL**: https://apify.com/jayraj0975/arxiv-papers-search.md
- **Developed by:** [Jay Gaikwad](https://apify.com/jayraj0975) (community)
- **Categories:** Education, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 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 Papers Search (public Atom API)

Search arXiv via the **public arXiv export API** and return clean, structured paper records. No scraping of HTML, no login, no captchas — just the public Atom feed.

> Unofficial Actor. Not affiliated with, endorsed by, or on behalf of arXiv or Cornell University. Reads the public arXiv export API only.

### What it does

- Calls `https://export.arxiv.org/api/query` with your query, optional category filter, and sort preference.
- Handles pagination via `start` / `max_results`.
- Parses the Atom XML into a normalized schema per paper:
  `arxivId`, `title`, `authors`, `abstract`, `categories`, `primaryCategory`,
  `publishedDate`, `updatedDate`, `pdfUrl`, `absUrl`, `doi`, `journalRef`, `comment`, `scrapedAt`.
- Polls at 1 request per 3 seconds, in line with the request spacing stated in arXiv's published API guidance (as of the source's published guidance — check arxiv.org for current terms).
- Returns a clear `LayoutChangedError` if the API returns non-Atom content or the feed layout changes, instead of pushing malformed items.

### Input

| Field     | Type    | Required | Default          | Description |
|-----------|---------|----------|------------------|-------------|
| `query`   | string  | yes      | —                | Free-text search. Prefixed queries (`ti:attention`, `au:lecun`) are preserved. |
| `category`| string  | no       | —                | arXiv category filter (e.g. `cs.AI`, `cs.LG`, `cs.CV`, `stat.ML`). |
| `sortBy`  | string  | no       | `submittedDate`  | One of `submittedDate`, `lastUpdatedDate`, `relevance`. |
| `maxItems`| integer | no       | `50`             | Maximum number of paper records to return. |

### Example output (illustrative — IDs, titles and fields shown are a format sample; verify against arxiv.org before relying on them)

Example record (illustrative; values vary)

```json
{
  "arxivId": "1706.03762v7",
  "title": "Attention Is All You Need",
  "authors": ["Ashish Vaswani", "Noam Shazeer", "Niki Parmar"],
  "abstract": "The dominant sequence transduction models ...",
  "categories": ["cs.CL", "cs.LG"],
  "primaryCategory": "cs.CL",
  "publishedDate": "2017-06-12T17:57:34Z",
  "updatedDate": "2023-08-02T00:41:18Z",
  "pdfUrl": "https://arxiv.org/pdf/1706.03762v7",
  "absUrl": "https://arxiv.org/abs/1706.03762v7",
  "doi": null,
  "journalRef": null,
  "comment": "15 pages, 5 figures",
  "scrapedAt": "2025-01-01T00:00:00Z"
}
```

### Pricing

$2 per 1,000 results.

Every dataset item pushed = one billed result at **$2 per 1,000 rows**, charged via Apify's default dataset-item push event. This includes rows for papers that are not found and rows produced from invalid input — each pushed row counts as one billed result regardless of outcome. Empty runs and hard errors are not billed.

### Limits

- arXiv requests 3 seconds between API requests, per its published guidance; longer runs paginate accordingly. Check arXiv's current API terms before relying on this rate.
- `max_results` per page is capped at 2000 by the arXiv API.
- Only papers indexed by arXiv are returned. No full-text extraction.
- Data comes from the public arXiv export API; check arXiv's terms of use before commercial redistribution of results. Terms may change — verify before relying on them.

### Disclaimer

This is an unofficial wrapper around the public arXiv export API. Not affiliated with, endorsed by, or on behalf of arXiv, Cornell University, or the arXiv team. Public data only.

Author names are part of the public bibliographic record arXiv publishes and are reproduced verbatim; no other personal data is collected.

No guarantees are made about completeness, accuracy, or availability of the upstream service.

Provided "as is", without warranty of any kind, express or implied. No guarantees are made about completeness, accuracy, citation fields, or continued availability of the arXiv API.

# Actor input Schema

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

Free-text search across arXiv (e.g. 'language model', 'diffusion models', 'graph neural networks'). Prefixed queries like 'ti:attention' or 'au:lecun' are preserved as-is.

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

Optional arXiv category filter (e.g. 'cs.AI', 'cs.LG', 'cs.CV', 'stat.ML', 'math.OC', 'physics.gen-ph').

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

Sorting strategy for the returned papers.

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

Maximum number of paper records to return. Pagination is handled via the arXiv API start/max_results parameters.

## Actor input object example

```json
{
  "query": "large language models",
  "sortBy": "submittedDate",
  "maxItems": 10
}
```

# Actor output Schema

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

No description

# 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 models",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("jayraj0975/arxiv-papers-search").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 models",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("jayraj0975/arxiv-papers-search").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 models",
  "maxItems": 10
}' |
apify call jayraj0975/arxiv-papers-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jayraj0975/arxiv-papers-search"
        }
    }
}
```

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/9JK0AdoHSe9vsBv9t/builds/tyOmoh3qNp9SIKJ7C/openapi.json
