What a limit is
A rate limit caps how many requests you can make in a period. When you pass it, the API returns a 429 status. Treat that as a signal to slow down, not as an outage.
Spend requests wisely
Cache responses, poll live matches more often than scheduled ones, and request only the fields and dates you need.
import time, requests
def get(url, tries=4):
for i in range(tries):
r = requests.get(url, headers={"x-api-key": KEY})
if r.status_code != 429:
return r
time.sleep(2 ** i)Why backoff works
Backoff doubles the wait after each 429, which gives the limit time to reset.
Next step: tell us what you are building and we will point you to the right endpoints.