How to prevent HTTP 429: Too many requests #80
-
I don't know if this is the correct place to ask this question, but I'm a Mendix developer with a hobby project/application where I made use of the Ergast API. I changed the URL to this new version, but for the lap times calls for a race, I'm getting a 429: Too many requests response. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey Martin, The error occurs because you've hit our rate limit of 4 per second, or 500 per hour (This will likely decrease in the future once we set up self-service API Tokens). For everyone who may read this, there are 2 options:
In your case I suspect option 2 isn't required and instead more efficient requests / caching would be best. What data are you trying to retrieve? What api requests are you making? |
Beta Was this translation helpful? Give feedback.
Hey Martin,
The error occurs because you've hit our rate limit of 4 per second, or 500 per hour (This will likely decrease in the future once we set up self-service API Tokens).
If most of your requests are getting 429s its likely because you've hit the hourly limit.
For everyone who may read this, there are 2 options:
In your case I suspect option 2 isn't required and instead more efficient requests / caching would be best.
What data are you trying to retrieve? What api requests are you making?