# Deezer API

> Returns Deezer tracks, albums, artists, playlists and podcasts: artists, release dates, ISRC, popularity rank, fans and top tracks. No lyrics or audio.

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

One Deezer track: title, artists, album, duration, ISRC, popularity rank and release date.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Track id, or its www.deezer.com/…/track/… address. (e.g. 3135556) |
| `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: `album` (Ref), `album.id` (string), `album.name` (string), `album.url` (string), `artists` (Ref[]), `artists[].id` (string), `artists[].name` (string), `artists[].url` (string), `discNumber` (any), `durationSeconds` (integer (int64)), `explicit` (boolean), `id` (string), `imageUrl` (string), `isrc` (string), `rank` (integer (int64)), `releaseDate` (string), `title` (string), `trackNumber` (any), `url` (string)

```bash
curl "https://api.hoshime.com/v1/deezer/track?id=3135556" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/deezer/album

One Deezer album with its artists, label, release date and track list.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Album id, or its www.deezer.com/…/album/… address. (e.g. 302127) |
| `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: `artists` (Ref[]), `artists[].id` (string), `artists[].name` (string), `artists[].url` (string), `durationSeconds` (integer (int64)), `fanCount` (integer (int64)), `id` (string), `imageUrl` (string), `label` (string), `releaseDate` (string), `title` (string), `trackCount` (integer (int64)), `tracks` (Track[]), `tracks[].album` (Ref), `tracks[].artists` (Ref[]), `tracks[].discNumber` (any), `tracks[].durationSeconds` (integer (int64)), `tracks[].explicit` (boolean), `tracks[].id` (string), `tracks[].imageUrl` (string), `tracks[].isrc` (string), `tracks[].rank` (integer (int64)), `tracks[].releaseDate` (string), `tracks[].title` (string), `tracks[].trackNumber` (any), `tracks[].url` (string), `upc` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/deezer/album?id=302127" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/deezer/artist

One Deezer artist: fan count, top tracks, releases and related artists.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Artist id, or its www.deezer.com/…/artist/… address. (e.g. 27) |
| `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: `albums` (Album[]), `albums[].artists` (Ref[]), `albums[].durationSeconds` (integer (int64)), `albums[].fanCount` (integer (int64)), `albums[].id` (string), `albums[].imageUrl` (string), `albums[].label` (string), `albums[].releaseDate` (string), `albums[].title` (string), `albums[].trackCount` (integer (int64)), `albums[].tracks` (Track[]), `albums[].upc` (string), `albums[].url` (string), `avatarUrl` (string), `bio` (string), `createdAt` (string), `followerCount` (integer (int64)), `followingCount` (integer (int64)), `id` (string), `name` (string), `postCount` (integer (int64)), `relatedArtists` (Ref[]), `relatedArtists[].id` (string), `relatedArtists[].name` (string), `relatedArtists[].url` (string), `topTracks` (Track[]), `topTracks[].album` (Ref), `topTracks[].artists` (Ref[]), `topTracks[].discNumber` (any), `topTracks[].durationSeconds` (integer (int64)), `topTracks[].explicit` (boolean), `topTracks[].id` (string), `topTracks[].imageUrl` (string), `topTracks[].isrc` (string), `topTracks[].rank` (integer (int64)), `topTracks[].releaseDate` (string), `topTracks[].title` (string), `topTracks[].trackNumber` (any), `topTracks[].url` (string), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/deezer/artist?id=27" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/deezer/playlist

One public Deezer playlist: owner, fans, duration and tracks.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Playlist id, or its www.deezer.com/…/playlist/… address. (e.g. 1313621735) |
| `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: `description` (string), `durationSeconds` (integer (int64)), `fanCount` (integer (int64)), `id` (string), `imageUrl` (string), `owner` (Author), `owner.avatarUrl` (string), `owner.id` (string), `owner.name` (string), `owner.url` (string), `owner.username` (string), `title` (string), `trackCount` (integer (int64)), `tracks` (Track[]), `tracks[].album` (Ref), `tracks[].artists` (Ref[]), `tracks[].discNumber` (any), `tracks[].durationSeconds` (integer (int64)), `tracks[].explicit` (boolean), `tracks[].id` (string), `tracks[].imageUrl` (string), `tracks[].isrc` (string), `tracks[].rank` (integer (int64)), `tracks[].releaseDate` (string), `tracks[].title` (string), `tracks[].trackNumber` (any), `tracks[].url` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/deezer/playlist?id=1313621735" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/deezer/show

One Deezer podcast: description, label and its latest episodes.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Podcast id, or its www.deezer.com/…/show/… address. (e.g. 1001) |
| `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: `description` (string), `episodeCount` (integer (int64)), `episodes` (Episode[]), `episodes[].description` (string), `episodes[].durationSeconds` (integer (int64)), `episodes[].id` (string), `episodes[].imageUrl` (string), `episodes[].publishedAt` (string), `episodes[].title` (string), `explicit` (boolean), `id` (string), `imageUrl` (string), `label` (string), `title` (string), `url` (string)

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