I am building a check-script på a CI-env to check for new Pull Requests and run builds for them. The problem I am facing is that I do get alot of 429 errorcodes since I bombard the API to much (multiple repos and every X time-interval).
https://confluence.atlassian.com/bitbucket/rate-limits-668173227.html does not however document how many requests I am allowed to do for the endpoint(s):
/api/2.0/repositories/${project}/${repository}/pullrequests?limit=${limit}&state=OPENAlso the document mentions that you are locked out for an hour which is not the way I "feel" how the API responds. But rather it works again just a few seconds later.
Is there any better way to do these checks and/or any info on how much I will have to throttle my requests?