# Rome IV Child Abdominal Migraine Criteria Calculator

> Rome IV Child Abdominal Migraine Criteria 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 Rome IV H2c criteria for pediatric abdominal migraine by scoring 12 boolean clinical flags and returning a criterion count and pass/fail result

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_child_abdominal_migraine
- 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-child-abdominal-migraine-criteria-calculator-d9ce4c40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vhgYP-H-mLe7HWo_y6nG1

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-child-abdominal-migraine-criteria-calculator-d9ce4c40
```

Example prompt: Score this child's Rome IV abdominal migraine criteria: the pain is paroxysmal, intense, periumbilical, lasting over an hour; episodes are weeks apart; pain is incapacitating; stereotypical pattern present; associated features include nausea, vomiting, and pallor; not explained by another condition; criteria have been met for at least 6 months — how many criteria are met and does this child meet the H2c threshold?

## When to prefer this

Use this endpoint when you need to programmatically evaluate whether a child meets Rome IV H2c criteria for abdominal migraine using caller-supplied clinical observations. Prefer this over general symptom checkers when you specifically need Hyams 2016 Rome IV scoring with a discrete boolean result and associated feature count. Do not use for adult migraine scoring, cyclic vomiting syndrome, or non-pediatric GI criteria.

## Known failure modes

- Missing required boolean query parameters returns a validation error
- Non-boolean values for flag parameters cause a 400 bad request
- Payment failure (x402) if USDC balance is insufficient or payment header is missing
- Misinterpretation of criteria by caller (endpoint only scores what is passed — it does not examine the patient)

## How this service works

Hyams 2016 Rome IV H2c. rome_iv_child_abdominal_migraine is true iff paroxysmal intense periumbilical, midline, or diffuse pain lasting 1 hour or more, episodes weeks to months apart, incapacitating stereotypical pain, associated_features_met at least 2 (anorexia, nausea, vomiting, headache, photophobia, pallor), not explained by another condition, and 6-month fulfillment. Count 0-6. magent does not examine the child. Not a diagnosis. Not child CVS. Not adult migraine scores.

## Output

Returns a boolean rome_iv_child_abdominal_migraine field (true/false) indicating whether all Rome IV H2c criteria are met, plus a numeric count (0–6) of how many of the six associated features (anorexia, nausea, vomiting, headache, photophobia, pallor) were positive. Does not produce a clinical diagnosis.

## 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": [
      "paroxysmal_intense_periumbilical_midline_or_diffuse_pain_lasting_1_hour_or_more",
      "episodes_separated_weeks_to_months",
      "pain_incapacitating",
      "stereotypical_pattern",
      "anorexia",
      "nausea",
      "vomiting",
      "headache",
      "photophobia",
      "pallor",
      "not_explained_by_another_condition",
      "fulfilled_at_least_6_months"
     ],
     "properties": {
      "nausea": {
       "type": "boolean",
       "description": "Nausea during episodes (one of six associated features; at least two required). true or false as assigned by the caller. magent does not examine the child."
      },
      "pallor": {
       "type": "boolean",
       "description": "Pallor during episodes (one of six associated features; at least two required). true or false as assigned by the caller. magent does not examine the child."
      },
      "anorexia": {
       "type": "boolean",
       "description": "Anorexia during episodes (one of six associated features; at least two required). true or false as assigned by the caller. magent does not examine the child."
      },
      "headache": {
       "type": "boolean",
       "description": "Headache during episodes (one of six associated features; at least two required). true or false as assigned by the caller. magent does not examine the child."
      },
      "vomiting": {
       "type": "boolean",
       "description": "Vomiting during episodes (one of six associated features; at least two required). true or false as assigned by the caller. magent does not examine the child."
      },
      "photophobia": {
       "type": "boolean",
       "description": "Photophobia during episodes (one of six associated features; at least two required). true or false as assigned by the caller. magent does not examine the child."
      },
      "pain_incapacitating": {
       "type": "boolean",
       "description": "The pain is incap
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rome-iv-child-abdominal-migraine-criteria-calculator-d9ce4c40/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)
