Skip to main content
The lyrics endpoints serve two distinct purposes: fetching the complete lyrics for a specific song, and generating a configurable number of lyric paragraphs for use as realistic placeholder text in designs and tests.

Fetch full lyrics for a song

Send a GET request to /lyrics/{songID} to retrieve the complete lyrics for a specific track. You need the song’s song_id, which you can obtain from the /songs or /albums/{albumID} endpoints.The example below fetches lyrics for song 10, Wonderland.
curl https://taylor-swift-api.sarbo.workers.dev/lyrics/10
Example response
{
  "song_id": 10,
  "song_title": "Wonderland",
  "lyrics": "Flashing lights and we\nTook a wrong turn and we\nFell down a rabbit hole...\n"
}

Response fields

FieldTypeDescription
song_idintegerID of the song.
song_titlestringTitle of the song.
lyricsstringFull lyrics, with lines separated by \n.
To display lyrics cleanly in a web interface, split the lyrics string on \n\n to get individual paragraphs (verses/choruses), then split each paragraph on \n for individual lines.

Build docs developers (and LLMs) love