{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"966e078c-79d2-4054-bf71-38bca0a697ff","catalogType":"api","categories":["developer","data"],"dataPlatform":"bitbucket","dataPlatformLogoUrl":"https://api.sh/logos/bitbucket.png","dataPlatformTranslations":{},"dataProduct":"dev-reference","description":"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.","descriptionTranslations":{"ar":"استرجع بيانات مستودع Bitbucket عام عبر OpenAny REST للتحقق من هوية المشروع وإعدادات الفرع الرئيسي وإحصاءات التعاون. أرسل workspace/repo أو رابط Bitbucket للحصول على UUID والوصف واللغة وسياسة التفرع وعدد المتابعين والتفرعات وروابط الاستنساخ.","ja":"OpenAny REST で Bitbucket 公開リポジトリのメタデータを取得し、プロジェクト識別、メインブランチ設定、各種件数を確認できます。workspace/repo または Bitbucket URL を指定すると、UUID、説明、言語、フォーク方針、ウォッチャー数・フォーク数、クローン URL を返します。","zh":"通过 OpenAny REST 获取 Bitbucket 公开仓库详情，用于核验项目身份、默认分支配置及协作计数。传入 workspace/repo 或 Bitbucket 链接，即可获取 UUID、简介、语言、分叉策略、关注与分叉计数、所属项目及克隆链接。"},"effectContentHtml":"","executionMode":"sync","id":"e42f8591-dae0-484b-b9e1-76b2a0f1ae65","includedContentHtml":"","inputs":[{"description":"Repository as workspace/repo, or a bitbucket.org link.","location":"query","name":"repo","nullable":false,"required":true,"type":"string"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"Native CSV/NDJSON record selector; it has no effect on this JSON-only product.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/bitbucket.png","method":"GET","name":"Bitbucket repository API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eBitbucket Repository API\u003c/h2\u003e\n\u003cp\u003eSend 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.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired query: repo (workspace/repo or bitbucket.org URL). Optional raw (0 omits raw blocks), fields and fresh (1 bypasses the 24-hour cache).\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Bitbucket repository API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eVerify repository metadata\u003c/strong\u003e: Confirm UUID, SCM type, main branch and fork policy before integrating a Bitbucket project.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eEnrich software catalogs\u003c/strong\u003e: Attach language, project key, description and clone URLs to a workspace/repo reference.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePrepare source or CI calls\u003c/strong\u003e: Read mainbranch before querying the Bitbucket Repository Source or Pipelines APIs.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efull_name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eWorkspace and repository slug\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003euuid\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBitbucket repository UUID\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003edescription\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePublic repository description\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003elanguage\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePrimary programming language\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003emainbranch\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eConfigured main branch name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003escm\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource control system type\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efork_count\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRepository fork count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ewatcher_count\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRepository watcher count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eclone_urls[].href\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRepository clone URL\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/bitbucket/v1/repository \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode output=json \\\n  --data-urlencode repo=atlassian/aui\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe 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.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/e42f8591-dae0-484b-b9e1-76b2a0f1ae65\"\u003ePublished Bitbucket Repository API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhat inputs identify the repository?\u003c/h3\u003e\n\u003cp\u003ePass workspace/repo such as atlassian/aui, or pass a full bitbucket.org repository URL in repo.\u003c/p\u003e\n\u003ch3\u003eDoes this endpoint return repository files or pull requests?\u003c/h3\u003e\n\u003cp\u003eNo. It returns repository-level metadata. Use the Bitbucket Repository Source API or Pull Request API for files and PRs.\u003c/p\u003e\n\u003ch3\u003eWhat clone protocols appear in clone_urls?\u003c/h3\u003e\n\u003cp\u003eclone_urls lists available clone endpoints with their protocol name and href URL as reported by the source.\u003c/p\u003e\n\u003ch3\u003eAre fork_count and watcher_count quality scores?\u003c/h3\u003e\n\u003cp\u003eNo. They are raw platform counts that reflect public repository activity at retrieval time.\u003c/p\u003e\n\u003ch3\u003eHow do I get fresh data instead of a cached response?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1 to bypass the 24-hour cache; add raw=0 to omit bulky raw source blocks.\u003c/p\u003e\n\u003ch3\u003eAre CSV or NDJSON formats available?\u003c/h3\u003e\n\u003cp\u003eNo. This OpenAny product returns JSON only; omit output or use output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/bitbucket/bitbucket-pipelines-api\"\u003eBitbucket Pipelines API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/bitbucket/bitbucket-pull-request-api\"\u003eBitbucket Pull Request API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/bitbucket/bitbucket-repositories-api\"\u003eBitbucket Repositories API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/bitbucket/bitbucket-repository-api?offering=e42f8591-dae0-484b-b9e1-76b2a0f1ae65","providerId":"apish","publicPath":"/v1/agent-apis/apish/bitbucket/v1/repository","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"output":"json","repo":"atlassian/aui"}},"response_body":{"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"}}],"seoDescription":"Get Bitbucket Repository data via REST or MCP powered by Apish. Pay per call, no subscription. Structured JSON output with one OpenAny API key.","updatedAt":"2026-12-03T02:54:59.541Z","usageInstructionsHtml":""}}