# Apple Podcasts API

> Show details, newest episodes and the top charts from Apple Podcasts' public pages.

Category: Music & Audio. Region: Global. 3 endpoints at `https://api.hoshime.com/v1/podcasts/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/podcasts
## GET /v1/podcasts/podcast

One Apple Podcasts show: creator, genres, rating, last episode date and artwork.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Numeric show id such as 1200361736 (or id1200361736), or a podcasts.apple.com podcast URL. (e.g. 1200361736) |
| `country` | string | no | Two-letter Apple Podcasts storefront, such as us or gb. (default us) |
| `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: `creator` (string), `genres` (string[]), `id` (string), `imageUrl` (string), `lastEpisodeAt` (string), `rating` (number (double)), `ratingCount` (integer (int64)), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/podcasts/podcast?id=1200361736" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/podcasts/episodes

The newest episodes of one Apple Podcasts show, as its page lists them (about eight): title, date, length and number.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Numeric show id such as 1200361736 (or id1200361736), or a podcasts.apple.com podcast URL. (e.g. 1200361736) |
| `country` | string | no | Two-letter Apple Podcasts storefront, such as us or gb. (default us) |
| `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: `durationSeconds` (integer (int64)), `episodeNumber` (integer (int64)), `explicit` (boolean), `id` (string), `publishedAt` (string), `seasonNumber` (integer (int64)), `title` (string), `type` (string)

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

## GET /v1/podcasts/top

An Apple Podcasts chart of a storefront, in rank order: top shows, top subscriber shows or top series.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `list` | string | no | Which chart. (one of shows, subscribers, series; default shows) |
| `country` | string | no | Two-letter Apple Podcasts storefront, such as us or gb. (default us) |
| `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: `explicit` (boolean), `genres` (string[]), `id` (string), `imageUrl` (string), `lastEpisodeAt` (string), `rank` (integer (int64)), `title` (string), `url` (string)

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