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

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