Tips for avoiding the API rate limit #77255
Replies: 7 comments 3 replies
-
Hi @skedwards88 - have there been any recent changes with GitHub rate limiting? My product creates repositories on behalf of our users, using a GitHub app, and authenticating on behalf of the user. In the last hour, we have started being rate limited across the board as we try and create a repository on behalf of our user. Our platform is now unable to create new repos. Would love to know if something changed. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
Quick way of checking your rate limit for the REST API: https://github.com/AndrewOfC/githubpy#quick-rate-limit-check |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hi @skedwards88 👋 thank you for the resources!
Does upgrading to GitHub Enterprise Cloud only impact the rate limits of GitHub apps we are using? Or does it also impact the rate limits for our Github app that our customers use |
Beta Was this translation helpful? Give feedback.
-
How do I remove my rate limit on roblox? |
Beta Was this translation helpful? Give feedback.
-
About rate limits
GitHub uses rate limits to ensure that the API remains available for all users.
There are two types of rate limits: primary and secondary. Primary rate limits determine the total number of requests that you can make in one hour. Secondary rate limits determine how quickly you can make multiple requests within a period of time. Visit the documentation to learn more about rate limits for the REST API and GraphQL API.
Tips to avoid exceeding the rate limits
What to do if you exceed the rate limit
If you receive a rate limit error, you should stop making requests temporarily according to these guidelines:
retry-after
response header is present, you should not retry your request until after that many seconds has elapsed.x-ratelimit-remaining
header is0
, you should not make another request until after the time specified by thex-ratelimit-reset
header. Thex-ratelimit-reset
header is in UTC epoch seconds.Get a higher rate limit
You can't increase your secondary rate limit, but you can increase your primary rate limit:
Beta Was this translation helpful? Give feedback.
All reactions