Skip to content

api to get current playing song in spotify, with support for vercel

License

Notifications You must be signed in to change notification settings

AmarnathCJD/spotify-now-playing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotify-now-playing

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

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)

HTML

<img src="https://<your-vercel-deployment-url>/api/current-playing?svg=true" alt="Spotify Now Playing">

JSON Response

curl https://<your-vercel-deployment-url>/api/current-playing

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

api to get current playing song in spotify, with support for vercel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages