# TVMaze API

> Returns TV show search results, show details, seasons, episodes and cast information from TVMaze.

Category: Entertainment & Books. Region: global. 21 endpoints at `https://api.hoshime.com/v1/tvmaze/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/tvmaze
## GET /v1/tvmaze/searchShows

Shows that match a search, best match first. TVMaze returns one page of about ten.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search terms. (e.g. friends) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `score` (number (double)), `show` (Show), `show.averageRuntime` (integer (int64)), `show.ended` (string), `show.genres` (string[]), `show.id` (string), `show.image` (string), `show.imdbId` (string), `show.language` (string), `show.name` (string), `show.network` (string), `show.premiered` (string), `show.rating` (number (double)), `show.status` (string), `show.summary` (string), `show.type` (string), `show.url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/searchShows?query=friends" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/show

One show, with its number of seasons.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 431) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `averageRuntime` (integer (int64)), `ended` (string), `genres` (string[]), `id` (string), `image` (string), `imdbId` (string), `language` (string), `name` (string), `network` (string), `premiered` (string), `rating` (number (double)), `seasonCount` (integer (int64)), `status` (string), `summary` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/show?id=431" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/episodes

Episodes of one show in airing order, 100 per page.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 431) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `airdate` (string), `airstamp` (string), `id` (string), `name` (string), `number` (integer (int64)), `rating` (number (double)), `runtime` (integer (int64)), `season` (integer (int64)), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/episodes?id=431" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/episode

One episode: its season, number, air date, runtime and summary image.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze episode id or tvmaze.com episode URL. (e.g. 1) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `airdate` (string), `airstamp` (string), `id` (string), `name` (string), `number` (integer (int64)), `rating` (number (double)), `runtime` (integer (int64)), `season` (integer (int64)), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/episode?id=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/seasons

The seasons of one show with their premiere and end dates and episode counts.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 431) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `endDate` (string), `episodeCount` (integer (int64)), `id` (string), `imageUrl` (string), `name` (string), `network` (string), `number` (integer (int64)), `premiereDate` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/seasons?id=431" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/cast

The cast of one show: the people, the characters they play and whether they voice or play themselves.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 431) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `character` (string), `characterId` (string), `person` (PersonRef), `person.id` (string), `person.image` (string), `person.name` (string), `person.url` (string), `self` (boolean), `voice` (boolean)

```bash
curl "https://api.hoshime.com/v1/tvmaze/cast?id=431" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/person

One person of TV (actor, director, writer): birthday, country and photo.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze person id or tvmaze.com people URL. (e.g. 1) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `birthday` (string), `country` (string), `deathday` (string), `gender` (string), `id` (string), `image` (string), `name` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/person?id=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/schedule

Episodes airing on one day in one country, 100 per page.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `country` | string | no | Two-letter country code, such as US or GB. (default US) |
| `date` | string | yes | Day as YYYY-MM-DD. (e.g. 2024-01-01) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `airdate` (string), `airstamp` (string), `id` (string), `name` (string), `number` (integer (int64)), `runtime` (integer (int64)), `season` (integer (int64)), `show` (ShowRef), `show.id` (string), `show.name` (string), `show.url` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/schedule?date=2024-01-01" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/showIndex

Every show TVMaze knows, by id, 250 per page. The cursor is the page number, starting at 0.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `averageRuntime` (integer (int64)), `ended` (string), `genres` (string[]), `id` (string), `image` (string), `imdbId` (string), `language` (string), `name` (string), `network` (string), `premiered` (string), `rating` (number (double)), `status` (string), `summary` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/showIndex" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/singleSearch

The one show that best matches a title, with its full details.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Title of the show. (e.g. Breaking Bad) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `averageRuntime` (integer (int64)), `ended` (string), `genres` (string[]), `id` (string), `image` (string), `imdbId` (string), `language` (string), `name` (string), `network` (string), `premiered` (string), `rating` (number (double)), `status` (string), `summary` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/singleSearch?query=Breaking+Bad" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/showAkas

The other titles of one show, by country (the translated and alternative names).

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 431) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `country` (string), `countryCode` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/showAkas?id=431" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/episodeByNumber

One episode of a show by its season and number in that season.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 431) |
| `season` | integer | yes | Season number, from 1 to 1000. (e.g. 1) |
| `number` | integer | yes | Episode number within the season, from 1 to 10000. (e.g. 1) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `airdate` (string), `airstamp` (string), `id` (string), `name` (string), `number` (integer (int64)), `rating` (number (double)), `runtime` (integer (int64)), `season` (integer (int64)), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/episodeByNumber?id=431&season=1&number=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/previousEpisode

The last episode a show has aired before today, from the show's embedded data.

Scope: `social:read` · Units: 1 · Cached: 30 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 431) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `airdate` (string), `airstamp` (string), `id` (string), `name` (string), `number` (integer (int64)), `rating` (number (double)), `runtime` (integer (int64)), `season` (integer (int64)), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/previousEpisode?id=431" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/showCrew

The crew of one show (producers, writers, directors...), not the cast.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 431) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `person` (PersonRef), `person.id` (string), `person.image` (string), `person.name` (string), `person.url` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/showCrew?id=431" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/showImages

The posters, backgrounds and banners of one show, the main one flagged.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 431) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `height` (integer (int64)), `id` (string), `main` (boolean), `thumbnail` (string), `type` (string), `url` (string), `width` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/tvmaze/showImages?id=431" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/searchPeople

People (actors and crew) that match a name, best match first. TVMaze returns one page of about ten.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Name to search for. (e.g. Mike Vogel) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `person` (Person), `person.birthday` (string), `person.country` (string), `person.deathday` (string), `person.gender` (string), `person.id` (string), `person.image` (string), `person.name` (string), `person.url` (string), `score` (number (double))

```bash
curl "https://api.hoshime.com/v1/tvmaze/searchPeople?query=Mike+Vogel" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/personCastCredits

