Apple Music API by APISH avatar

Apple Music API by APISH

Pricing

$4.00 / 1,000 credits

Go to Apify Store
Apple Music API by APISH

Apple Music API by APISH

Apple Music charts, artists, discographies, albums, playlists, tracks and music videos as JSON, via APISH. Pay per credit; failed calls are free.

Pricing

$4.00 / 1,000 credits

Rating

0.0

(0)

Developer

APISH

APISH

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

Share

Get public Apple Music data as clean, consistent JSON: apple Music album, apple Music artist, apple Music artist albums, apple Music artist songs, apple Music charts, apple Music genres and more. 10 endpoints, one response shape, numbers parsed, absolute URLs.

How to use

  1. Pick an Endpoint. Each option shows what it returns and its price in credits.
  2. Enter its Parameters as JSON, for example {"url":"https://music.apple.com/us/artist/taylor-swift/159260351"}. All parameters are listed below.
  3. Run. Each call becomes one row in the dataset. Use Batch to run the same endpoint for many inputs and Pages per input to follow pagination.

Pricing

Pay per event: you pay per APISH credit the call used. The price of each endpoint is in the table below. Calls that fail on our side (server errors, timeouts, blocks) are free.

Endpoints

EndpointReturnsRequired parametersCredits
/apple-music/v1/albumApple Music albumurl1
/apple-music/v1/artistApple Music artisturl1
/apple-music/v1/artist/albumsApple Music artist albumsid1
/apple-music/v1/artist/songsApple Music artist songsurl1
/apple-music/v1/chartsApple Music charts—1
/apple-music/v1/genresApple Music genres—1
/apple-music/v1/music-videoApple Music music videos—1
/apple-music/v1/playlistApple Music playlistid1
/apple-music/v1/searchSearch Apple Musicq1
/apple-music/v1/trackApple Music trackurl1

Output

Each dataset row has endpoint, params, status, credits_used and the endpoint's data. Add "raw": 1 to the parameters to also get the site's original record, or "fields": "a,b.c" to return only the fields you need.

Endpoint details

Apple Music album

Endpoint /apple-music/v1/album · 1 credit per successful call.

Parameters:

  • url (required)

Example parameters: {"url":"https://music.apple.com/us/album/1989-taylors-version/1708308989"}

Apple Music artist

Endpoint /apple-music/v1/artist · 1 credit per successful call.

Parameters:

  • url (required)

Example parameters: {"url":"https://music.apple.com/us/artist/taylor-swift/159260351"}

Apple Music artist albums

Endpoint /apple-music/v1/artist/albums · 1 credit per successful call.

An artist's discography, newest first: albums, singles and EPs with release date, track count, genre, explicit flag and artwork. Page through it with offset; next_offset is null on the last page.

Parameters:

  • id (required): Artist id, or pass url with the artist link instead.
  • type — one of all, album, single, ep: all (default), album, single or ep.
  • limit: Results per page, up to 200 (default 50).
  • offset: Skip this many results (default 0).
  • country: Two-letter storefront country (default us).

Example parameters: {"id":"159260351"}

Apple Music artist songs

Endpoint /apple-music/v1/artist/songs · 1 credit per successful call.

An artist's songs, most popular or most recent first.

Parameters:

  • url (required): Artist URL (or id).
  • sort — one of popular, recent: popular (default) or recent.
  • limit: Up to 200 (default 50).

Example parameters: {"url":"https://music.apple.com/us/artist/taylor-swift/159260351"}

Apple Music charts

Endpoint /apple-music/v1/charts · 1 credit per successful call.

Apple Music's most-played charts by country. With genre, that genre's top chart in the store instead (songs, albums or music videos; genre and genre_id in the response, same item fields).

Parameters:

  • type — one of songs, albums, music-videos, playlists: songs (default), albums, music-videos, playlists.
  • country: Two-letter storefront (default us).
  • limit: Up to 200 (default 100).
  • genre: A genre: alternative, anime, blues, childrens-music, christian, classical, comedy, country, dance, electronic, fitness, hip-hop, holiday, j-pop, jazz, k-pop, latin, metal, new-age, pop, r-and-b, reggae, rock, singer-songwriter, soundtrack, world, or a numeric genre id. Not with type=playlists.

Example parameters: {"type":"songs"}

Apple Music genres

Endpoint /apple-music/v1/genres · 1 credit per successful call.

Apple's music genre tree for a storefront: every genre and subgenre with its id, link and top-songs and top-albums chart feeds, as a tree and as a flat list with depth. Pass a genre id to get one branch.

Parameters:

  • id: Genre id (default 34, all music; e.g. 14 Pop, 18 Hip-Hop/Rap).
  • country: Storefront, 2 letters (default us).

Example parameters: {"id":"34"}

Apple Music music videos

Endpoint /apple-music/v1/music-video · 1 credit per successful call.

One music video on Apple Music (title, artist, album, length, genre, release date, price, preview, artwork, link), or with artist_id all of an artist's music videos.

Parameters:

  • id: Music video id or music.apple.com music-video link.
  • artist_id: An artist's id: list their music videos instead.
  • limit: With artist_id: videos to return, up to 200 (default 50).
  • country: Storefront, 2 letters (default us).

Example parameters: {"id":"1458003118"}

Apple Music playlist

Endpoint /apple-music/v1/playlist · 1 credit per successful call.

An Apple Music playlist: name, curator, description, last update, artwork, track count and total duration, and every track with artist, album, duration, explicit flag, release date, genre and a 30-second preview link.

Parameters:

  • id (required): Playlist id (pl.xxxxxxxx), or pass url with the playlist link instead.
  • country: Two-letter storefront country (default us).

Example parameters: {"id":"pl.f4d106fed2bd41149aaacabb233eb5eb"}

Search Apple Music

Endpoint /apple-music/v1/search · 1 credit per successful call.

Parameters:

  • q (required)
  • type: song, album, artist, music-video or podcast.

Example parameters: {"q":"taylor swift","type":"song"}

Apple Music track

Endpoint /apple-music/v1/track · 1 credit per successful call.

Parameters:

  • url (required)

Example parameters: {"url":"https://music.apple.com/us/album/blank-space-taylors-version/1708308989?i=1708308993"}

Support

Questions, bugs or a missing field? Open an issue in this Actor's Issues tab and we will reply there.

Public data only: nothing behind a login. You are responsible for how you use the data you collect.