{"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":"2138b3a4-720e-4e83-a156-089b0553c87e","catalogType":"api","categories":["developer","data"],"dataPlatform":"bitbucket","dataPlatformLogoUrl":"https://api.sh/logos/bitbucket.png","dataPlatformTranslations":{},"dataProduct":"dev-reference","description":"Get Bitbucket Pipelines 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 pipeline lifecycle state, target branch name, and next page to monitor branch build health, measure ci execution time, and trace failures to commits.","descriptionTranslations":{"ar":"استعرض سجل تشغيل Bitbucket Pipelines لمستودع عام عبر OpenAny REST لمتابعة نتائج التكامل المستمر وربط الإخفاقات بالفروع أو الالتزامات. أرسل workspace/repo أو رابط Bitbucket مع خيارات الفرع والترتيب للحصول على أرقام البناء والحالات والنتائج والمدة دون تشغيل بناء جديد.","ja":"OpenAny REST で Bitbucket 公開リポジトリの Pipelines 実行履歴を取得し、CI 結果や対象ブランチ・コミットを追跡できます。workspace/repo または Bitbucket URL に任意のブランチ・並び順を指定すると、ビルド番号、状態、結果、所要時間、トリガー情報を返します。","zh":"通过 OpenAny REST 查看 Bitbucket 公开仓库的 Pipelines 构建历史，用于跟踪持续集成结果并将失败定位到分支或提交。传入 workspace/repo 或 Bitbucket 链接，可按分支与排序筛选，获取构建号、状态、结果、耗时与触发来源，且不会启动新构建。"},"effectContentHtml":"","executionMode":"sync","id":"870d8be1-203c-451c-837e-2b8dd6e464ae","includedContentHtml":"","inputs":[{"description":"Repository as workspace/repo, or a bitbucket.org link.","location":"query","name":"repo","nullable":false,"required":true,"type":"string"},{"description":"Only builds of this branch.","location":"query","name":"branch","nullable":false,"required":false,"type":"string"},{"description":"Sort order (default -created_on).","enum_values":["-created_on","created_on"],"location":"query","name":"sort","nullable":false,"required":false,"type":"string"},{"description":"Page number (default 1). Pass `next_page` back as `page`; null on the last page.","location":"query","name":"page","nullable":false,"required":false,"type":"integer"},{"description":"Results per page, 1-100 (default 25).","location":"query","name":"limit","nullable":false,"required":false,"type":"integer"},{"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 pipelines API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eBitbucket Pipelines API\u003c/h2\u003e\n\u003cp\u003ePass a workspace/repo identifier or bitbucket.org link in the repo query parameter, with optional branch, sort (default -created_on), page and limit (1–100, default 25). The pipelines array returns build numbers, states, results, commit hashes, durations and creator metadata.\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 branch, sort (default -created_on), page, limit (1–100, default 25), raw=0, fields and fresh=1.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Bitbucket pipelines 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\u003eMonitor branch build health\u003c/strong\u003e: Filter by branch to check recent pipeline results on main or release branches.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eMeasure CI execution time\u003c/strong\u003e: Compare duration_seconds and build_seconds_used across recent build numbers.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTrace failures to commits\u003c/strong\u003e: Pair failed results with commit hashes and creator metadata before inspecting source changes.\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\u003epipelines[].build_number\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSequential Bitbucket pipeline build number\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epipelines[].state\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePipeline lifecycle state\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epipelines[].result\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFinal build outcome when completed\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epipelines[].branch\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTarget branch name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epipelines[].commit\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCommit hash built by the pipeline\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epipelines[].trigger\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTrigger type that started the run\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epipelines[].duration_seconds\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTotal execution duration in seconds\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epipelines[].url\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDirect pipeline URL on Bitbucket\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003enext_page\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNext page number, or null on the final page\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/pipelines \\\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/870d8be1-203c-451c-837e-2b8dd6e464ae\"\u003ePublished Bitbucket Pipelines 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 format should I use for the repo parameter?\u003c/h3\u003e\n\u003cp\u003ePass workspace/repo such as atlassian/aui, or pass a full bitbucket.org repository link.\u003c/p\u003e\n\u003ch3\u003eCan this endpoint trigger or stop a Bitbucket pipeline?\u003c/h3\u003e\n\u003cp\u003eNo. It is a read-only GET operation that lists public pipeline records without starting or altering builds.\u003c/p\u003e\n\u003ch3\u003eHow is pipeline history ordered by default?\u003c/h3\u003e\n\u003cp\u003eResults default to sort=-created_on (newest first). You can override sort as needed.\u003c/p\u003e\n\u003ch3\u003eHow do I paginate through older builds?\u003c/h3\u003e\n\u003cp\u003eUse page (default 1) and limit (1–100, default 25). Pass next_page back as page until it is null.\u003c/p\u003e\n\u003ch3\u003eWhat is the difference between state and result?\u003c/h3\u003e\n\u003cp\u003estate indicates the pipeline lifecycle stage, while result reports the final outcome once execution completes.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass the 24-hour cache or shrink JSON size?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1 to fetch live runs, raw=0 to omit bulky raw blocks, or fields to select specific paths.\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-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\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/bitbucket/bitbucket-repository-api\"\u003eBitbucket Repository API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/bitbucket/bitbucket-pipelines-api?offering=870d8be1-203c-451c-837e-2b8dd6e464ae","providerId":"apish","publicPath":"/v1/agent-apis/apish/bitbucket/v1/pipelines","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":{"branch":null,"cached":false,"count":25,"credits_used":1,"next_page":2,"page":1,"pipelines":[{"branch":"BESECART-3480_aui","build_number":14542,"build_seconds_used":414,"commit":"682ba878894e91e6e528c01030767e0287a77b43","completed_at":"2025-06-10T06:24:31.737475482Z","created_at":"2025-06-10T06:17:24.957391773Z","creator":{"avatar":null,"display_name":null,"nickname":null,"type":"user","url":null,"uuid":"{18485dd2-d374-46f3-b21c-a79d4257817e}"},"duration_seconds":414,"pipeline":"docs-index-deployment","ref_type":"branch","result":"FAILED","state":"COMPLETED","trigger":"MANUAL","url":"https://bitbucket.org/atlassian/aui/pipelines/results/14542","uuid":"{afed4f12-e6f6-4e93-96c7-0d615b95363c}"},{"branch":"issue/DCA11Y-1655-fixing","build_number":14541,"build_seconds_used":269,"commit":"add22b2bf0b99d0cccefb639cbf8ca1fee635b3d","completed_at":"2025-05-16T06:00:04.651471656Z","created_at":"2025-05-16T05:55:18.15338187Z","creator":{"avatar":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/FN-2.png","display_name":"Filip Nowakowski","nickname":"Filip Nowakowski","type":"user","url":"https://bitbucket.org/%7Bb42d7a4b-e7ad-4849-bc59-600c8129b033%7D/","uuid":"{b42d7a4b-e7ad-4849-bc59-600c8129b033}"},"duration_seconds":269,"pipeline":"docs-index-deployment","ref_type":"branch","result":"FAILED","state":"COMPLETED","trigger":"MANUAL","url":"https://bitbucket.org/atlassian/aui/pipelines/results/14541","uuid":"{e09603d7-2497-40c8-98a5-f78b0e374be0}"},"… 23 more"],"repo":"atlassian/aui","total":14538}}],"seoDescription":"Get Bitbucket Pipelines 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:38:53.979Z","usageInstructionsHtml":""}}