- Create an application in the Spotify Developer Dashboard
- Click on the
Edit settings
button - Set the
Redirect URIs
to a convenient location (doesn't matter) - Save the given
Client ID
along with theClient Secret
- Click on the
- Retrieve the access code
- Visit the following URL after replacing
$CLIENT_ID
,$SCOPE
, and$REDIRECT_URI
https://accounts.spotify.com/authorize?response_type=code&client_id=$CLIENT_ID&scope=$SCOPE&redirect_uri=$REDIRECT_URI
- Visit the following URL after replacing
- You can choose scope(s) by visiting the Spotify API docs