{"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":"4a9c01a5-79f7-4f60-b33e-de3b8c12b681","catalogType":"api","categories":["developer","data"],"dataPlatform":"bitbucket","dataPlatformLogoUrl":"https://api.sh/logos/bitbucket.png","dataPlatformTranslations":{},"dataProduct":"dev-reference","description":"Get Bitbucket Pull Request data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, repo, and retrieve structured data including numeric pull request identifier, draft pull request indicator, participant approval status flag, comment text content, and reported comment count to audit review approvals, read threaded review feedback, and verify merge status.","descriptionTranslations":{"ar":"اجلب طلب سحب عام في Bitbucket عبر OpenAny REST لفحص المشاركين في المراجعة وحالات الموافقة والنقاشات المرتبطة. أرسل معرف المستودع ورقم طلب السحب الرقمي وتصفح التعليقات بمعدل 100 تعليق لكل صفحة مع الاطلاع على الفرع المستهدف وحالة المسودة وبيانات الدمج.","ja":"OpenAny REST で Bitbucket の公開プルリクエストを取得し、レビュー参加者、承認状況、コメント議論を確認できます。リポジトリ識別子と数値のプルリクエスト ID を指定すると、対象ブランチ、ドラフト状態、マージ情報、100 件単位のコメント一覧を取得できます。","zh":"通过 OpenAny REST 获取 Bitbucket 公开拉取请求，用于查看评审参与人、审批状态与关联评论。传入仓库标识和数字拉取请求编号，即可按每页 100 条分页读取评论，并查看目标分支、草稿标记及合并提交信息。"},"effectContentHtml":"","executionMode":"sync","id":"d726c288-73e9-466c-a240-927ca4ccc35f","includedContentHtml":"","inputs":[{"description":"Repository as workspace/repo, or a bitbucket.org link.","location":"query","name":"repo","nullable":false,"required":true,"type":"string"},{"description":"Pull request number.","location":"query","name":"id","nullable":false,"required":true,"type":"integer"},{"description":"Page of comments, 100 per page (default 1).","location":"query","name":"comments_page","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 pull request API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eBitbucket Pull Request API\u003c/h2\u003e\n\u003cp\u003eSend repo (workspace/repo or Bitbucket URL) and integer id in the query string, with optional comments_page (100 comments per page, default 1). The response returns author details, participants with approval flags, destination branch, merge_commit and comment records.\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 and id (integer pull request number). Optional comments_page (default 1, 100 per page), 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 pull request 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\u003eAudit review approvals\u003c/strong\u003e: Inspect participants[].role, approved and state to verify review sign-off on a public change.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eRead threaded review feedback\u003c/strong\u003e: Page through comments[] with inline and parent_id context to follow technical discussions.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eVerify merge status\u003c/strong\u003e: Check merge_commit and closed_by alongside destination_branch to confirm how a pull request concluded.\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\u003eid\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNumeric pull request identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eauthor.display_name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePull request author display name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003edestination_branch\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTarget branch for the pull request\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003edraft\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDraft pull request indicator\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003emerge_commit\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMerge commit reference when merged\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eparticipants[].approved\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eParticipant approval status flag\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecomments[].body\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eComment text content\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecomment_count\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported comment count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecomments_next_page\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNext comment page number when more comments exist\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/pull-request \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode id=5485 \\\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/d726c288-73e9-466c-a240-927ca4ccc35f\"\u003ePublished Bitbucket Pull Request 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 type of value does id require?\u003c/h3\u003e\n\u003cp\u003eid is the integer pull request number within the repository, such as 5485.\u003c/p\u003e\n\u003ch3\u003eHow do I paginate pull request comments?\u003c/h3\u003e\n\u003cp\u003eComments return up to 100 per page. Pass comments_next_page back in comments_page to read additional pages.\u003c/p\u003e\n\u003ch3\u003eDoes this endpoint distinguish inline code comments from general comments?\u003c/h3\u003e\n\u003cp\u003eYes. Returned comment objects include inline and parent_id fields alongside body and timestamps.\u003c/p\u003e\n\u003ch3\u003eCan I list all pull requests in a repository with this endpoint?\u003c/h3\u003e\n\u003cp\u003eNo. This operation fetches a single pull request identified by repo and id.\u003c/p\u003e\n\u003ch3\u003eDoes it require Bitbucket authentication for public repositories?\u003c/h3\u003e\n\u003cp\u003eNo. Authenticate with your OpenAny API key; private Bitbucket credentials are not exposed on this endpoint.\u003c/p\u003e\n\u003ch3\u003eHow do caching and output selection work?\u003c/h3\u003e\n\u003cp\u003eOutput is JSON only. Pass fresh=1 to skip the 24-hour cache and raw=0 to omit raw source blocks.\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-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-pull-request-api?offering=d726c288-73e9-466c-a240-927ca4ccc35f","providerId":"apish","publicPath":"/v1/agent-apis/apish/bitbucket/v1/pull-request","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"id":"5485","output":"json","repo":"atlassian/aui"}},"response_body":{"author":{"avatar":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/D-6.png","display_name":"dc-core-bot","nickname":"dc-core-bot","type":"user","url":"https://bitbucket.org/%7B9196eaf9-6f9d-404f-a451-5bc9bb347ca9%7D/","uuid":"{9196eaf9-6f9d-404f-a451-5bc9bb347ca9}"},"cached":false,"close_source_branch":true,"closed_by":{"avatar":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/SH-5.png","display_name":"Simon Holzmayer","nickname":"Simon Holzmayer","type":"user","url":"https://bitbucket.org/%7Bf1b43ade-378b-474f-948b-c74096b16b62%7D/","uuid":"{f1b43ade-378b-474f-948b-c74096b16b62}"},"comment_count":3,"comments":[{"body":"This PR now includes the following changes:\n\n* @{557057:2ff479f7-af2d-45d0-aaaf-94d454f548f7}: f28b9ae\n* @{712020:13f1ffe5-75eb-4b3e-9b22-83…","created_at":"2026-11-02T15:27:20.666491+00:00","id":2011980009,"inline":null,"parent_id":null,"updated_at":"2026-11-02T15:27:20.687150+00:00","user":{"avatar":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/D-6.png","display_name":"dc-core-bot","nickname":"dc-core-bot","type":"user","url":"https://bitbucket.org/%7B9196eaf9-6f9d-404f-a451-5bc9bb347ca9%7D/","uuid":"{9196eaf9-6f9d-404f-a451-5bc9bb347ca9}"}},{"body":"This PR now includes the following changes:\n\n* @{557057:2ff479f7-af2d-45d0-aaaf-94d454f548f7}: 382f14a\n* @{712020:13f1ffe5-75eb-4b3e-9b22-83…","created_at":"2026-11-03T09:17:01.422711+00:00","id":2012039329,"inline":null,"parent_id":null,"updated_at":"2026-11-03T09:17:01.443388+00:00","user":{"avatar":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/D-6.png","display_name":"dc-core-bot","nickname":"dc-core-bot","type":"user","url":"https://bitbucket.org/%7B9196eaf9-6f9d-404f-a451-5bc9bb347ca9%7D/","uuid":"{9196eaf9-6f9d-404f-a451-5bc9bb347ca9}"}},"… 1 more"],"comments_next_page":null,"comments_total":3,"created_at":"2026-11-02T15:27:17.490748+00:00","credits_used":1,"description":"Note: This PR is created by the upmerge automation.\n\n***⚠️ Attention: there are 1 unresolved merge conflicts.***\n\nConflict markers are left …","destination_branch":"release/10.2.x","draft":false,"id":5485,"merge_commit":"280d938504e0","participants":[{"approved":false,"role":"PARTICIPANT","state":null,"user":{"avatar":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/712020:94072633-6f6e-4364-9f08-8c013269bb9f/8cbcfda7-4444-46fe-a8ef-02…","display_name":"dc-core-bot","nickname":"dc-core-bot","type":"app_user","url":null,"uuid":"{ab0b7204-a3d4-4280-bbc2-2ee0d9131892}"}},{"approved":false,"role":"PARTICIPANT","state":null,"user":{"avatar":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/D-6.png","display_name":"dc-core-bot","nickname":"dc-core-bot","type":"user","url":"https://bitbucket.org/%7B9196eaf9-6f9d-404f-a451-5bc9bb347ca9%7D/","uuid":"{9196eaf9-6f9d-404f-a451-5bc9bb347ca9}"}},"… 1 more"],"reason":null,"reviewers":[],"source_branch":"issue/10.2.x/upmerge","source_repo":"atlassian/aui","state":"MERGED","task_count":3,"title":"Upmerge release/9.12.x into release/10.2.x","updated_at":"2026-11-03T15:48:55.062870+00:00","url":"https://bitbucket.org/atlassian/aui/pull-requests/5485"}}],"seoDescription":"Get Bitbucket Pull Request 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:58.978Z","usageInstructionsHtml":""}}