# arXiv API — preprint search (AI, physics, math…) no key (`synthetic.ia/arxiv-api`) Actor

Search arXiv preprints by query, category and author (sorted by relevance or newest) and fetch a paper by id with its abstract, authors, categories, DOI and PDF link. Official arXiv API. Clean HTTP API + MCP, no key. Pay per query.

- **URL**: https://apify.com/synthetic.ia/arxiv-api.md
- **Developed by:** [Synthetic](https://apify.com/synthetic.ia) (community)
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 arxiv queries

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 API — preprint search (AI, physics, math…) no key

Search **arXiv** — the open archive of **2.4M+ preprints** in AI/ML, physics, mathematics, quantitative biology, statistics and more — behind a clean HTTP API (and MCP tool). **Search** by keywords, **category** and **author**, sort by relevance or newest, and fetch a **paper** by id with its **abstract**, authors, categories, DOI, journal reference and PDF link. Built for research assistants, paper trackers, literature tools and AI agents. **No API key.** Pay per query.

- 🔎 **Search** — keywords + arXiv category (e.g. `cs.AI`, `cs.CL`, `stat.ML`) + author; relevance or most-recent.
- 📄 **Paper** — id → title, full abstract, authors, primary + all categories, DOI, journal ref, comment, abs & PDF URLs.
- 🆕 **Track the latest** — sort by newest to watch a field or category.
- 🧠 **Perfect for agents** — arXiv is where AI research lives; give your agent real paper search.
- 💵 Pay per query · no key.

### The use case it was built for

"What are the newest cs.CL papers on retrieval-augmented generation?" or "get me the abstract and PDF for 2005.11401" — clean JSON in one call, no scraping, no key. Ideal for RAG pipelines and research agents.

### Sample output (`search`, query "large language models", category "cs.CL", sort recent)

```json
{
  "ok": true, "query": "large language models", "category": "cs.CL",
  "totalResults": 48210, "count": 1,
  "papers": [
    { "arxivId": "2609.20817v1", "title": "…", "authors": ["…"],
      "primaryCategory": "cs.CL", "categories": ["cs.CL", "cs.AI"],
      "published": "2026-09-17T…", "summary": "…",
      "absUrl": "https://arxiv.org/abs/2609.20817", "pdfUrl": "https://arxiv.org/pdf/2609.20817" }
  ]
}
```

### How to use

- **HTTP API (Standby):** POST or GET `/search`, `/paper`. `GET /` returns help. Example: `GET /search?query=diffusion&category=cs.CV&sort=recent`.
- **Normal run:** pass `{ operation, query | id, ... }`; results land in the dataset + key-value store.
- **MCP tool:** expose it to your agent via Apify's MCP server.

### Input

- **operation** — `search` · `paper`.
- **query** — keywords. **category** — arXiv category. **author** — author name. **sort** — relevance / recent. **limit** — cap papers.
- **id** — for `paper` (e.g. `2301.00001`; a full arxiv.org URL works too).

### Pricing

**Per query** from **$0.004** (down to $0.001 on higher tiers). One call = one query (search returns many papers at once).

### Related Actors

- **[Crossref API](https://apify.com/synthetic.ia/crossref-scholar-api)** — scholarly works and DOI metadata across all publishers.
- **[PubMed API](https://apify.com/synthetic.ia/pubmed-api)** — biomedical literature search.

### FAQ

**Do I need a key?** No — the arXiv API is keyless.

**Which categories can I use?** Any arXiv category code, e.g. `cs.AI`, `cs.LG`, `cs.CL`, `cs.CV`, `stat.ML`, `math.OC`, `physics.optics`, `q-bio.NC`.

**Is the abstract included?** Yes — arXiv always provides the abstract (`summary`).

### Notes & limits

Data from arXiv (export.arxiv.org). Up to 50 papers per search call. arXiv asks clients to be gentle; this actor retries with backoff. Thank you to arXiv for open access to its e-prints.

# Changelog

This Actor's version history is a separate document: https://apify.com/synthetic.ia/arxiv-api/changelog.md

# Actor input Schema

## `operation` (type: `string`):

What to do.

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

Keywords across title/abstract/authors.

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

arXiv category, e.g. cs.AI, cs.CL, stat.ML, physics.optics.

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

Author name, e.g. Hinton.

## `sort` (type: `string`):

Result ordering.

## `id` (type: `string`):

e.g. 2301.00001 (a full arxiv.org URL is fine too).

## `limit` (type: `integer`):

Max papers (≤50).

## Actor input object example

```json
{
  "operation": "search",
  "query": "large language models",
  "sort": "relevance",
  "limit": 15
}
```

# Actor output Schema

## `result` (type: `string`):

No description

## `runs` (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"
};

// Run the Actor and wait for it to finish
const run = await client.actor("synthetic.ia/arxiv-api").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" }

# Run the Actor and wait for it to finish
run = client.actor("synthetic.ia/arxiv-api").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"
}' |
apify call synthetic.ia/arxiv-api --silent --output-dataset

```

## MCP server setup

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

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/ov5RbvBVZDHdBew8h/builds/O2fJtK2YJaZ8hlNW8/openapi.json
