Pull Request Statistics REST API
In addition to using the Statistics page of Pull Request Analytics from within Bitbucket, it is possible to directly access statistics endpoints via REST.
This example may be cloned and run with your own Bitbucket pull request data.