Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/amarnathcjd/spotify-now-playing
- Owner: AmarnathCJD
- License: mit
- Created: 2024-07-17T15:13:15.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-11-02T21:15:32.000Z (about 2 months ago)
- Last Synced: 2024-11-02T21:18:53.775Z (about 2 months ago)
- Topics: badge, github-r, github-readme, hacktoberfest, hacktoberfest-accepted, spotify, spotify-api, spotify-web-api, svg, vercel
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```### 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.