# 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-arxiv-org-api-94aef354/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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/parse-arxiv-org-api-94aef354/get_category_taxonomy \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-arxiv-org-api-94aef354/get_paper \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-arxiv-org-api-94aef354/search_papers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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>"}'
```
