OpenAny
Get API keyAPI Key
APIDataDeveloper

bitbucket logo
Bitbucket Repository API

Get Bitbucket Repository data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, repo, and retrieve structured data including workspace and repository slug, bitbucket repository UUID, public repository description, primary programming language, and configured main branch name to verify repository metadata, enrich software catalogs, and prepare source or ci calls.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Bitbucket Repository API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Bitbucket Repository API

Bitbucket Repository API

Send repo (workspace/repo or bitbucket.org link) in the query string, with optional raw=0, fields and fresh=1. The response returns repository identifiers, owner and project metadata, mainbranch, size_bytes, fork_count, watcher_count and clone_urls.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: repo (workspace/repo or bitbucket.org URL). Optional raw (0 omits raw blocks), fields and fresh (1 bypasses the 24-hour cache).
Selected implementation apish · Bitbucket repository API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Verify repository metadata: Confirm UUID, SCM type, main branch and fork policy before integrating a Bitbucket project.
  • Enrich software catalogs: Attach language, project key, description and clone URLs to a workspace/repo reference.
  • Prepare source or CI calls: Read mainbranch before querying the Bitbucket Repository Source or Pipelines APIs.

Returned Data

Field Meaning
full_name Workspace and repository slug
uuid Bitbucket repository UUID
description Public repository description
language Primary programming language
mainbranch Configured main branch name
scm Source control system type
fork_count Repository fork count
watcher_count Repository watcher count
clone_urls[].href Repository clone URL

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/bitbucket/v1/repository \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode repo=atlassian/aui

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published Bitbucket Repository API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Repository as workspace/repo, or a bitbucket.org link.
Optional parameters (5)
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
Native CSV/NDJSON record selector; it has no effect on this JSON-only product.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
Bitbucket repository API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/bitbucket/v1/repository
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
repoURL query parametersquerystringYes

Repository as workspace/repo, or a bitbucket.org link.

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.

enum: "json"

recordsURL query parametersquerystringNo

Native CSV/NDJSON record selector; it has no effect on this JSON-only product.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • avatarstring
  • cachedboolean
  • clone_urlsobject[]
    • hrefstring
    • namestring
  • created_atstring
  • credits_usedinteger
  • descriptionstring
  • fork_countinteger
  • fork_policystring
  • full_namestring
  • has_issuesboolean
  • has_wikiboolean
  • is_privateboolean
  • languagestring
  • mainbranchstring
  • namestring
  • ownerobject
    • avatarstring
    • display_namestring
    • nicknamestring
    • typestring
    • urlstring
    • uuidstring
  • parentnull
  • projectobject
    • keystring
    • namestring
  • scmstring
  • size_bytesinteger
  • slugstring
  • updated_atstring
  • urlstring
  • uuidstring
  • watcher_countinteger
  • websitestring
  • workspacestring

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Official documentation response · Supplier-tr

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 6

    Review these request fields before running. Keep the published provider and request method unchanged.

    repo
    Repository as workspace/repo, or a bitbucket.org link.
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
    records
    Native CSV/NDJSON record selector; it has no effect on this JSON-only product.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/bitbucket/v1/repository?output=json&repo=atlassian%2Faui' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "avatar": "https://bytebucket.org/ravatar/%7B585074de-7b60-4fd1-81ed-e0bc7fafbda5%7D?ts=86317",
      "cached": false,
      "clone_urls": [
        {
          "href": "https://bitbucket.org/atlassian/aui.git",
          "name": "https"
        },
        {
          "href": "name@example.com:atlassian/aui.git",
          "name": "ssh"
        }
      ],
      "created_at": "2011-10-20T03:33:16.840807+00:00",
      "credits_used": 1,
      "description": "AUI - Atlassian User Interface library.",
      "fork_count": 0,
      "fork_policy": "allow_forks",
      "full_name": "atlassian/aui",
      "has_issues": false,
      "has_wiki": false,
      "is_private": false,
      "language": "javascript",
      "mainbranch": "master",
      "name": "aui",
      "owner": {
        "avatar": "https://bitbucket.org/account/atlassian/avatar/",
        "display_name": "Atlassian",
        "nickname": "atlassian",
        "type": "team",
        "url": "https://bitbucket.org/%7B02b941e3-cfaa-40f9-9a58-cec53e20bdc3%7D/",
        "uuid": "{02b941e3-cfaa-40f9-9a58-cec53e20bdc3}"
      },
      "parent": null,
      "project": {
        "key": "SFP",
        "name": "DC Frontend Platform"
      },
      "scm": "git",
      "size_bytes": 155031915,
      "slug": "aui",
      "updated_at": "2026-11-05T09:23:39.322632+00:00",
      "url": "https://bitbucket.org/atlassian/aui",
      "uuid": "{585074de-7b60-4fd1-81ed-e0bc7fafbda5}",
      "watcher_count": 4,
      "website": "http://docs.atlassian.com/aui/latest/",
      "workspace": "atlassian"
    }

Common questions

What inputs identify the repository?

Pass workspace/repo such as atlassian/aui, or pass a full bitbucket.org repository URL in repo.

Does this endpoint return repository files or pull requests?

No. It returns repository-level metadata. Use the Bitbucket Repository Source API or Pull Request API for files and PRs.

What clone protocols appear in clone_urls?

clone_urls lists available clone endpoints with their protocol name and href URL as reported by the source.

Are fork_count and watcher_count quality scores?

No. They are raw platform counts that reflect public repository activity at retrieval time.

How do I get fresh data instead of a cached response?

Pass fresh=1 to bypass the 24-hour cache; add raw=0 to omit bulky raw source blocks.

Are CSV or NDJSON formats available?

No. This OpenAny product returns JSON only; omit output or use output=json.

Use Bitbucket Repository API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.