Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Scopes

Scopes

I am trying to create a program that deletes songs from a playlist thot are older than a week with python. But I need to use a scope for this. Where do i ask for this scope?

Reply
6 Replies

You are probably going to want to include 

scopes to your authorization request so that you can access these scopes to remove songs from public and private playlists. 

 

You can find more information here: https://developer.spotify.com/documentation/general/guides/scopes/

Yes, I read the article, but I coudn't find where to add the scope by the token data or anywhere else.

So when you first make your authorization request to: https://accounts.spotify.com/authorize 

You have the optional query parameter 'Scope' in which you can define a list of scopes you want your application to access 

Scope:
A space-separated list of scopes.If no scopes are specified, authorization will be granted only to access publicly available information: that is, only information normally visible in the Spotify desktop, web, and mobile players.

how can I check if I have the necessary scopes?

The necessary scopes are listed at almost the top of each endpoint reference page.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

To clarify, if I were following the documentation's node.js example would it look something like the following?

 

scope: 'user-read-private playlist-read-private playlist-read-collaborative user-top-read user-read-recently-played',

Suggested posts

Type a product name