Spotify to YouTube Playlist Synchronization

Last edited 70 days ago

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 !

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!