mirror of
https://github.com/AmarnathCJD/spotify-now-playing.git
synced 2026-04-26 06:06:02 +03:00
spotify current song widget in SVG, pure golang
| api | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| README.md | ||
spotify-now-playing
A simple script to generate an SVG badge for your Spotify now playing status.
- can use in github readme (eg;- check my profile)
Sample - Demo
V1 ->
V2 ->
Requirements
- sp_dc: copy the
sp_dccookie fromopen.spotify.comand set it as an environment variable ('SPOTIFY_COOKIE')
Deploy To Vercel
Usage
SVG Badge
Markdown

HTML
<img src="https://<your-vercel-deployment-url>/api/current-playing?svg=true&s=1" alt="Spotify Now Playing">
JSON Response
curl https://<your-vercel-deployment-url>/api/current-playing?s=1
License
This project is licensed under the MIT License - see the LICENSE file for details.