Skip to main content
GET
/
albums
/
{albumID}
curl --request GET \
  --url https://taylor-swift-api.sarbo.workers.dev/albums/10
[
  {
    "song_id": 147,
    "title": "Snow on the Beach",
    "album_id": 10
  },
  {
    "song_id": 148,
    "title": "Maroon",
    "album_id": 10
  },
  {
    "song_id": 149,
    "title": "Bejeweled",
    "album_id": 10
  },
  {
    "song_id": 150,
    "title": "Labyrinth",
    "album_id": 10
  },
  {
    "song_id": 151,
    "title": "Mastermind",
    "album_id": 10
  },
  {
    "song_id": 152,
    "title": "Lavender Haze",
    "album_id": 10
  },
  {
    "song_id": 157,
    "title": "Anti-Hero",
    "album_id": 10
  }
]
Returns an array of songs that belong to the specified album.

Path parameters

albumID
integer
required
The unique identifier of the album. Use the Get all albums endpoint to look up valid album IDs.

Response

[]
object[]
Array of song objects belonging to the album.
curl --request GET \
  --url https://taylor-swift-api.sarbo.workers.dev/albums/10
[
  {
    "song_id": 147,
    "title": "Snow on the Beach",
    "album_id": 10
  },
  {
    "song_id": 148,
    "title": "Maroon",
    "album_id": 10
  },
  {
    "song_id": 149,
    "title": "Bejeweled",
    "album_id": 10
  },
  {
    "song_id": 150,
    "title": "Labyrinth",
    "album_id": 10
  },
  {
    "song_id": 151,
    "title": "Mastermind",
    "album_id": 10
  },
  {
    "song_id": 152,
    "title": "Lavender Haze",
    "album_id": 10
  },
  {
    "song_id": 157,
    "title": "Anti-Hero",
    "album_id": 10
  }
]

Build docs developers (and LLMs) love