Data & Databases

Extract and store Spotify streaming data in database

30 nodes 120 84 Scheduled trigger
Download

Workflow Description

Scheduled automation retrieves playlist and track data from Spotify at regular intervals, processes information in batches with conditional logic, and stores cleaned data in Noco Db for tracking and historical analysis.

How it works

  1. 1.Trigger scheduled execution and authenticate with Spotify account
  2. 2.Fetch playlist and track metadata from Spotify API
  3. 3.Split data into batches and apply conditional filters
  4. 4.Merge processed results and validate data integrity
  5. 5.Save verified data to Noco Db tables

Use cases

  • Monitor streaming patterns and track performance metrics regularly
  • Maintain historical records of playlists and listening activity

Requirements

  • Active Spotify account with API access configured
  • Noco Db project with pre-defined database tables
  • Scheduling interval configured according to business needs

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

If Noco Db Split In Batches

Details

Trigger Scheduled trigger
Nodes 30
Apps 3
Views 120
Downloads 84

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 (30)

/

Get current date

Code

#1

Sticky Note3

Sticky Note

#2

Get last 10 liked tracks

If

#3

Check if track is saved

Noco Db

#4

Is not saved

If

#5

Create song entry

Noco Db

#6

Get all user playlist

If

#7

Sticky Note4

Sticky Note

#8

Get monthly playlist

Filter

#9

Get playlist in DB

Noco Db

#10

Monthly playlist exist in Spotify ?

If

#11

Playlist exist in DB ?

If

#12

Create playlist in Spotify

If

#13

Create playlist in DB1

Noco Db

#14

Create playlist in DB

Noco Db

#15

Merge

Merge

#16

Clean op

No Op

#17

Clean op2

No Op

#18

Get this month playlist in DB

Noco Db

#19

Get this month tracks in DB

Noco Db

#20

Add song to the playlist

If

#21

For each tracks in liked song

Split In Batches

#22

For each monthly tracks in DB

Split In Batches

#23

Get this month tracks in Spotify

If

#24

Filter1

Filter

#25

Song is not present in the playlist ?

If

#26

Clean op1

No Op

#27

Sticky Note5

Sticky Note

#28

Schedule Trigger

Schedule Trigger

#29

End

No Op

#30