spotify current song widget in SVG, pure golang
Find a file
2025-03-17 23:20:59 +05:30
api use official spotify api, https://open.spotify.com/get_access_token is blocked. 2025-03-17 23:20:59 +05:30
.gitignore margin top 2024-11-09 01:23:37 +05:30
go.mod initial commit. 2024-07-18 13:50:36 +05:30
go.sum initial commit. 2024-07-18 13:50:36 +05:30
LICENSE Create LICENSE 2024-07-17 20:43:40 +05:30
README.md Update README.md 2024-11-03 02:20:05 +05:30

spotify-now-playing

A simple script to generate an SVG badge for your Spotify now playing status.

Sample - Demo

V1 ->

Spotify Now Playing

V2 ->

Spotify Now Playing

Requirements

  • sp_dc: copy the sp_dc cookie from open.spotify.com and set it as an environment variable ('SPOTIFY_COOKIE')

Deploy To Vercel

Deploy with Vercel

Usage

SVG Badge

Markdown

![Spotify Now Playing](https://<your-vercel-deployment-url>/api/current-playing?svg=true&s=1)

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.