Entertainment
Apple Music logo

Apple Music API

music.apple.com

Apple Music - catalog of artists, top songs, albums, and playlist tracks.

Actions
6
Category
Entertainment
Login
Not required
Output
JSON

Call the Apple Music API

Submit a task, then poll the job until it settles. This example runs act_music_apple_com_album_detail.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_music_apple_com_album_detail",
    "params": {
      "album_id": "1614527914",
      "locale": "en-GB"
    }
  }'

6 actions on music.apple.com

Read

  • Album Details

    act_music_apple_com_album_detailread2 credits / call

    Returns album details with title, artists, tracks, release date, and genres.

    album_id
    string · required
    locale
    string · required
  • Artist Details

    act_music_apple_com_artist_detail_with_top_songsread2 credits / call

    Returns an artist profile with bio, genres, top songs, and albums.

    artist_id
    string · required
    locale
    string · required
  • Editorial Room Listing

    act_music_apple_com_editorial_room_listingread2 credits / call

    Returns an editorial room's shelf of curated songs, albums, and artists.

    room_id
    string · required
    locale
    string · required
  • Playlist Tracks

    act_music_apple_com_playlist_tracksread2 credits / call

    Returns playlist metadata and its track listing, up to 300 songs.

    playlist_id
    string · required
    l
    string · required
    authorization
    string · required
  • Playlist Tracks Details

    act_music_apple_com_playlist_tracks_detailread2 credits / call

    Returns a playlist's tracks, curator details, and description, up to 300 songs.

    playlist_id
    string · required
    locale
    string · required
  • Search Autocomplete

    act_music_apple_com_search_autocompleteread2 credits / call

    Returns typeahead suggestions and matching artists, albums, and songs for a term.

    term
    string · required
    l
    string · required
    authorization
    string · required

Apple Music API questions

Is there an API for Apple Music?
Apple Music does not offer a public data API for this, but Anakin Wire provides 6 maintained endpoints for music.apple.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Apple Music data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when music.apple.com changes its markup, Anakin updates the action.
Do I need a Apple Music account?
No. Every Apple Music action listed here runs anonymously — no account and no credentials required.
What does the Apple Music API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Entertainment APIs

All Entertainment sites