Bitbucket API
Bitbucket Cloud offers a REST API and app platforms (Forge, Connect) for integrating services, automating operations, and extending its UI.
import requests
url = "https://api.bitbucket.org/2.0/user"
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Accept": "application/json"
}
response = requests.get(url, headers=headers)
response.raise_for_status() # Raise an exception for HTTP errors
print(response.json())Last 50 checks (10 min intervals)