Dev.to
7/21/2026

The original title is "Automate Spotify and YouTube Playlists - Chapter 2: Setting Up Spotify"
Original: Automate Spotify and YouTube Playlists - Chapter 2: Setting Up Spotify
Short summary
A step-by-step tutorial for setting up Spotify API access as part of a YouTube-to-Spotify playlist sync project. Walks through creating a Spotify developer app, obtaining Client ID and Client Secret, and completing the OAuth authorization flow to get a long-lived Refresh Token using curl. The guide is beginner-friendly with exact URLs and copy-paste commands, though it is not AI-related.
- •Create a Spotify developer app to get Client ID and Client Secret
- •Complete a one-time OAuth flow to obtain a Refresh Token for automated access
- •Use curl to exchange the authorization code for a long-lived refresh token
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



