Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.22 KB

README.md

File metadata and controls

48 lines (28 loc) · 1.22 KB

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.