Skip to main content

Spotify to YouTube playlist synchronization

Workflow preview

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.

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

  • 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 !