Visit your Spotify Developers Dashboard then select or create your app. Note down your Client ID, Client Secret to use in next step, and set the Redirect URI to .
Open Spotify Developers Dashboard
Already got the required data? Skip this step
Enter your Spotify App Settings Data
Get Spotify Access Code
Go Back
Here's your Spotify Refresh Token
Save this refresh token in a safe, private place. This token will last for a very long time and can be used to generate a fresh access_token whenever it is needed.