Apple Music
4 endpoints. All requests need an x-api-key header.
/v1/apple-music/albumAlbum
Retrieves public Apple Music album details, including title, artist, artwork, release info, tracks, and more by the artist.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Apple Music album id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 1468058165 |
url | string | Apple Music album URL. If you'd prefer to use the id instead, you can use the id parameter instead. Example: https://music.apple.com/us/album/lover/1468058165 |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/apple-music/album?id=1468058165&url=https%3A%2F%2Fmusic.apple.com%2Fus%2Falbum%2Flover%2F1468058165" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/apple-music/album?id=1468058165&url=https%3A%2F%2Fmusic.apple.com%2Fus%2Falbum%2Flover%2F1468058165", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/apple-music/album",
params={"id": "1468058165", "url": "https://music.apple.com/us/album/lover/1468058165"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/apple-music/artistArtist
Retrieves public Apple Music artist details, including artwork, editorial notes, top songs, albums, music videos, playlists, and related sections.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Apple Music artist id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 159260351 |
url | string | Apple Music artist URL. If you'd prefer to use the id instead, you can use the id parameter instead. Example: https://music.apple.com/us/artist/taylor-swift/159260351 |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/apple-music/artist?id=159260351&url=https%3A%2F%2Fmusic.apple.com%2Fus%2Fartist%2Ftaylor-swift%2F159260351" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/apple-music/artist?id=159260351&url=https%3A%2F%2Fmusic.apple.com%2Fus%2Fartist%2Ftaylor-swift%2F159260351", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/apple-music/artist",
params={"id": "159260351", "url": "https://music.apple.com/us/artist/taylor-swift/159260351"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/apple-music/searchSearch
Searches Apple Music and returns public result sections for artists, albums, songs, playlists, stations, and music videos. Use type=song, album, artist, playlist, or all.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
queryrequired | string | Search query Example: taylor swift |
type | string | Result type to return. Use all, song, album, artist, playlist, station, music_video, or radio_episode. Example: song |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/apple-music/search?query=taylor%20swift&type=song" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/apple-music/search?query=taylor%20swift&type=song", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/apple-music/search",
params={"query": "taylor swift", "type": "song"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/apple-music/trackTrack
Retrieves public Apple Music song details by id or URL. Album track URLs with an i= song id are supported.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Apple Music song id. Some songs have standalone song URLs; for album tracks, use the url parameter. Example: 1833328840 |
url | string | Apple Music song URL or album track URL. Example: https://music.apple.com/us/album/lover/1468058165?i=1468058169 |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/apple-music/track?id=1833328840&url=https%3A%2F%2Fmusic.apple.com%2Fus%2Falbum%2Flover%2F1468058165%3Fi%3D1468058169" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/apple-music/track?id=1833328840&url=https%3A%2F%2Fmusic.apple.com%2Fus%2Falbum%2Flover%2F1468058165%3Fi%3D1468058169", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/apple-music/track",
params={"id": "1833328840", "url": "https://music.apple.com/us/album/lover/1468058165?i=1468058169"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())