# arXiv — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and discover academic research papers on arXiv using keywords, authors, titles, categories, and dates, then access detailed metadata for any paper. Browse the complete arXiv category taxonomy to explore research across different scientific disciplines.

**Category:** Education | **Website:** [arxiv.org/](https://arxiv.org/) | **Docs:** [parse.bot/marketplace/94aef354-b16b-420c-857f-8a751953bff0/arxiv-org-api](https://parse.bot/marketplace/94aef354-b16b-420c-857f-8a751953bff0/arxiv-org-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/arxiv/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get category taxonomy

Browse the full arXiv category taxonomy organized by discipline groups. Each group contains categories with their ID, name, and description. Optionally filter to a single group by name. Returns all groups when no filter is specified.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `group` | string | No | Filter by group name (e.g., Computer Science, Physics, Mathematics, Quantitative Biology, Quantitative Finance, Statistics, Electrical Engineering and Systems Science, Economics). Returns all groups if not specified. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/arxiv/get-category-taxonomy \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"group":"<string>"}'
```

### Get paper

Fetch detailed metadata for a specific paper by its arXiv ID. Returns title, authors, abstract, categories, publication dates, PDF and abstract page URLs, and optional fields like DOI, journal reference, and author comments.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `arxiv_id` | string | Yes | The arXiv paper ID (e.g., 2301.00001, 2301.00001v1, or hep-th/9901001) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/arxiv/get-paper \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"arxiv_id":"<string>"}'
```

### Search papers

Full-text search over arXiv papers using keyword, author, title, and category filters combined with AND logic. At least one search parameter (query, author, title, or category) must be provided. Paginates via start index. Each paper includes its arXiv ID, title, authors, abstract, categories, publication dates, and links.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `author` | string | No | Author name to search for |
| `category` | string | No | arXiv category code (e.g., cs.AI, math.CO, hep-th) |
| `max_results` | integer | No | Maximum number of results to return (max 100) |
| `query` | string | No | General keyword search across all fields |
| `sort_by` | string | No | Sort field for results |
| `sort_order` | string | No | Sort direction for results |
| `start` | integer | No | Starting index for pagination (0-based) |
| `title` | string | No | Title keywords to search for |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/arxiv/search-papers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"author":"<string>","category":"<string>","max_results":"<integer>","query":"<string>","sort_by":"<string>","sort_order":"<string>","start":"<integer>","title":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.