Skip to content

AmarnathCJD/spotify-now-playing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.