How can i get to know the rate limit of specific GET query at specific time without casting new GET


#1

Hello Guys ,

how can i determine how many GET queries left at any specific time without casting new get_rate_limits query ?

is it even possible ?

any help appreciated


#2

Check the headers returned from the API call you’re using.

X-Rate-Limit-Limit: the allocation of calls to this endpoint per 15 minutes
X-Rate-Limit-Remaining: how many of the allocation you have left
X-Rate-Limit-Reset: the time when your allocation will reset

Using these values you can track how many API calls you have left. This is all covered at https://dev.twitter.com/rest/public/rate-limiting.