Skip to content

How can I Get 403 Forbidden for endpoint 'users'? #114738

Closed Answered by mapluisch
shivam-test asked this question in API and Webhooks
Discussion options

You must be logged in to vote

Hey Shivam,

you get a HTTP/2 403 response once your API rate limit is exceeded (5000 requests).

Add parameter -i to see how many requests remain until you hit your limit, i.e. curl -i -L (and so on).

I've just tested it on my end - after hitting the x-ratelimit-limit, you receive a 403 along with the message

{"message":"API rate limit exceeded for user ID [removed]. If you reach out to GitHub Support for help, please include the request ID [removed].","documentation_url":"https://docs.github.com/rest/overview/rate-limits-for-the-rest-api"}

Please be aware that the rate limit is user ID specific and not token specific.

Hope that helps!

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@shivam-test
Comment options

Answer selected by shivam-test
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions and conversations related to APIs or Webhooks Question
3 participants