Skip to main content

Spotify to YouTube playlist synchronization

Workflow preview

Workflow preview
100%
Spotify to YouTube playlist synchronization preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Spotify to YouTube Playlist Synchronization A workflow that maintains a YouTube playlist in sync with a Spotify playlist, featuring smart video matching and persistent synchronization. Key Features...

Best for

  • Personal Productivity automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.spotify, n8n-nodes-base.if, n8n-nodes-base.supabase, n8n-nodes-base.comparedatasets, n8n-nodes-base.noop, n8n-nodes-base.scheduletrigger, n8n-nodes-base.wait, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Lugnicca.

Original n8n.io source

1.1 Workflow description

Title
Spotify to YouTube playlist synchronization
Workflow name
Spotify to YouTube playlist synchronization

Spotify to YouTube Playlist Synchronization

A workflow that maintains a YouTube playlist in sync with a Spotify playlist, featuring smart video matching and persistent synchronization.

Key Features

  • One-way Sync: Spotify playlist → YouTube playlist (additions and deletions)
  • Continuous Monitoring: Automatic synchronization (every hour by default, but you can put any time you want)
  • Smart Video Matching: Considers video length and content relevance
  • Auto-Recovery: Automatically handles deleted YouTube videos
  • Database Backup: Persistent storage using Supabase

Prerequisites

  1. Supabase project with the following table structure:
CREATE TABLE IF NOT EXISTS musics (
    id TEXT PRIMARY KEY,
    title TEXT NOT NULL,
    artist TEXT NOT NULL,
    duration INT8 NOT NULL,
    youtube_video_id TEXT,
    to_delete BOOLEAN DEFAULT FALSE
);
  1. Empty YouTube playlist (recommended as duplicates are not handled)
  2. Configured credentials for YouTube, Spotify, and Supabase APIs
  3. Properly set variables in all "variables" nodes (variables, variables1, variables2, variables3, variables4 (all the same))
  4. Activate the workflow !

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get playlist snapshot

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 2 - Get playlist snapshot1

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 3 - If different snapshot

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 4 - Get all musics

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 5 - Update to_delete to true

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 6 - Add music

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 7 - Compare Datasets

Type / Role
n8n-nodes-base.compareDatasets - compareDatasets
Config choices
Version 2.3

Block 8 - Spotify

Type / Role
n8n-nodes-base.spotify - spotify
Config choices
Version 1

Block 9 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 10 - Get all musics not in youtube playlist

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 11 - Every day at noon

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 12 - Every day at noon + 1mn

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 13 - Every hour

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 14 - Wait 1 hour

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 15 - variables

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Search video

Type / Role
n8n-nodes-base.youTube - youTube
Config choices
Version 1

Block 17 - Get video duration

Type / Role
n8n-nodes-base.youTube - youTube
Config choices
Version 1

Block 18 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 19 - If video duration ~= music duration

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 20 - Add music to playlist

Type / Role
n8n-nodes-base.youTube - youTube
Config choices
Version 1

Block 21 - Add youtube id to row

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 22 - Discord

Type / Role
n8n-nodes-base.discord - discord
Config choices
Version 2

Block 23 - Discord1

Type / Role
n8n-nodes-base.discord - discord
Config choices
Version 2

Block 24 - Set youtube id to NOTFOUND if no matching

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Showing the first 24 of 54 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Spotify to YouTube playlist synchronization
Complexity advanced
Nodes 54
Categories Personal Productivity
Author Lugnicca
Published 05 Feb 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2853/2853.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Spotify to YouTube playlist synchronization do?

Spotify to YouTube Playlist Synchronization A workflow that maintains a YouTube playlist in sync with a Spotify playlist, featuring smart video matching and persistent synchronization. Key Features...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity use case.