REST API for Commit Data

{
  "commits": 27,
  "lines_of_code": {
    "added": {
      "average": 17,
      "median": 17,
      "p75": 24,
      "p95": 30,
      "p99": 32,
      "total": 34
    },
    "changed": {
      "average": 28,
      "median": 28,
      "p75": 38,
      "p95": 45,
      "p99": 47,
      "total": 56
    },
    "deleted": {
      "average": 11,
      "median": 11,
      "p75": 13,
      "p95": 15,
      "p99": 15,
      "total": 22
    }
  }
}
CODE

In this release, we’re expanding the Awesome Graphs REST API with new Commits REST API endpoints – a convenient way to access detailed commit data across your Bitbucket Cloud workspaces and repositories. Use the new endpoints to:

  • Query commits at the workspace or repository level and retrieve detailed commit metadata

  • Analyze code changes with aggregated commit statistics (files changed, lines added, and removed)

To start using the Commits REST API:

  1. Install Awesome Graphs on your Bitbucket Cloud workspace.
  2. Generate an authentication token in the app's settings.

  3. Follow the REST API documentation for the full list of available endpoints and parameters.