Skip to content

Get rate limit status for the Github Apps installed #43215

Answered by parmou
parmou asked this question in API and Webhooks
Discussion options

You must be logged in to vote

After juggling for two days, I was finally able to get the rate-limits for GH app.
It was my lack of understanding of GH Apps or Github Apps could have a better documentation, but here is how you do it.
You need to authenticate as an installation for GH App ( https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation ) and then you can use

curl -i -H "Authorization: Bearer <YOUR_INSTALLATION_ACCESS_TOKEN>" -H "Accept: application/vnd.github+json" https://api.github.com/rate_limit

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@parmou
Comment options

@airtower-luna
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by parmou
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
2 participants