PulseEmetrics

Apple Music

4 endpoints. All requests need an x-api-key header.

GET/v1/apple-music/album

Album

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

NameTypeDescription
idstringApple Music album id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 1468058165
urlstringApple 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
freshbooleanSet 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())
GET/v1/apple-music/artist

Artist

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

NameTypeDescription
idstringApple Music artist id. If you'd prefer to use the URL instead, you can use the url parameter instead. Example: 159260351
urlstringApple 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
freshbooleanSet 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())
GET/v1/apple-music/search

Search

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

NameTypeDescription
queryrequiredstringSearch query Example: taylor swift
typestringResult type to return. Use all, song, album, artist, playlist, station, music_video, or radio_episode. Example: song
freshbooleanSet 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())
GET/v1/apple-music/track

Track

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

NameTypeDescription
idstringApple Music song id. Some songs have standalone song URLs; for album tracks, use the url parameter. Example: 1833328840
urlstringApple Music song URL or album track URL. Example: https://music.apple.com/us/album/lover/1468058165?i=1468058169
freshbooleanSet 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())