Developer & DevOps

Collect and organize Spotify playback data automatically

23 nodes 283 146 Scheduled trigger
Download

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. 1.Trigger workflow on a defined schedule
  2. 2.Retrieve tracks and playlist data from Spotify API
  3. 3.Process extracted data in sequential batches
  4. 4.Apply conditional logic for filtering and sorting
  5. 5.Aggregate and normalize results
  6. 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

If Split In Batches

Details

Trigger Scheduled trigger
Nodes 23
Apps 2
Views 283
Downloads 146

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (23)

/

If no playlist

If

#1

Create Downloads Playlist

If

#2

Get Liked Tracks

If

#3

Loop Over Items

Split In Batches

#4

Aggregate

Aggregate

#5

Split Out

Split Out

#6

Add tracks to Downloads

If

#7

Get Downloads Playlist

If

#8

Filter out new tracks

Code

#9

Get tracks to remove

Code

#10

Remove oldest tracks from Downloads

If

#11

Filter out Downloads Playlist

Filter

#12

Get Updated Downloads Playlist

If

#13

Get all Playlists

If

#14

Schedule Trigger

Schedule Trigger

#15

Sticky Note1

Sticky Note

#16

Sticky Note2

Sticky Note

#17

Sticky Note

Sticky Note

#18

Sticky Note3

Sticky Note

#19

Sticky Note4

Sticky Note

#20

Sticky Note5

Sticky Note

#21

If no Downloads Playlist found

If

#22

Globals

Set

#23