Apple Music artist API
  1. Docs
  2. Apple Music
  3. Apple Music artist API

Apple Music artist API

Bio, origin, genres, top songs and albums.

GET /v1/apple-music/artist

GET /v1/apple-music/artist

Bio, origin, genres, top songs and albums. Apple Music shows no follower or listener counts, so stats is empty. region is the storefront (default us); a URL carries its own.

  • Cost: 1 credit
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLone ofApple Music artist URL. Accepted hosts: music.apple.com.
idstringone ofApple Music artist id.

Send at least one of url, id. If you send several, the first listed is used and the rest are ignored.

Every request also accepts:

  • region: two-letter country code for results that vary by country. Changing it restarts the cursor chain.
  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

1curl -G "https://api.socialscrape.dev/v1/apple-music/artist" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode "url=https://music.apple.com/us/artist/taylor-swift/159260351"

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_e96f2f41c789fb5c9aa99adc",8  "data": {9    "object": "profile",10    "platform": "apple_music",11    "id": "159260351",12    "handle": null,13    "name": "Taylor Swift",14    "headline": null,15    "url": "https://music.apple.com/us/artist/taylor-swift/159260351",16    "kind": "artist",17    "bio": "The country world feigned surprise when, after three albums of Music Row-indebted songcraft, Taylor Swift formally embraced pop on 2012’s Red. But no one should have been shocked: Any 14-year-old capable of persuading her parents to move fr...",18    "avatar_url": "https://is1-ssl.mzstatic.com/image/thumb/AMCArtistImages221/v4/6d/67/88/6d67888b-9e7f-53af-7853-0f91d6fd2332/ami_U003aidentity_U003a994af5c375f4c3aa96cd6ced4a700799-2026-09-25T04-00-05.358Z_cropped.png/1200x1200bb.jpg",19    "banner_url": null,20    "verified": null,21    "is_private": null,22    "external_url": null,23    "links": null,24    "location": "West Reading, PA, United States",25    "category": "Pop",26    "created_at": null,27    "stats": {28      "followers": null,29      "following": null,30      "posts": null,31      "likes": null,32      "views": null33    },34    "extra": {35      "album_ids": [36        "1440933849",37        "1468058165",38        "1742057774"39      ],40      "albums": [41        {42          "content_rating": "explicit",43          "cover_url": "https://is1-ssl.mzstatic.com/image/thumb/Music221/v4/a0/dd/fd/a0ddfd72-ee9e-f046-6466-a5dbefc696fa/26UM1IM21436.rgb.jpg/1200x1200bb.jpg",44          "genres": [45            "Pop",46            "Music"47          ],48          "id": "6814997249",49          "is_compilation": false,50          "is_single": false,51          "label": "Taylor Swift",52          "release_date": "2026-09-24",53          "title": "The Life of a Showgirl: The Encore",54          "track_count": 16,55          "url": "https://music.apple.com/us/album/the-life-of-a-showgirl-the-encore/6814997249"56        },57        {58          "cover_url": "https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/47/8a/b8/478ab8ac-d134-bad3-f700-364c83323bc6/26UMGIM11621.rgb.jpg/1200x1200bb.jpg",59          "genres": [60            "Pop",61            "Music"62          ],63          "id": "1875381397",64          "is_compilation": false,65          "is_single": true,66          "label": "Taylor Swift",67          "release_date": "2026-02-13",68          "title": "Opalite (Official Music Video Extended Versions) - Single",69          "track_count": 4,70          "url": "https://music.apple.com/us/album/opalite-official-music-video-extended-versions-single/1875381397"71        },72        {73          "content_rating": "explicit",74          "cover_url": "https://is1-ssl.mzstatic.com/image/thumb/Music221/v4/0e/e5/c7/0ee5c717-114f-f4e8-9f7c-e92dd6eb9152/25UM1IM74420.rgb.jpg/1200x1200bb.jpg",75          "genres": [76            "Pop",77            "Music"78          ],79          "id": "1850496031",80          "is_compilation": false,81          "is_single": false,82          "label": "Taylor Swift",83          "release_date": "2025-11-07",84          "title": "The Life of a Showgirl + Acoustic Collection",85          "track_count": 19,86          "url": "https://music.apple.com/us/album/the-life-of-a-showgirl-acoustic-collection/1850496031"87        }88      ],89      "born_or_formed": "December 13, 1989",90      "editorial_notes": {91        "short": "Favorite Taylor’s artist page for updates on The Life of a Showgirl."92      },93      "genres": [94        "Pop"95      ],96      "latest_release": {97        "cover_url": "https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/89/98/98/8998984f-9a80-c3e1-d59d-e6a6db859e0c/26UM1IM31403.rgb.jpg/1200x1200bb.jpg",98        "genres": [99          "Pop",100          "Music"101        ],102        "id": "6821937445",103        "is_compilation": false,104        "is_single": false,105        "label": "Taylor Swift",106        "release_date": "2026-10-16",107        "title": "Patient Zero - Single",108        "track_count": 3,109        "url": "https://music.apple.com/us/album/patient-zero-single/6821937445"110      },111      "next_albums": "/v1/catalog/us/artists/159260351/albums?offset=25",112      "top_songs": [113        {114          "album": "The Life of a Showgirl: The Encore",115          "artists": [116            "Taylor Swift"117          ],118          "cover_url": "https://is1-ssl.mzstatic.com/image/thumb/Music221/v4/a0/dd/fd/a0ddfd72-ee9e-f046-6466-a5dbefc696fa/26UM1IM21436.rgb.jpg/1200x1200bb.jpg",119          "duration_seconds": 225.868,120          "explicit": false,121          "id": "6814997425",122          "isrc": "USUG12602391",123          "preview_url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/ec/c8/21/ecc821bd-1252-51fe-08f0-f3d548dcc91b/mzaf_6909590374062866776.plus.aac.ep.m4a",124          "released_at": "2026-09-24",125          "title": "Patient Zero",126          "url": "https://music.apple.com/us/album/patient-zero/6814997249?i=6814997425"127        },128        {129          "album": "Fearless",130          "artists": [131            "Taylor Swift"132          ],133          "cover_url": "https://is1-ssl.mzstatic.com/image/thumb/Music221/v4/cb/6e/a7/cb6ea70a-6cb8-89a0-4da7-91e2d04a7bba/08PNDIM05386.rgb.jpg/900x900bb.jpg",134          "duration_seconds": 231.133,135          "explicit": false,136          "id": "1440925035",137          "isrc": "USCJY0803328",138          "preview_url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview211/v4/2c/6e/b8/2c6eb87b-a89c-98b0-f4c3-94846613b36b/mzaf_2293961516155991593.plus.aac.ep.m4a",139          "released_at": "2008-11-11",140          "title": "You Belong With Me",141          "url": "https://music.apple.com/us/album/you-belong-with-me/1440924803?i=1440925035"142        },143        {144          "album": "The Life of a Showgirl",145          "artists": [146            "Taylor Swift"147          ],148          "cover_url": "https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/2d/46/e0/2d46e0bc-8ab9-85dd-4b56-ee6951351034/25UM1IM19577.rgb.jpg/1200x1200bb.jpg",149          "duration_seconds": 226.074,150          "explicit": false,151          "id": "1833328840",152          "isrc": "USUG12506436",153          "preview_url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/4b/07/28/4b07285f-b50c-7aff-cb40-2d732256b703/mzaf_14590041634085649439.plus.aac.ep.m4a",154          "released_at": "2025-10-03",155          "title": "The Fate of Ophelia",156          "url": "https://music.apple.com/us/album/the-fate-of-ophelia/1833328839?i=1833328840"157        }158      ]159    }160  },161  "cursor": null,162  "has_more": null163}

Response#

A Profile object in data.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.

Example error:

1{2  "ok": false,3  "error": {4    "code": "not_found",5    "message": "The platform says this profile, post or item does not exist.",6    "retryable": false7  },8  "credits_charged": 0,9  "request_id": "req_0996220df8a376d6de6ffd3f"10}