# Rome IV Belching Disorders (B2) Calculator

> Rome IV Belching Disorders (B2) Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Evaluates whether a patient meets the Rome IV criteria for belching disorders (B2), distinguishing supragastric (B2a) and gastric (B2b) subtypes based on caller-assigned clinical flags.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_belching
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rome-iv-belching-disorders-b2-calculator-dc2e5ba9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bbxL5dh0LDuvMz4ymRJdX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rome-iv-belching-disorders-b2-calculator-dc2e5ba9
```

Example prompt: Does this patient meet the Rome IV B2 criteria for belching disorder? Their belching is bothersome and happens more than 3 days a week, the criteria have been fulfilled for the last 3 months, onset was at least 6 months ago, and the origin has been clinically assigned as supragastric.

## When to prefer this

Use this endpoint when you need to programmatically evaluate whether a patient meets the Rome IV B2 belching disorder criteria per Stanghellini 2016, and the caller has already assigned clinical values (origin, frequency, duration). Prefer this over manual lookup when embedding Rome IV logic in a clinical decision support pipeline, registry eligibility tool, or GI symptom classifier. Do not use this for aerophagia (adult or pediatric H1d), bloating, or functional dyspepsia — separate Rome IV criteria apply to those conditions.

## Known failure modes

- Missing required query parameters (bothersome_belching_more_than_3_days_week, fulfilled_last_3_months, onset_at_least_6_months, belching_origin) returns a validation error
- Invalid belching_origin value (not 'supragastric' or 'gastric') causes an enum validation failure
- Non-boolean values for boolean parameters cause schema rejection
- Network or payment (x402) failures result in no response

## How this service works

Stanghellini 2016 Rome IV belching disorders (B2). rome_iv_belching is true iff bothersome (severe enough to impact usual activities) belching from the esophagus or stomach more than 3 days a week, last-3-months criteria, 6-month onset, and belching_origin supragastric (B2a) or gastric (B2b). magent does not measure impedance or take a history. Not a diagnosis, not adult aerophagia, not child H1d aerophagia, not bloating, not FD.

## Output

Returns a rome_iv_belching boolean (true/false) indicating whether the patient meets the Rome IV B2 criteria for belching disorders, implicitly reflecting the B2a (supragastric) or B2b (gastric) subtype based on the belching_origin input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "bothersome_belching_more_than_3_days_week",
      "fulfilled_last_3_months",
      "onset_at_least_6_months",
      "belching_origin"
     ],
     "properties": {
      "belching_origin": {
       "enum": [
        "supragastric",
        "gastric"
       ],
       "type": "string",
       "description": "Caller-assigned origin of excessive belching: supragastric (B2a, from the esophagus) or gastric (B2b, from the stomach) (Stanghellini 2016). Objective impedance distinguishes them in the paper; magent does not measure impedance."
      },
      "fulfilled_last_3_months": {
       "type": "boolean",
       "description": "Criteria fulfilled for the last 3 months, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history."
      },
      "onset_at_least_6_months": {
       "type": "boolean",
       "description": "Symptom onset at least 6 months prior to diagnosis, as assigned (Stanghellini 2016). true or false as assigned by the caller. magent does not take a history."
      },
      "bothersome_belching_more_than_3_days_week": {
       "type": "boolean",
       "description": "Bothersome (severe enough to impact usual activities) belching from the esophagus or stomach more than 3 days a week (Stanghellini 2016 Rome IV B2). true or false as assigned by the caller. magent does not take a history."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rome-iv-belching-disorders-b2-calculator-dc2e5ba9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
