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

Why does my code return an error finding devices?

Why does my code return an error finding devices?

I have some code to get my token
and this code to get my available players
def find_player(token):
url = "https://api.spotify.com/v1/me/player/devices"
headers = {
"Authorization": f"Bearer {token}"
}
response = requests.get(url, headers=headers)
print(response.content)
print(response.status_code)
Reply
1 Reply

How did you get the Bearer Authorization token?

XimzendRising 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