Finding out request left until I hit the API rate limit

This question is in reference to Atlassian Documentation: Rate limits

I will like to find out how many request are left before I hit the API rate limit. Ideally also the timestamp when the limit will be reset. GitHub returns this information on every API response headers:

X-RateLimit-Limit,
X-RateLimit-Remaining,
X-RateLimit-Reset

Something similar would be nice to have, or maybe there is a separate API call to retrieve this info?

 

2 answers

0 votes

That would certainly be nice and this is something we are looking into. At the moment however there is no way to predict when rate limiting will occur.

You could keep track yourself by counting your requests and comparing them to the hourly allotment to the published maximums: https://confluence.atlassian.com/bitbucket/rate-limits-668173227.html#Ratelimits-Requestlimits but I will agree that this is cumbersome.

The linked document does not help anyone using the endpoints not covered by the listed 3.  Your own documentation lists eight top level endpoints, not to mention all the sub-endpoints.  What are the limits for these endpoints?

 

 

Are the rate limits per user per hour, or per team per hour?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 6 hours ago in Canada

Happy New Year - First AUG of the year - great success

Hi Everyone, Hope everyone had a great holiday season and is ready for an exciting 2019.  We had our first AUG last night featuring Tempo Timesheets.  A great presentation and lots of int...

10 views 0 1
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you