Skip to content

Search

GET/v1/apple-music/search1 credit

Searches Apple Music (US storefront) and returns its result sections: top results, artists, albums, songs, playlists, radio episodes, stations, music videos, video extras and categories, up to 20 items each; or one section when `type` is given.

01Query parameters

NameTypeDescription
queryrequiredstringThe search term.
typeoptionalstringOne section only. `all` (or none) returns every section.Default: allAccepted values:allsongalbumartistplayliststationmusic_videoradio_episodetopvideo_extracategory

02Request

curl "https://api.scrapesocial.ai/v1/apple-music/search?query=radiohead" \
  -H "x-api-key: $SCRAPESOCIAL_KEY"

03Responses

Real answers from the API. Lists are shortened to 2 items.

GET /v1/apple-music/search?query=radiohead

{
  "success": true,
  "credits_remaining": 4980,
  "credits_charged": 1,
  "query": "radiohead",
  "type": "all",
  "sections": [
    {
      "id": "top-search-section - top",
      "title": "Top Results",
      "items": [
        {
          "id": "657515",
          "kind": "artist",
          "title": "Radiohead",
          "subtitle": "Artist",
          "album": null,
          "url": "https://music.apple.com/us/artist/radiohead/657515",
          "artwork": {
            "url": "https://is1-ssl.mzstatic.com/image/thumb/AMCArtistImages211/v4/8a/49/84/8a498443-718e-40c0-404e-d1380c2352b7/ami-identity-531db02daa273271c643ba631a46b9d5-2026-09-07T07-12-12.872Z_cropped.png/1200x1200bb.jpg",
            "width": 1050,
            "height": 1050,
            "bgColor": "131313",
            "textColor1": "eba140",
            "textColor2": "e29438",
            "textColor3": "c08437",
            "textColor4": "b87a31"
          },
          "duration_ms": null,
          "track_number": null,
          "disc_number": null,
          "artist_name": null,
          "explicit": false,
          "preview_url": null,
          "track_count": null
        },
        {
          "id": "1097862231",
          "kind": "song",
          "title": "Creep",
          "subtitle": "Song · Radiohead",
          "album": null,
          "url": "https://music.apple.com/us/album/creep/1097862062?i=1097862231",
          "artwork": {
            "url": "https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/78/a4/ec/78a4ec7b-c6d6-c9c8-441b-660486e56a89/634904077969.png/1200x1200bb.jpg",
            "width": 4000,
            "height": 4000,
            "bgColor": "ded9d2",
            "textColor1": "0e0a03",
            "textColor2": "3e2217",
            "textColor3": "38332c",
            "textColor4": "5e473c"
          },
          "duration_ms": null,
          "track_number": null,
          "disc_number": null,
          "artist_name": null,
          "explicit": true,
          "preview_url": null,
          "track_count": null
        }
      ]
    },
    {
      "id": "bubble-section - artist",
      "title": "Artists",
      "items": [
        {
          "id": "657515",
          "kind": "artist",
          "title": "Radiohead",
          "subtitle": null,
          "album": null,
          "url": "https://music.apple.com/us/artist/radiohead/657515",
          "artwork": {
            "url": "https://is1-ssl.mzstatic.com/image/thumb/AMCArtistImages211/v4/8a/49/84/8a498443-718e-40c0-404e-d1380c2352b7/ami-identity-531db02daa273271c643ba631a46b9d5-2026-09-07T07-12-12.872Z_cropped.png/1200x1200bb.jpg",
            "width": 1050,
            "height": 1050,
            "bgColor": "131313",
            "textColor1": "eba140",
            "textColor2": "e29438",
            "textColor3": "c08437",
            "textColor4": "b87a31"
          },
          "duration_ms": null,
          "track_number": null,
          "disc_number": null,
          "artist_name": null,
          "explicit": false,
          "preview_url": null,
          "track_count": null
        },
        {
          "id": "156334706",
          "kind": "artist",
          "title": "Ed O'Brien",
          "subtitle": null,
          "album": null,
          "url": "https://music.apple.com/us/artist/ed-obrien/156334706",
          "artwork": {
            "url": "https://is1-ssl.mzstatic.com/image/thumb/AMCArtistImages221/v4/3e/1c/8d/3e1c8ddf-90c9-bba3-e0e5-d0020666f239/ami_U003aidentity_U003aedd7ff071086cf77813db2cc769437ab-2026-10-05T16-03-39.015Z_cropped.png/1200x1200bb.jpg",
            "width": 1120,
            "height": 1120,
            "bgColor": "00167a",
            "textColor1": "dbb799",
            "textColor2": "cfa687",
            "textColor3": "af9793",
            "textColor4": "a68984"
          },
          "duration_ms": null,
          "track_number": null,
          "disc_number": null,
          "artist_name": null,
          "explicit": false,
          "preview_url": null,
          "track_count": null
        }
      ]
    }
  ]
}

Common to every endpoint

Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.

GET /v1/cosmos/profile?handle=design

{
  "success": false,
  "message": "Invalid API key"
}

04Notes

Without `type` (or with `all`) the answer is `query`, `type` and `sections` (`id`, `title`, `items`, in the page's order). With a `type` it is `query`, `type`, `results` (that section's items) and `section` (the section itself, or null when the page has none: an empty list for 0 credits). Items share one shape: `id`, `kind`, `title`, `subtitle`, `album`, `url`, `artwork` (1200×1200 URL, size, colours), `duration_ms`, `track_number`, `disc_number`, `artist_name`, `explicit`, `preview_url`, `track_count`; a value the page does not give is null. There is no paging. A search with no section returns 200 with an empty list for 0 credits; an unknown `type` is a free 400.

05Errors & credits

Every error has success: false, a real HTTP status and costs no credits.

  • 400missing_parameter

    A required parameter is missing or invalid.

  • 403private_account

    The account is private or age-restricted.

  • 404not_found

    No such account.

  • 503upstream_error

    The platform did not answer; retry shortly.