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

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