Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

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?

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/ 5 years ago  in Social & Random