rate_limited (429)
Too many requests in a short time. See rate limits for the buckets: a secret key has its own (50 a second, bursts of 100); a publishable key has its own (20 a second, bursts of 50) and shares the address's bucket (20 a second, bursts of 50) with every other publishable key and every unauthenticated request from that address.
Place outlines have a limit of their own as well: a key is served at most 60 in any 60
seconds. (Their daily quota answers quota_exceeded.)
So does the key list: GET /v1/listings/keys answers a key one request every 2 seconds,
with bursts of 5.
So do webhook endpoints: an account may make 10 registrations and tests
(POST /v1/webhook-endpoints and POST …/{id}/test) in any 10 minutes, and have two
registrations waiting on their ping at once. A registration refused for its body or its URL
doesn't count.
The response carries Retry-After (seconds) and, like every response, RateLimit-Limit,
RateLimit-Remaining and RateLimit-Reset for the bucket that refused.
The address bucket is charged before the key is looked up, so a flood of bad keys from one
address gets 429 rather than 401 once the bucket is empty.
In a browser the 429 is readable by your script: it carries CORS headers (your listed origin's
for your key's own bucket, * for the address's) and exposes Retry-After.
Fix: wait Retry-After seconds and retry; spread bursts out; call from your server with the
sk_ key where you can, and cache what doesn't change between requests.