Spotify Integration & Analytics
Automate Spotify music playback, playlist management, and audio analysis workflows
Managing Spotify playlists, analyzing listening trends, and integrating music data into your workflows requires repetitive API calls and manual curation. This playbook automates Spotify playback control, playlist management, audio feature analysis, and listening analytics.
Who it's for: music curators automating playlist creation and management based on audio features, podcast producers integrating Spotify analytics into their production workflow, music data analysts studying listening patterns and audio feature trends, content creators building mood-based or activity-based playlist generators, developers integrating Spotify data into music recommendation or fitness applications
Example
"Create an automated workout playlist based on BPM and energy levels" → Spotify pipeline: Spotify API authentication and library scanning, audio feature analysis (tempo, energy, danceability) across saved tracks, automated playlist creation filtering by BPM range and energy threshold, track ordering for warm-up to peak intensity progression, and listening analytics dashboard showing playlist performance
CLAUDE.md Template
New here? 3-minute setup guide → | Already set up? Copy the template below.
npx ccplaybooks add spotify-automation# Spotify Automation
Automate Spotify music playback, playlist management, and discovery workflows.
## Core Capabilities
### Playback Control
```yaml
playback_commands:
- play_track: "spotify:track:xxx"
- pause
- next_trackGet new playbooks like this one
One email a week with new Claude Code workflows. Free, like everything here.
No spam. Unsubscribe anytime.
What This Does
Automate Spotify music playback, playlist management, and discovery workflows.
Quick Start
Step 1: Create a Project Folder
mkdir -p ~/Documents/SpotifyAutomation
Step 2: Download the Template
Click Download above, then:
mv ~/Downloads/CLAUDE.md ~/Documents/SpotifyAutomation/
Step 3: Start Working
cd ~/Documents/SpotifyAutomation
claude
Best Practices
- Rate Limits: Respect Spotify API limits
- Caching: Cache frequently accessed data
- User Consent: Request appropriate scopes
- Fallbacks: Handle unavailable tracks gracefully