626★by mvanhorn
spotify-web-api – OpenClaw Skill
spotify-web-api is an OpenClaw Skills integration for coding workflows. Spotify control via Web API - playback, history, top tracks, search. Cross-platform (no Mac required).
Skill Snapshot
| name | spotify-web-api |
| description | Spotify control via Web API - playback, history, top tracks, search. Cross-platform (no Mac required). OpenClaw Skills integration. |
| owner | mvanhorn |
| repository | mvanhorn/spotify-web-api |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @mvanhorn/spotify-web-api |
| last updated | Feb 7, 2026 |
Maintainer

name: spotify-web-api description: Spotify control via Web API - playback, history, top tracks, search. Cross-platform (no Mac required). homepage: https://spotify.com metadata: {"clawdbot":{"emoji":"🎵","requires":{"env":["SPOTIFY_CLIENT_ID","SPOTIFY_CLIENT_SECRET"]}}}
Spotify Web API (Cross-Platform)
Control Spotify via Web API. Works from any platform — no Mac required.
Setup
1. Create Spotify App:
- Go to https://developer.spotify.com/dashboard
- Create a new app
- Add redirect URI:
http://localhost:8888/callback - Copy Client ID and Client Secret
2. Set Environment Variables:
export SPOTIFY_CLIENT_ID="your_client_id"
export SPOTIFY_CLIENT_SECRET="your_client_secret"
3. Authenticate:
python3 {baseDir}/scripts/spotify.py auth
Opens browser for OAuth. Token cached in ~/.spotify_cache.json.
Commands
# Currently playing
python3 {baseDir}/scripts/spotify.py now
# Recently played
python3 {baseDir}/scripts/spotify.py recent
# Top tracks/artists
python3 {baseDir}/scripts/spotify.py top tracks --period month
python3 {baseDir}/scripts/spotify.py top artists --period year
# Playback control
python3 {baseDir}/scripts/spotify.py play
python3 {baseDir}/scripts/spotify.py play "bohemian rhapsody"
python3 {baseDir}/scripts/spotify.py pause
python3 {baseDir}/scripts/spotify.py next
python3 {baseDir}/scripts/spotify.py prev
# Search
python3 {baseDir}/scripts/spotify.py search "daft punk"
# List devices
python3 {baseDir}/scripts/spotify.py devices
Example Chat Usage
- "What am I listening to?"
- "What have I listened to lately?"
- "What are my top tracks this month?"
- "Play Bohemian Rhapsody"
- "Skip this song"
- "Pause the music"
Requirements
- Spotify Premium (for playback control)
- Free accounts can still view history/top tracks
API Reference
Uses the Spotify Web API: https://developer.spotify.com/documentation/web-api
No README available.
Permissions & Security
Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.
Requirements
- Spotify Premium (for playback control) - Free accounts can still view history/top tracks
FAQ
How do I install spotify-web-api?
Run openclaw add @mvanhorn/spotify-web-api in your terminal. This installs spotify-web-api into your OpenClaw Skills catalog.
Does this skill run locally or in the cloud?
OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.
Where can I verify the source code?
The source repository is available at https://github.com/openclaw/skills/tree/main/skills/mvanhorn/spotify-web-api. Review commits and README documentation before installing.
