Skip to main content

🎵 Sync YouTube and Spotify music playlists

Workflow preview

Workflow preview
100%
🎵 Sync YouTube and Spotify music playlists preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow automates the process of updating a Spotify playlist with tracks from a YouTube playlist, ensuring no duplicates are added. Key Components 1. Manual Trigger : Starts the workflow when...

Best for

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

Tools used

n8n-nodes-base.comparedatasets, n8n-nodes-base.set, n8n-nodes-base.spotify, n8n-nodes-base.youtube, n8n-nodes-base.splitinbatches, n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
🎵 Sync YouTube and Spotify music playlists
Workflow name
🎵 Sync YouTube and Spotify music playlists

Workflow Overview

This workflow automates the process of updating a Spotify playlist with tracks from a YouTube playlist, ensuring no duplicates are added.

Key Components

  1. Manual Trigger: Starts the workflow when you click ‘Test workflow’.

  2. Spotify Integration: Retrieves tracks from a specified Spotify playlist.

  3. YouTube Integration: Fetches tracks from a designated YouTube playlist.

  4. Batch Processing: Processes tracks in batches to handle multiple items efficiently.

  5. Track Search: Searches for YouTube tracks on Spotify to find corresponding IDs.

  6. Comparison: Compares existing Spotify tracks with YouTube tracks to identify which ones to add.

  7. Track Addition: Adds new Spotify tracks to the playlist that are not already included.

If you have any questions or need clarification, feel free to ask!

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 - Compare the two Datasets

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

Block 2 - Extract the spotify track ID

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

Block 3 - Extract the Spotify Track ID

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

Block 4 - Find the returned tracks on Spotify

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

Block 5 - Get my tracks inside my playlist

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

Block 6 - Loop Over Items

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

Block 7 - When clicking ‘Test workflow’

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

Block 8 - Sticky Note

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

Block 9 - Sticky Note1

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

Block 10 - Get tracks inside the Spotify Playlist

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

Block 11 - Sticky Note2

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

Block 12 - Add tracks not already in playlist

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

3. Summary Table

Workflow 🎵 Sync YouTube and Spotify music playlists
Complexity intermediate
Nodes 12
Categories Personal Productivity
Author Louis
Published 01 Nov 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2518/2518.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 🎵 Sync YouTube and Spotify music playlists do?

This workflow automates the process of updating a Spotify playlist with tracks from a YouTube playlist, ensuring no duplicates are added. Key Components 1. Manual Trigger : Starts the workflow when...

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.