How to get GitHub request limit state? #23857
-
Hi! We would like to monitor the number of requests we generate, however, we don’t know how to retrieve the information we need. We tested the following queries:
None of them, however, returned results related to the above-mentioned command Thanks for your help, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ratelimit information is provided in the headers for every API response, no matter which endpoint you use. Check the header fields with names starting with
Resources in the REST API - GitHub Docs |
Beta Was this translation helpful? Give feedback.
-
Thanks. It worked :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
I have been marked and i get API rate limit excedeed for user ID XXXXX |
Beta Was this translation helpful? Give feedback.
Ratelimit information is provided in the headers for every API response, no matter which endpoint you use. Check the header fields with names starting with
x-ratelimit
. Their meanings are described in the docs:Resources in the REST API - GitHub Docs