Announcements
We're aware of some login/playback issues at the moment. More info here.

Help Wizard

Step 1

NEXT STEP

404 Error when using Spotify API

404 Error when using Spotify API

Plan

Premium

Country

USA

Device

Desktop Windows 10

Operating System

Windows 10

 

My Question or Issue

I am trying to use the Spotify API server to server authentication and I keep getting a 404 error. I am using the correct client and secret id and have gone through all resources online trying to find a solution.

Untitled.png
Reply
1 Reply

Hey @elinewman13, help's here!

Let's dive into this. You can use export commands (in Terminal) to set these variables for your OS. 

 

export SPOTIPY_CLIENT_ID=client_id_here
export SPOTIPY_CLIENT_SECRET=client_secret_here

// on Windows, use `SET` instead of `export`

 

Alternatively, you can in Python set them with these:

 

os.environ["SPOTIPY_CLIENT_ID"] = "(my client id)"
os.environ["SPOTIPY_CLIENT_SECRET"] = "(my client secret)"

 

There's more information about this here: https://github.com/plamere/spotipy. Let me know if you have any questions.

 

Have a good one,

Hubo 

 

HuboSpotify 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