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

HTTP 403 from Spotify API with message "Your client does not have permission to get URL ..."

HTTP 403 from Spotify API with message "Your client does not have permission to get URL ..."

Plan

Premium

Country

United States

 

My Question or Issue

I'm using the Spotify API to develop an integration. I stopped working on it for a bit, and just started picking it back up today. Now, I get an HTTP 403 when making any request, with the error "Your client does not have permission to get URL ... from this server." (This is code that was working about a year ago.)

 

Even when making the most basic request from the "Request an access token" section of the "Getting started" guide, I get this error.

For example, for this request (client secret redacted on purpose):

curl -X POST "https://accounts.spotify.com/api/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=74945e5986c34168bc6231500f9dae05&client_secret=REDACTED"

I get this response:

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>403 Forbidden</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Forbidden</h1>
<h2>Your client does not have permission to get URL <code>/api/token</code> from this server.</h2>
<h2></h2>
</body></html>

 

I tried making a new app in the developer dashboard, with a new Client ID and Client Secret, and am still running into the same issue.

 

Is it possible Spotify has banned my IP address? I can't think of another reason why this would be happening.

 

Edit: I tried making that exact same request from a different IP address, and it worked, so it really does seem like Spotify has banned my IP here. If someone from Spotify is able to help here, I can share the IP of my server with you over DM.

Reply
3 Replies

Hello! We're currently investigating this issue. Can you send a private message with the following info:

  • Your IP address
  • Hosting provider
  • A complete request/response (with headers) that is failing? Assuming you're getting HTTP 403?

 

You also mentioned that trying from a different IP, was this also from your hosting provider or?

 

Thanks!

felixmff_0-1700560995951.png

Same issue, here. Request works on local machine, but on vps fails. Is there another way to contact you? However, I am not able to send a private message.

felixmff_1-1700561109832.png

 

I'm experiencing the same issue (403 forbidden error on Spotify API, v2) seems to be that Spotify API it's blocking us via IP, since I can make all API calls using my dev machine without any problem.

Suggested posts