# Anidb — 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 explore comprehensive anime data including titles, characters, episodes, and seasonal charts. Get detailed information about specific anime series, characters, and episodes to discover new shows and learn more about your favorite series.

**Category:** Entertainment | **Website:** [anidb.net/](https://anidb.net/) | **Docs:** [parse.bot/marketplace/1d6afce4-8d80-4006-931a-03cfc09804da/anidb-net-api](https://parse.bot/marketplace/1d6afce4-8d80-4006-931a-03cfc09804da/anidb-net-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/anidb/`
**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

### Advanced search anime

Search for anime with multiple filters including keyword, year, season, type, and airing status. Uses the anime list page with filter parameters. Returns results with id, title, type, episodes, rating, average_score, aired, and ended fields.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `airing_status` | integer | No | Airing status filter. 1 = still airing, 2 = finished airing, 3 = unaired/unknown. |
| `query` | string | No | Search keyword. |
| `season` | string | No | Season filter. Accepted values: winter, spring, summer, autumn. |
| `types` | string | No | Comma-separated anime type names (e.g. 'tvseries', 'movie', 'ova', 'tvspecial', 'web', 'musicvideo', 'other', 'unknown'). |
| `year` | integer | No | Year filter (e.g. 2002). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/anidb/advanced-search-anime \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"airing_status":"<integer>","query":"<string>","season":"<string>","types":"<string>","year":"<integer>"}'
```

### Get anime details

Retrieve full metadata for a specific anime by its ID. Returns title, description, episode list, tags, rating, type, year, and other info-box fields parsed from the anime page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Numeric anime ID from AniDB (e.g. '239' for Naruto). |

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

### Get character details

Retrieve character details by ID, including name, description, and list of related anime appearances with roles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Numeric character ID from AniDB (e.g. '226' for Uzumaki Naruto). |

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

### Get episode details

Retrieve episode details by ID, including title, description, air date, play length, and other info-box metadata parsed from the episode page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Numeric episode ID from AniDB (e.g. '2732'). |

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

### Get season chart

Retrieve the seasonal anime chart for a specific year and season. Returns anime airing in that season with ratings, type info, and air dates.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `season` | string | No | Season name. Accepted values: winter, spring, summer, autumn. |
| `year` | integer | No | Year to filter by (e.g. 2024). |

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

### Search anime

Search for anime by title or keyword. Returns up to 25 results ranked by relevance score. Results include anime ID, title, and search score.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword or anime title (e.g. 'Naruto', 'Dragon Ball'). |

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

### Search character

Search for characters by name. Returns up to 30 matching characters with name and gender.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Character name to search for (e.g. 'Naruto', 'Goku'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/anidb/search-character \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<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.