Get song information for a specific song

GET /songs/{songID}

Path parameters

  • songID integer Required

    ID of the song

Responses

  • 200

    Success response

    Hide response attributes Show response attributes object
    • song_id integer
    • song_title string
    • album_id integer
  • 404

    Song not found

  • 500

    Internal Server Error

GET /songs/{songID}
curl \
 -X GET https://taylor-swift-api.sarbo.workers.dev/songs/{songID}
Response examples (200)
{
  "song_id": 42,
  "song_title": "string",
  "album_id": 42
}
Response examples (200)
{
  "song_id": 42,
  "song_title": "string",
  "album_id": 42
}