arXiv Paper Search API
Search arXiv preprints by keywords and category: title, abstract, authors, dates, categories and PDF link.
live POST /v1/run/arxiv.search $0.0008 per request ($0.80 per 1,000)
Pricing
$0.0008 per request ($0.80 per 1,000), paid from a prepaid USD wallet. The exact amount is on every response as cost_usd; max_cost_usd refuses anything higher; failed calls are refunded.
1,000 requests = $0.80 · 10,000 = $8.00 · 100,000 = $80.00
Get an API key. New API keys come with $0.10 of free credit, no card required (limited to 2 keys per network every 30 days). That covers about 125 requests of arxiv.search. Then add credits (packs from $10). No subscription; failed calls are refunded.
Request examples
curl
curl -s -X POST https://getallapis.com/v1/run/arxiv.search \
-H "Authorization: Bearer $GETALLAPIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"agent tool use","category":"cs.AI","sort":"newest","limit":5}'Python (requests)
import os, requests
resp = requests.post(
"https://getallapis.com/v1/run/arxiv.search",
headers={"Authorization": f"Bearer {os.environ['GETALLAPIS_API_KEY']}"},
json={'query': 'agent tool use', 'category': 'cs.AI', 'sort': 'newest', 'limit': 5},
timeout=60,
)
data = resp.json()
print(data["cost_usd"], data["output"])Python SDK (sdk/python/getallapis_client.py)
from getallapis_client import Client
client = Client() # reads GETALLAPIS_API_KEY
result = client.run('arxiv.search', {'query': 'agent tool use', 'category': 'cs.AI', 'sort': 'newest', 'limit': 5})
print(result['cost_usd'], result['output'])JavaScript / TypeScript (fetch, Node 18+)
const res = await fetch("https://getallapis.com/v1/run/arxiv.search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.GETALLAPIS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"query": "agent tool use", "category": "cs.AI", "sort": "newest", "limit": 5}),
});
const data = await res.json();
console.log(data.cost_usd, data.output);CLI
getallapis run arxiv.search '{"query":"agent tool use","category":"cs.AI","sort":"newest","limit":5}'MCP tools/call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "run_endpoint",
"arguments": {
"endpoint": "arxiv.search",
"input": {
"query": "agent tool use",
"category": "cs.AI",
"sort": "newest",
"limit": 5
}
}
}
}
Quote first, free: POST /v1/quote/arxiv.search with the same body. Async: send Prefer: respond-async and poll the request.
Input
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
query | string | yes | | Search words |
category | string | no | | arXiv category, e.g. cs.CL |
sort | string | no | "relevance" | Sort order |
limit | integer | no | 10 | Results to return |
Response
A real response from this endpoint, captured 2026-11-22 with the example input above. Lists are cut to 2 items and long text is shortened here; live values change.
{
"ok": true,
"request_id": "req_0000000000000000",
"endpoint": "arxiv.search",
"status": "succeeded",
"cost_usd": 0.0008,
"items": 5,
"latency_ms": 598,
"source": {
"id": "arxiv",
"name": "arXiv API",
"kind": "open_data",
"demo": false
},
"output": {
"query": "agent tool use",
"total": 138622,
"results": [
{
"id": "2611.26624v1",
"title": "PlayCraft: Designing Engaging Games from Agent Play Experience",
"summary": "Recent AI agents can generate playable games, but these games are not necessarily engaging. Mastery is a key source of engagement, yet designing for it requires extensive human play and tuning. We propose PlayCraft, an automated framework t…",
"authors": [
"Weihao Cheng"
],
"published_at": "2026-11-19T18:59:34Z",
"updated_at": "2026-11-19T18:59:34Z",
"primary_category": "cs.AI",
"categories": [
"cs.AI",
"cs.CV"
],
"doi": null,
"comment": null,
"url": "http://arxiv.org/abs/2611.26624v1",
"pdf_url": "https://arxiv.org/pdf/2611.26624v1"
},
{
"id": "2611.26601v1",
"title": "SoK: Assessing the Evolution of LLM Capability in Software Vulnerability Research",
"summary": "LLM-based agents are becoming increasingly capable at discovering, validating and patching vulnerabilities in real software, and vendors and researchers report that this is already changing how vulnerabilities are found and fixed. These cla…",
"authors": [
"Amine Lbath",
"Manan Suri"
],
"published_at": "2026-11-19T18:54:19Z",
"updated_at": "2026-11-19T18:54:19Z",
"primary_category": "cs.CR",
"categories": [
"cs.CR",
"cs.AI"
],
"doi": null,
"comment": null,
"url": "http://arxiv.org/abs/2611.26601v1",
"pdf_url": "https://arxiv.org/pdf/2611.26601v1"
}
],
"count": 5,
"source": "arXiv API. Thank you to arXiv for use of its open access interoperability."
}
}
Output fields
Returned in output of the run envelope (ok, request_id, endpoint, status, cost_usd, items, latency_ms, source, output).
| Field | Meaning |
|---|---|
results | id, title, summary, authors, published_at, categories, pdf_url. |
total | Total matches. |
count | Papers returned. |
Errors
| HTTP | error.code | Charged? | Meaning |
|---|---|---|---|
| 400 / 422 | invalid_input | No | The body does not match the input schema. Use the free quote call to validate first. |
| 401 | unauthorized | No | Missing, revoked or wrong API key. |
| 402 | insufficient_balance / spend_cap_exceeded | No | The wallet or the key's spend limit does not cover the call. |
| 429 | rate_limited | No | Too many requests for this key; wait for Retry-After. |
| 503 | upstream_error | Refunded | The upstream failed or timed out; retry after Retry-After. |
Every error has the same shape: {"ok": false, "request_id": "…", "error": {"code", "message", "retryable"}}. See errors.
Source and latency
arXiv API (open data). Metadata is CC0; at most one request every three seconds. Thank you to arXiv for use of its open access interoperability. One upstream per endpoint; no automatic failover.
p50 93 ms · p95 93 ms (1 calls, 30 days)
Markdown reference · JSON · Playground
FAQ
How much does the arXiv Paper Search API cost?
$0.0008 per request ($0.80 per 1,000), paid from a prepaid USD wallet. There is no subscription. The exact amount is returned as cost_usd on every response, and failed calls are refunded.
Can I try the arXiv Paper Search API for free?
Yes. A new key comes with $0.10 of free credit, no card required, which covers about 125 requests of this endpoint. Then add credits (packs from $10). The quote call (POST /v1/quote/arxiv.search) is always free.
Where does the data come from?
From arXiv API (open data). Metadata is CC0; at most one request every three seconds. Thank you to arXiv for use of its open access interoperability. Each endpoint has one upstream; there is no automatic failover.
What is the rate limit?
120 requests per minute per API key by default; a 429 comes with Retry-After. The upstream's own limits also apply.
Can an AI agent call it?
Yes. Connect the MCP server at /mcp and call the run_endpoint tool with endpoint="arxiv.search". Setup for Claude Code, Cursor and VS Code is on the integrations pages.