Sync Spotify liked songs to a playlist n8n
This n8n workflow keeps a Spotify playlist in step with your Liked Songs, adding new likes and removing songs you have unliked. It is for listeners who want a shareable playlist that always mirrors their likes, updated on a schedule.
What it does
A schedule trigger reads your liked songs and the playlist, sorts them, and compares the two datasets. Missing tracks are added and old ones are deleted in a loop, and an optional step counts the changes and sends the totals through Gotify.
How to use it
Connect your Spotify account, choose the target playlist, and add a Gotify server if you want the notifications.
More in Other and the n8n workflow library.
Full text
Front matter
name: Spotify Sync Liked Songs to Playlist
description: Triggered on a schedule. Connects Compare Datasets, Filter, Gotify, Loop, Schedule, Sort, Spotify, Stop And Error. ### Spotify add all missing song from your Liked Songs to the Playlist. ### Spotify remove all songs that aren't in your Liked Songs anymore. Run the workflow every 24h at 0 o'clock ## Compare the content of your Liked Songs and the target Playlist # Edit here! ## Change the value to the name of your target playlist. # Edit here! ### You need to add your own spotify account here. ## (Optional) ### Count the number of songs that were deleted ## (Optional) ### Count the number of songs that wer
category: Automation
kind: Workflow
software: Compare Datasets|Filter|Gotify|Loop|Schedule|Sort|Spotify|Stop And Error|SummarizeSpotify Sync Liked Songs to Playlist
Triggered on a schedule. Connects Compare Datasets, Filter, Gotify, Loop, Schedule, Sort, Spotify, Stop And Error. ### Spotify add all missing song from your Liked Songs to the Playlist. ### Spotify remove all songs that aren't in your Liked Songs anymore. Run the workflow every 24h at 0 o'clock ## Compare the content of your Liked Songs and the target Playlist # Edit here! ## Change the value to the name of your target playlist. # Edit here! ### You need to add your own spotify account here. ## (Optional)
Count the number of songs that were deleted ## (Optional)
Count the number of songs that wer
Steps
- Start (manualTrigger)
- Schedule Trigger (scheduleTrigger)
- Sort first added to first item (sort)
- Gotify Send deleted n from x (gotify)
- Loop delete old (splitInBatches)
- Spotify delete old (spotify)
- Edit set Vars (set)
- Edit success to del (set)
- Filter Playlist x (filter)
- Compare Datasets (compareDatasets)
- count added (summarize)
- Loop add missing (splitInBatches)
- Spotify add Missing to x (spotify)
- Edit snapshot to added (set)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note4 (stickyNote)
- Sticky Note5 (stickyNote)
- Sticky Note3 (stickyNote)
- Cound deleted (summarize)
- Sort (sort)
- Set pluri (set)
- Merge (merge)
- Gotify (gotify)
- Edit set intern vars (set)
- Sticky Note6 (stickyNote)
- Sticky Note7 (stickyNote)
- END (noOp)
- Sticky Note8 (stickyNote)
- Sticky Note9 (stickyNote)
- Sticky Note10 (stickyNote)
- Sticky Note11 (stickyNote)
- Sticky Note12 (stickyNote)
- Sticky Note13 (stickyNote)
- Sticky Note14 (stickyNote)
- Sticky Note15 (stickyNote)
- Spotify get Liked Songs (spotify)
- Spotify get all playlists (spotify)
- Spotify get Tracks of X (spotify)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Source: https://github.com/Zie619/n8n-workflows/blob/main/Schedule/1867_Schedule_Filter_Sync_Scheduled.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.