Collect and organize Spotify playback data automatically
Workflow Description
A scheduled automation that extracts track and playlist information from Spotify, processes data in batches, applies filtering conditions, and organizes results for analysis. Enables automated tracking of listening habits and music library management through APIs.
How it works
- 1.Trigger workflow on a defined schedule
- 2.Retrieve tracks and playlist data from Spotify API
- 3.Process extracted data in sequential batches
- 4.Apply conditional logic for filtering and sorting
- 5.Aggregate and normalize results
- 6.Generate structured output for downstream actions
Use cases
- Automatically compile weekly and monthly listening statistics
- Create dynamic playlists based on specific criteria
- Monitor and log changes to music libraries
- Generate detailed reports on most-played tracks
Requirements
- Active Spotify account with full API permissions
- Basic knowledge of n8n workflow structure and scheduling triggers
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (23)
If no playlist
If
Create Downloads Playlist
If
Get Liked Tracks
If
Loop Over Items
Split In Batches
Aggregate
Aggregate
Split Out
Split Out
Add tracks to Downloads
If
Get Downloads Playlist
If
Filter out new tracks
Code
Get tracks to remove
Code
Remove oldest tracks from Downloads
If
Filter out Downloads Playlist
Filter
Get Updated Downloads Playlist
If
Get all Playlists
If
Schedule Trigger
Schedule Trigger
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
If no Downloads Playlist found
If
Globals
Set