Hi
Just getting started with the API, i spent yesterday having great progress, everything worked smoothly. I probably called the API lets say <100 times over the space of 8 hours. Went to bed, woke up, ran my script and immediately had "rate limited". I have tried this in python, node and curl and always the same.
curl -i "https://api.spotify.com/v1/artists/4Z8W4fKeB5YxbusRsdQVPb" \
-H "Authorization: Bearer XXX "
HTTP/2 429
cache-control: private, max-age=0
retry-after: 16853
access-control-allow-origin: *
access-control-allow-headers: Accept, App-Platform, Authorization, Content-Type, Origin, Retry-After, Spotify-App-Version, X-Cloud-Trace-Context, client-token, content-access-token
access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE, PATCH
access-control-allow-credentials: true
access-control-max-age: 604800
content-length: 17
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
date: Tue, 24 Sep 2024 10:34:02 GMT
server: envoy
via: HTTP/2 edgeproxy, 1.1 google
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Too many requests
So i understand rate limits etc. But i dont understand how this is the case 12hours later after my last API call (which went fine with no issues), after a day where I only did max 100 calls in that day... I immediately get 429. I don't want to raise a quota raise request as (1) I can't as i dont meet the criteria and (2) I really dont think thats the issue, I should be well within the limits at such a low rate.
I made a new app to get a new client/secret but that had the same effect.
Anyone seen this before? Anyone have any guidance?
Much appreciated!
/lee
Plan
Free/Premium
Country
Device
(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)
Operating System
(iOS 10, Android Oreo, Windows 10,etc.)
My Question or Issue