Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amarnathcjd/spotify-now-playing

spotify current song widget in SVG, pure golang
https://github.com/amarnathcjd/spotify-now-playing

badge github-r github-readme hacktoberfest hacktoberfest-accepted spotify spotify-api spotify-web-api svg vercel

Last synced: about 1 month ago
JSON representation

spotify current song widget in SVG, pure golang

Awesome Lists containing this project

README

        

# 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 ->
![Spotify Now Playing](https://spotify-now-playing-psi-silk.vercel.app/api/current-playing?svg=true&s=1)

### V2 ->
![Spotify Now Playing](https://spotify-now-playing-psi-silk.vercel.app/api/current-playing?svg=true&v=2&s=1)

## 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](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/amarnathcjd/spotify-now-playing)

## Usage

### SVG Badge

#### Markdown
```markdown
![Spotify Now Playing](https:///api/current-playing?svg=true&s=1)
```

#### HTML
```html
Spotify Now Playing
```

### JSON Response

```bash
curl https:///api/current-playing?s=1
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.