Announcements

Help Wizard

Step 1

NEXT STEP

403 forbidden error

403 forbidden error

 

Plan

Free

Country

India

 

 

My Question or Issue

When I try to hit these following endpoints it returns me 403 forbidden error
The endpoints are listed below:
https://api.spotify.com/v1/me/tracks

https://api.spotify.com/v1/me/top/artists


The access token is completely valid


here is the list of scopes I am using: 

'user-read-private',
'user-read-email',
'playlist-read-private',
'playlist-read-collaborative',
'playlist-modify-public',
'playlist-modify-private',
'user-library-read',
'user-library-modify',
'user-read-playback-state',
'user-modify-playback-state',
'user-read-currently-playing',
'user-follow-read',
'user-follow-modify',
'user-top-read',
'ugc-image-upload',
'app-remote-control',
'streaming',
'user-read-recently-played',
'user-read-playback-position',
'user-top-read',
'user-read-recently-played',
 
 
 
When I try to hit the same endpoints using a proxy api site (tryapis.com) it works but in my app it doesnt
Reply
1 Reply

Please post your code on here so someone can check it for mistakes. Make sure to remove your client_id and client_secret.

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.

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random