The roles one person has played in shows (voice roles included), with each show.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze person id or tvmaze.com people URL. (e.g. 1) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `character` (string), `self` (boolean), `show` (Show), `show.averageRuntime` (integer (int64)), `show.ended` (string), `show.genres` (string[]), `show.id` (string), `show.image` (string), `show.imdbId` (string), `show.language` (string), `show.name` (string), `show.network` (string), `show.premiered` (string), `show.rating` (number (double)), `show.status` (string), `show.summary` (string), `show.type` (string), `show.url` (string), `voice` (boolean)

```bash
curl "https://api.hoshime.com/v1/tvmaze/personCastCredits?id=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/lookupShow

The TVMaze show with an IMDb, TheTVDB or TVRage id, such as tt0944947 for Game of Thrones on IMDb.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `source` | string | yes | Which site the id comes from: imdb, thetvdb or tvrage. (one of imdb, thetvdb, tvrage; e.g. imdb) |
| `id` | string | yes | The id on that site: tt0944947 for imdb, a number for thetvdb or tvrage. (e.g. tt0944947) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `averageRuntime` (integer (int64)), `ended` (string), `genres` (string[]), `id` (string), `image` (string), `imdbId` (string), `language` (string), `name` (string), `network` (string), `premiered` (string), `rating` (number (double)), `status` (string), `summary` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/lookupShow?source=imdb&id=tt0944947" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/nextEpisode

The next episode a running show has scheduled, from the show's embedded data. Not found when none is announced.

Scope: `social:read` · Units: 1 · Cached: 30 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze show id or tvmaze.com show URL. (e.g. 83) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `airdate` (string), `airstamp` (string), `id` (string), `name` (string), `number` (integer (int64)), `rating` (number (double)), `runtime` (integer (int64)), `season` (integer (int64)), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/nextEpisode?id=83" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/webSchedule

Web episodes (streaming and online-only shows) airing on one day, 100 per page.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `date` | string | yes | Day as YYYY-MM-DD. (e.g. 2024-01-01) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `airdate` (string), `airstamp` (string), `id` (string), `name` (string), `number` (integer (int64)), `runtime` (integer (int64)), `season` (integer (int64)), `show` (ShowRef), `show.id` (string), `show.name` (string), `show.url` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/webSchedule?date=2024-01-01" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tvmaze/seasonEpisodes

Episodes of one season by the season's TVMaze id, in order. Season ids come from seasons.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | TVMaze season id or tvmaze.com season URL. (e.g. 1) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `airdate` (string), `airstamp` (string), `id` (string), `name` (string), `number` (integer (int64)), `rating` (number (double)), `runtime` (integer (int64)), `season` (integer (int64)), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/tvmaze/seasonEpisodes?id=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
