Unofficial API to fetch Spotify Lyrics data.
Warning
This project uses undocumented endpoints and may violate Spotify's Terms of Service. Use at your own risk.
- Retrieve Lyrics data by track ID or URI
- Parses responses from the internal Spotify API by 2 format into
lrcorsrt. - Works with public or private tracks (as long as you're authenticated)
https://localhost:3000/api/lyrics?url=https://open.spotify.com/track/4Q0qVhFQa7j6jRKzo3HDmP&format=lrc{
"syncType": "LINE_SYNCED",
"lines": [
{
"timeTag": "00:00.48",
"words": "You're glowing, you colour and fracture the light"
},
{
"timeTag": "00:06.51",
"words": "You can't help but shine"
},
....
]
}git clone https://github.com/Paxsenix0/Spotify-Lyrics-API.git
cd Spotify-Lyrics-APInpm installYou must supply your sp_dc cookie from a logged-in Spotify session.
Create a .env file in the root:
SP_DC=your_sp_dc_cookie_hereThis cookie is used to generate an access token to authenticate requests.
You can deploy instantly with Vercel:
I'm developing this project entirely on my phone, without a PC or laptop. Also, I'm still learning — so feel free to send pull requests or suggestions if something looks off!
Shoutout to this helpful repo that inspired parts of this: https://github.com/akashrchandran/spotify-lyrics-api
This project is licensed under the MIT license. see LICENSE for details.
Telegram: @paxsenix0
Email: alex24dzn@proton.me
My Rest-API website: https://api.paxsenix.biz.id