音
Apple Music API
4 endpointsMusic & AudioGlobalsocial:read
Albums, artists, playlists and search from Apple Music's public web pages.
View as Markdown| GET | /applemusic/album | One Apple Music album: artist, genres, release date, artwork and its tracks with durations. |
| GET | /applemusic/artist | One Apple Music artist: name, genres, image and the albums listed on the artist page. |
| GET | /applemusic/playlist | One public Apple Music playlist: curator, update date and its tracks with durations. |
| GET | /applemusic/search | Search Apple Music for songs, albums or artists; the first results of the search page, no paging. |
album
GET
/v1/applemusic/albumOne Apple Music album: artist, genres, release date, artwork and its tracks with durations.
scope social:read1 unitcached 6 h
Parameters
idstring required | Numeric album id such as 269572838, or a music.apple.com album URL. e.g. 269572838 |
countrystring | Two-letter Apple Music storefront, such as us or jp. default us |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
artist | Artist |
id | string |
name | string |
url | string |
genres | string[] |
id | string |
imageUrl | string |
releaseDate | string |
title | string |
trackCount | integer (int64) |
tracks | Track[] |
durationSeconds | integer (int64) |
id | string |
title | string |
url | string |
url | string |
curl "https://api.hoshime.com/v1/applemusic/album?id=269572838" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/applemusic/album?id=269572838", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/applemusic/album?id=269572838", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/artistOne Apple Music artist: name, genres, image and the albums listed on the artist page.
scope social:read1 unitcached 6 h
Parameters
idstring required | Numeric artist id such as 32940, or a music.apple.com artist URL. e.g. 32940 |
countrystring | Two-letter Apple Music storefront, such as us or jp. default us |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
albums | AlbumSummary[] |
id | string |
title | string |
url | string |
year | string |
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
genres | string[] |
id | string |
name | string |
postCount | integer (int64) |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/applemusic/artist?id=32940" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/applemusic/artist?id=32940", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/applemusic/artist?id=32940", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/playlistOne public Apple Music playlist: curator, update date and its tracks with durations.
scope social:read1 unitcached 1 h
Parameters
idstring required | Playlist id such as pl.f4d106fed2bd41149aaacabb233eb5eb, or a music.apple.com playlist URL. e.g. pl.f4d106fed2bd41149aaacabb233eb5eb |
countrystring | Two-letter Apple Music storefront, such as us or jp. default us |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
curator | string |
id | string |
title | string |
trackCount | integer (int64) |
tracks | Track[] |
durationSeconds | integer (int64) |
id | string |
title | string |
url | string |
updatedAt | string |
url | string |
curl "https://api.hoshime.com/v1/applemusic/playlist?id=pl.f4d106fed2bd41149aaacabb233eb5eb" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/applemusic/playlist?id=pl.f4d106fed2bd41149aaacabb233eb5eb", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/applemusic/playlist?id=pl.f4d106fed2bd41149aaacabb233eb5eb", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }
search
GET
/v1/applemusic/searchSearch Apple Music for songs, albums or artists; the first results of the search page, no paging.
scope social:read1 unitcached 1 hpaginated
Parameters
querystring required | Search text, such as thriller. e.g. thriller |
typestring | What to return.songsalbumsartistsdefault songs |
countrystring | Two-letter Apple Music storefront, such as us or jp. default us |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
artist | string |
id | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/applemusic/search?query=thriller" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/applemusic/search?query=thriller", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/applemusic/search?query=thriller", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "artist": "…", "id": "abc123", "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "applemusic", "requestId": "req_2Xb9kQ…", "units": 1 } }