Developer Tools
Bitbucket logo

Bitbucket API

bitbucket.org

Bitbucket - public Git repositories, source files, documentation, and pricing.

Actions
6
Category
Developer Tools
Login
Not required
Output
JSON

Call the Bitbucket API

Submit a task, then poll the job until it settles. This example runs act_bitbucket_org_marketing_homepage.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_bitbucket_org_marketing_homepage",
    "params": {}
  }'

6 actions on bitbucket.org

Read

  • Marketing Homepage

    act_bitbucket_org_marketing_homepageread1 credit / call

    Returns the marketing homepage content with product positioning and navigation.

  • Repository Branch Reference

    act_bitbucket_org_repo_branch_refread1 credit / call

    Returns branch metadata including commit hash, date, author, and message for a repository.

    workspace_slug
    string · required
    repo_slug
    string · required
    branch_name
    string · required
  • Repository Details

    act_bitbucket_org_repo_detailsread1 credit / call

    Returns repository statistics including branch count, open pull requests, forks, size, and last updated.

    workspace_slug
    string · required
    repo_slug
    string · required
  • Repository File Content

    act_bitbucket_org_repo_file_content_renderedread1 credit / call

    Returns rendered content of a repository source file at a given commit and path.

    workspace_slug
    string · required
    repo_slug
    string · required
    commit_hash
    string · required
    file_path
    string · required
  • Workspace Repository Listing

    act_bitbucket_org_workspace_repo_listingread2 credits / call

    Returns public repositories in a workspace with pagination, sort order, and optional search.

    workspace_slug
    string · required
    page
    string
    pagelen
    string
    search_query
    string

Write

Write actions change state on bitbucket.org and run as the account you connect.

  • Pricing Plans

    act_bitbucket_org_pricing_page_graphqlwrite2 credits / call

    Returns pricing plan tiers, feature groups, and comparison details.

    locale
    string · required
    url_slug
    string

Bitbucket API questions

Is there an API for Bitbucket?
Bitbucket does not offer a public data API for this, but Anakin Wire provides 6 maintained endpoints for bitbucket.org. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Bitbucket data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when bitbucket.org changes its markup, Anakin updates the action.
Do I need a Bitbucket account?
No. Every Bitbucket action listed here runs anonymously — no account and no credentials required.
What does the Bitbucket API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Developer Tools APIs

All Developer Tools sites