{"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":"2cefbbf9-4094-47ff-94d4-32e7bad4d312","catalogType":"api","categories":["developer","data"],"dataPlatform":"gitlab","dataPlatformLogoUrl":"https://api.sh/logos/gitlab.png","dataPlatformTranslations":{},"dataProduct":"dev-reference","description":"Get GitLab Merge Request data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as iid, output, path, and retrieve structured data including project-local merge request number, author GitLab username, draft merge request indicator, reported mergeability status, and merge conflict indicator to review proposed changes, audit review discussions, and track merge outcomes.","descriptionTranslations":{"ar":"افحص طلب دمج عام في GitLab عبر OpenAny REST لمتابعة مراجعات الشيفرة وحالة الموافقة والنقاشات المرتبطة. أرسل مسار المشروع ورقم طلب الدمج iid، وأدرج اختياريا الفروقات أو الموافقات أو سجل النشاط مع تصفح التعليقات عبر المؤشر.","ja":"OpenAny REST で GitLab 公開マージリクエストを取得し、コードレビュー、承認状況、議論を追跡できます。プロジェクトパスとマージリクエスト番号 iid を指定し、必要に応じて差分・承認・アクティビティを含め、カーソルでコメントをページングできます。","zh":"通过 OpenAny REST 查看 GitLab 公开合并请求，用于跟踪代码评审、审批状态与关联讨论。提供项目路径和合并请求编号 iid，可按需包含文件变更、审批或系统活动记录，并使用返回游标分页读取评论。"},"effectContentHtml":"","executionMode":"sync","id":"78f6425c-81f5-4d84-857a-2138005236a9","includedContentHtml":"","inputs":[{"description":"Project path (namespace/project), link or numeric id.","location":"query","name":"path","nullable":false,"required":true,"type":"string"},{"description":"Merge request number (as in /-/merge_requests/1), or pass its link as url.","location":"query","name":"iid","nullable":false,"required":true,"type":"string"},{"description":"Comma-separated: changes (file diffs), approvals.","location":"query","name":"include","nullable":false,"required":false,"type":"string"},{"description":"comments (default), activity (system notes such as label or status changes) or all.","enum_values":["comments","activity","all"],"location":"query","name":"notes","nullable":false,"required":false,"type":"string"},{"description":"Items per page (default 50, max 100).","location":"query","name":"limit","nullable":false,"required":false,"type":"integer"},{"description":"Pass `next_cursor` back for more comments (later pages carry only the comments).","location":"query","name":"cursor","nullable":false,"required":false,"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/gitlab.png","method":"GET","name":"GitLab project merge request API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eGitLab Merge Request API\u003c/h2\u003e\n\u003cp\u003eSupply path and iid in the query string to retrieve one public merge request. Optional include accepts comma-separated changes and approvals, notes switches between comments, activity and all, and cursor continues comment pagination.\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: path and iid. Optional include (changes, approvals), notes (comments/activity/all), limit (default 50, max 100), cursor (next_cursor), 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 · GitLab project merge 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\u003eReview proposed changes\u003c/strong\u003e: Inspect author, assignees, draft flag, conflict status and optional file diffs before evaluating an upstream patch.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eAudit review discussions\u003c/strong\u003e: Page through reviewer comments or system activity notes using notes and cursor.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTrack merge outcomes\u003c/strong\u003e: Check merged_at, closed_at and merge_commit_sha to confirm whether a change landed.\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\u003eiid\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eProject-local merge request number\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eauthor.username\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eAuthor GitLab username\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eassignees[].username\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eAssigned reviewer or owner usernames\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003edraft\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDraft merge request indicator\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003emerge_status\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported mergeability status\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ehas_conflicts\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMerge conflict indicator\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003echanges_count\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported changed-file count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003emerged_at\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMerge timestamp when merged\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/gitlab/v1/project/merge-request \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode iid=1 \\\n  --data-urlencode output=json \\\n  --data-urlencode path=gitlab-org/gitlab-runner\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/78f6425c-81f5-4d84-857a-2138005236a9\"\u003ePublished GitLab Merge 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\u003eHow do I include file diffs or approval details?\u003c/h3\u003e\n\u003cp\u003eSet include=changes, include=approvals or include=changes,approvals in the query string.\u003c/p\u003e\n\u003ch3\u003eWhat is the difference between notes=comments, activity and all?\u003c/h3\u003e\n\u003cp\u003ecomments returns discussion comments by default, activity returns system notes such as label or status changes, and all includes both.\u003c/p\u003e\n\u003ch3\u003eHow does comment pagination work?\u003c/h3\u003e\n\u003cp\u003ePass the returned next_cursor value in cursor with limit (default 50, max 100). Later pages carry only the comments.\u003c/p\u003e\n\u003ch3\u003eDoes closed_at mean the merge request was merged?\u003c/h3\u003e\n\u003cp\u003eNo. Check merged_at and merge_commit_sha separately; a closed merge request is not necessarily merged.\u003c/p\u003e\n\u003ch3\u003eWhat value should I pass for iid?\u003c/h3\u003e\n\u003cp\u003ePass the project-local merge request number from /-/merge_requests/\u0026lt;iid\u0026gt;, such as 1.\u003c/p\u003e\n\u003ch3\u003eCan I skip the 24-hour cache for an active review?\u003c/h3\u003e\n\u003cp\u003eYes. Add fresh=1 to fetch live merge request state, and optionally raw=0 to reduce payload size.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/gitlab/gitlab-project-api\"\u003eGitLab Project API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/gitlab/gitlab-project-file-api\"\u003eGitLab Project File API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/gitlab/gitlab-project-issues-api\"\u003eGitLab Project Issues API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/gitlab/gitlab-project-merge-request-api?offering=78f6425c-81f5-4d84-857a-2138005236a9","providerId":"apish","publicPath":"/v1/agent-apis/apish/gitlab/v1/project/merge-request","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"iid":"1","output":"json","path":"gitlab-org/gitlab-runner"}},"response_body":{"assignees":[{"avatar":"https://secure.gravatar.com/avatar/4675c8e590e767232977b9b245d70da790b2b6fd9ea0870515cf951fc2ac8ccb?s=80\u0026d=identicon","name":"Kamil Trzciński","url":"https://gitlab.com/ayufan","username":"ayufan"}],"author":{"avatar":"https://gitlab.com/uploads/-/system/user/avatar/3585/avatar.png?v=1790899621","name":"Achilleas Pipinellis","url":"https://gitlab.com/axil","username":"axil"},"blocking_discussions_resolved":true,"cached":false,"changes_count":null,"closed_at":null,"closed_by":null,"confidential":null,"created_at":"2015-05-02T06:38:50.094Z","credits_used":1,"description":"* Categorize documentation files in own namespace\r\n* Use tables in advanced configuration\r\n* Drop numbered lists from examples and install f…","diff_refs":null,"discussion_locked":null,"downvotes":0,"draft":false,"first_contribution":false,"has_conflicts":false,"id":75920,"iid":1,"labels":[],"merge_commit_sha":null,"merge_error":null,"merge_status":"not_open","merged_at":null,"merged_by":null,"milestone":null,"pipeline":null,"project":"gitlab-org/gitlab-runner","reference":"gitlab-org/gitlab-runner!1","reviewers":[],"sha":"f85f7408dd1c932b28ee7ccb792d957545227c7f","source_branch":"documentation_clean_up","squash":false,"squash_commit_sha":null,"state":"merged","target_branch":"master","time_stats":{"estimate":null,"estimate_seconds":0,"spent":null,"spent_seconds":0},"title":"Documentation clean-up.","updated_at":"2026-10-18T13:09:11.811Z","upvotes":0,"url":"https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/1","user_notes_count":8,"…":"8 more fields"}}],"seoDescription":"Get GitLab Merge 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:31.721Z","usageInstructionsHtml":""}}