Use the Bitbucket Cloud REST APIs: https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html
$ curl https://api.bitbucket.org/2.0/repositories/{accountname}
OAuth on Bitbucket Cloud: https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html