# Thetvdb — 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 TV shows from TheTVDB's database, view trending series, and access detailed episode information. Browse complete show listings or find specific titles to retrieve comprehensive data about seasons, episodes, and air dates.

**Category:** Entertainment | **Website:** [thetvdb.com/](https://thetvdb.com/) | **Docs:** [parse.bot/marketplace/d924f91b-b67d-4efb-bbe6-d5d0db798c65/thetvdb-com-api](https://parse.bot/marketplace/d924f91b-b67d-4efb-bbe6-d5d0db798c65/thetvdb-com-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-thetvdb-com-api-d924f91b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### episodes

Get all episodes for a specific TV series by its slug. Returns the complete episode list including season and episode numbers, air dates, and descriptions. The slug is available from search or list results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Series slug identifier (e.g. 'breaking-bad', 'game-of-thrones'). Use the slug field from search or list results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-thetvdb-com-api-d924f91b/episodes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### list

List TV series from the database with pagination. Returns series sorted by popularity. Each page contains up to `limit` results; iterate pages from 0 to nbPages-1.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page. |
| `page` | integer | No | Page number (0-indexed). Must be less than nbPages in the response. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-thetvdb-com-api-d924f91b/list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>"}'
```

### search

Search for TV series by name. Returns matching series with pagination. Pages are 0-indexed; valid page values range from 0 to nbPages - 1. An empty query returns all series (equivalent to list).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page. |
| `page` | integer | No | Page number (0-indexed). Requesting a page beyond available results returns empty items. |
| `query` | string | Yes | Search query for TV series name. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-thetvdb-com-api-d924f91b/search \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","query":"<string>"}'
```

### trending

Get trending series from the community. Returns a list of currently popular TV series with follower counts. No pagination; returns all trending items in a single response.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-thetvdb-com-api-d924f91b/trending \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
