Skip to content

Apple Music API

4 endpointsMusic & AudioGlobalsocial:read

Albums, artists, playlists and search from Apple Music's public web pages.

View as Markdown
GET/applemusic/albumOne Apple Music album: artist, genres, release date, artwork and its tracks with durations.
GET/applemusic/artistOne Apple Music artist: name, genres, image and the albums listed on the artist page.
GET/applemusic/playlistOne public Apple Music playlist: curator, update date and its tracks with durations.
GET/applemusic/searchSearch Apple Music for songs, albums or artists; the first results of the search page, no paging.

album

GET/v1/applemusic/album

One Apple Music album: artist, genres, release date, artwork and its tracks with durations.

scope social:read1 unitcached 6 h

Parameters

id
string
required
Numeric album id such as 269572838, or a music.apple.com album URL.
e.g. 269572838
country
string
Two-letter Apple Music storefront, such as us or jp.
default us
tunnel
string
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
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
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

16 fields
artistArtist
idstring
namestring
urlstring
genresstring[]
idstring
imageUrlstring
releaseDatestring
titlestring
trackCountinteger (int64)
tracksTrack[]
durationSecondsinteger (int64)
idstring
titlestring
urlstring
urlstring
curl "https://api.hoshime.com/v1/applemusic/album?id=269572838" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "artist": {
      "id": "abc123",
      "name": "…",
      "url": "https://…"
    },
    "genres": [
      "…"
    ],
    "id": "abc123",
    "imageUrl": "https://…",
    "releaseDate": "…",
    "title": "…",
    "trackCount": 1280,
    "tracks": [
      {
        "durationSeconds": 0,
        "id": "abc123",
        "title": "…",
        "url": "https://…"
      }
    ],
    "url": "https://…"
  },
  "meta": {
    "cached": false,
    "endpoint": "album",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "applemusic",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

artist

GET/v1/applemusic/artist

One Apple Music artist: name, genres, image and the albums listed on the artist page.

scope social:read1 unitcached 6 h

Parameters

id
string
required
Numeric artist id such as 32940, or a music.apple.com artist URL.
e.g. 32940
country
string
Two-letter Apple Music storefront, such as us or jp.
default us
tunnel
string
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
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
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

17 fields
albumsAlbumSummary[]
idstring
titlestring
urlstring
yearstring
avatarUrlstring
biostring
createdAtstring
followerCountinteger (int64)
followingCountinteger (int64)
genresstring[]
idstring
namestring
postCountinteger (int64)
urlstring
usernamestring
verifiedboolean
curl "https://api.hoshime.com/v1/applemusic/artist?id=32940" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "albums": [
      {
        "id": "abc123",
        "title": "…",
        "url": "https://…",
        "year": "…"
      }
    ],
    "avatarUrl": "https://…",
    "bio": "…",
    "createdAt": "2026-11-06T09:41:00Z",
    "followerCount": 1280,
    "followingCount": 1280,
    "genres": [
      "…"
    ],
    "id": "abc123",
    "name": "…",
    "postCount": 1280,
    "url": "https://…",
    "username": "…",
    "verified": false
  },
  "meta": {
    "cached": false,
    "endpoint": "artist",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "applemusic",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

playlist

GET/v1/applemusic/playlist

One public Apple Music playlist: curator, update date and its tracks with durations.

scope social:read1 unitcached 1 h

Parameters

id
string
required
Playlist id such as pl.f4d106fed2bd41149aaacabb233eb5eb, or a music.apple.com playlist URL.
e.g. pl.f4d106fed2bd41149aaacabb233eb5eb
country
string
Two-letter Apple Music storefront, such as us or jp.
default us
tunnel
string
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
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
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

11 fields
curatorstring
idstring
titlestring
trackCountinteger (int64)
tracksTrack[]
durationSecondsinteger (int64)
idstring
titlestring
urlstring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/applemusic/playlist?id=pl.f4d106fed2bd41149aaacabb233eb5eb" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "curator": "…",
    "id": "abc123",
    "title": "…",
    "trackCount": 1280,
    "tracks": [
      {
        "durationSeconds": 0,
        "id": "abc123",
        "title": "…",
        "url": "https://…"
      }
    ],
    "updatedAt": "2026-11-06T09:41:00Z",
    "url": "https://…"
  },
  "meta": {
    "cached": false,
    "endpoint": "playlist",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "applemusic",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open