Sign inSign up

akashrchandran/spotify-lyrics-api

By akashrchandran

•Updated 9 months ago

A Rest API for fetching lyrics from Spotify which is powered by Musixmatch.

Image
0

10K+

akashrchandran/spotify-lyrics-api repository overview

⁠Spotify Lyrics API

A REST API for fetching lyrics from Spotify (powered by Musixmatch).

⚠️ This project is probably against Spotify TOS. Use at your own risk.

⁠Quick Start

docker run -d -p 8080:8080 -e SP_DC=your_sp_dc_cookie akashrchandran/spotify-lyrics-api

⁠Docker Compose

services:
  spotify-lyrics-api:
    image: akashrchandran/spotify-lyrics-api:latest
    ports:
      - "8080:8080"
    environment:
      - SP_DC=your_sp_dc_cookie
    restart: unless-stopped

⁠Environment Variables

VariableRequiredDescription
SP_DCYesSpotify sp_dc cookie value (How to get it⁠)

⁠API Usage

Get lyrics by track ID:

GET http://localhost:8080/?trackid=5f8eCNwTlr0RJopE9vQ6mB

Get lyrics by Spotify URL:

GET http://localhost:8080/?url=https://open.spotify.com/track/5f8eCNwTlr0RJopE9vQ6mB

Available formats: id3 (default), lrc, srt, raw

GET http://localhost:8080/?trackid=5f8eCNwTlr0RJopE9vQ6mB&format=lrc

⁠Response Example

{
    "error": false,
    "syncType": "LINE_SYNCED",
    "lines": [
        {
            "startTimeMs": "960",
            "words": "One, two, three, four"
        }
    ]
}

Tag summary

Content type

Image

Digest

sha256:c95749ad9…

Size

37.1 MB

Last updated

9 months ago

docker pull akashrchandran/spotify-lyrics-api