There is this API to GET all pull requests within a repository.
By default, it only shows open pull requests so you don't have to do any filtering, however, if you wanted to, here are some capabilities of the Bitbucket API:
You can filter with the q parameter. After URL-decoding the value you see we are passing ing 'state="MERGED" or state="OPEN" or state="DECLINED"' as our filtering criteria. Here's more information on how it works. https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering (again, the default shows status=OPEN so you don't need this parameter.
The next parameter is `fields`. This let's you include/exclude/explicitly declare fields you'd like returned. Here I'm only returning the PR title and status for demonstration.
The final parameter, `pagelen` returns 50 results instead of the maximum of 10.
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events