Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
curl \ -H "Authorization: $API_KEY" \ https://api.bitbucket.org/2.0/user
curl \ -H "Authorization: $API_KEY" \ https://api.bitbucket.org/2.0/snippets
curl \ -H "Authorization: $API_KEY" \ https://api.bitbucket.org/2.0/workspaces