Overview
The Bitbucket REST API (v2) provides programmatic access to Bitbucket Cloud repositories, pull requests, pipelines, and user accounts, enabling you to automate code review workflows and integrate Bitbucket into your CI/CD toolchain. OAuth 2.0 is used for authentication, making it suitable for building third-party integrations and developer tools. It is part of the Atlassian developer platform, sharing conventions with Jira and Confluence APIs.
Beginner Tip
Start with the Bitbucket OAuth 2.0 consumer flow to get an access token, then use it as a Bearer token in the Authorization header. The API Explorer in the Atlassian docs lets you test endpoints interactively before writing code.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"status": "success",
"data": {
"result": "Data from Bitbucket",
"description": "Bitbucket API",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
full_name Workspace and repository slug combined, e.g., workspace/repo-name. description User-provided description of the repository. is_private Whether the repository is private or publicly accessible. scm Source control management type, either git or hg. links.clone Array of clone URLs (HTTPS and SSH) for the repository. created_on ISO 8601 timestamp of when the repository was created. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://developer.atlassian.com/bitbucket/api/2/reference/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Alternatives to Bitbucket
Technical alternatives for different use cases.
Atlassian ecosystem integration with Jira and Confluence
Public repository hosting and community features
Teams already using Jira and Atlassian tools
Similar APIs
View All →GitHub
⭐ Beginner's PickThe GitHub REST API gives you programmatic access to nearly everything on GitHub — repositories, issues, pull requests, commits, users, organizations, GitHub Actions, and more.
Gitlab
The GitLab REST API provides comprehensive programmatic control over GitLab projects, including repositories, merge requests, pipelines, issues, CI/CD variables, and user management.
Google Docs
The Google Docs API provides full programmatic control over Google Docs documents, including reading content, inserting text, applying styles, and managing document structure.
Google Keep
The Google Keep API allows applications to read and create notes in Google Keep, including text notes, lists, and notes with attachments.
DomainDb Info
⭐ Beginner's PickDomainsDB.info provides a searchable database of registered domain names, allowing you to find all domains containing specific keywords, phrases, or patterns across various TLDs.