404 Error when using Spotify API

Reply
Highlighted

404 Error when using Spotify API

Visitor

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
1 Reply
Highlighted

Re: 404 Error when using Spotify API

Rock Star 16
Rock Star 16

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 

 

HuboRock Star 16
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