{
  "x402Version": 2,
  "id": 39045,
  "slug": "39045",
  "resource": "https://api.magentlab.com/api/calc/mapi",
  "description": "Guilbert 2004 mAPI (PEAK Table I). Positive if 4+ wheeze episodes in one year (one MD-diagnosed) plus 1+ major or 2+ minor. Majors: parental asthma, MD atopic dermatitis, aeroallergen sensitization. Minors: milk/egg/peanut sensitization, wheezing unrelated to colds, eosinophils ≥4%. Not original API. Not m²API. Not an asthma diagnosis. magent does not examine the child. Not a medical device.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "aeroallergen_sensitization": false,
                "eosinophilia_ge_4pct": false,
                "food_sensitization_milk_egg_peanut": false,
                "four_or_more_wheeze_episodes": false,
                "md_atopic_dermatitis": false,
                "parental_asthma": false,
                "wheezing_unrelated_to_colds": false
              },
              {
                "aeroallergen_sensitization": false,
                "eosinophilia_ge_4pct": false,
                "food_sensitization_milk_egg_peanut": false,
                "four_or_more_wheeze_episodes": false,
                "md_atopic_dermatitis": false,
                "parental_asthma": false,
                "wheezing_unrelated_to_colds": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Guilbert TW, Morgan WJ, Zeiger RS, et al.",
                  "doi": "10.1016/j.jaci.2004.09.020",
                  "id": "guilbert-2004",
                  "pmid": "15577824",
                  "source": "J Allergy Clin Immunol. 2004;114(6):1282-1287",
                  "title": "Atopic characteristics of children with recurrent wheezing at high risk for the development of childhood asthma"
                },
                "criteria": [
                  {
                    "factor": "four_or_more_wheeze_episodes",
                    "met": false
                  },
                  {
                    "factor": "parental_asthma",
                    "met": false
                  },
                  {
                    "factor": "md_atopic_dermatitis",
                    "met": false
                  },
                  {
                    "factor": "aeroallergen_sensitization",
                    "met": false
                  },
                  {
                    "factor": "food_sensitization_milk_egg_peanut",
                    "met": false
                  },
                  {
                    "factor": "wheezing_unrelated_to_colds",
                    "met": false
                  },
                  {
                    "factor": "eosinophilia_ge_4pct",
                    "met": false
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "mapi",
                "formula_expression": "positive iff four_or_more_wheeze_episodes and (major_count >= 1 or minor_count >= 2); majors parental_asthma, md_atopic_dermatitis, aeroallergen_sensitization; minors food_sensitization_milk_egg_peanut, wheezing_unrelated_to_colds, eosinophilia_ge_4pct (Guilbert 2004 PEAK Table I)",
                "four_or_more_wheeze_episodes": false,
                "major_count": 0,
                "minor_count": 0,
                "positive": false
              },
              {
                "citation": {
                  "authors": "Guilbert TW, Morgan WJ, Zeiger RS, et al.",
                  "doi": "10.1016/j.jaci.2004.09.020",
                  "id": "guilbert-2004",
                  "pmid": "15577824",
                  "source": "J Allergy Clin Immunol. 2004;114(6):1282-1287",
                  "title": "Atopic characteristics of children with recurrent wheezing at high risk for the development of childhood asthma"
                },
                "criteria": [
                  {
                    "factor": "four_or_more_wheeze_episodes",
                    "met": false
                  },
                  {
                    "factor": "parental_asthma",
                    "met": false
                  },
                  {
                    "factor": "md_atopic_dermatitis",
                    "met": false
                  },
                  {
                    "factor": "aeroallergen_sensitization",
                    "met": false
                  },
                  {
                    "factor": "food_sensitization_milk_egg_peanut",
                    "met": false
                  },
                  {
                    "factor": "wheezing_unrelated_to_colds",
                    "met": false
                  },
                  {
                    "factor": "eosinophilia_ge_4pct",
                    "met": false
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "mapi",
                "formula_expression": "positive iff four_or_more_wheeze_episodes and (major_count >= 1 or minor_count >= 2); majors parental_asthma, md_atopic_dermatitis, aeroallergen_sensitization; minors food_sensitization_milk_egg_peanut, wheezing_unrelated_to_colds, eosinophilia_ge_4pct (Guilbert 2004 PEAK Table I)",
                "four_or_more_wheeze_episodes": false,
                "major_count": 0,
                "minor_count": 0,
                "positive": false
              }
            ],
            "path": "/api/calc/mapi"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "aeroallergen_sensitization": {
                          "description": "Allergic sensitization to at least one aeroallergen as assigned by the caller. true or false. Major criterion (Guilbert 2004 PEAK Table I). magent does not interpret allergy testing.",
                          "type": "boolean"
                        },
                        "eosinophilia_ge_4pct": {
                          "description": "Blood eosinophils ≥4% of WBC as assigned by the caller (Guilbert 2004 PEAK Table I; 4% or greater). true or false. Minor criterion. magent does not take an eosinophil percent and does not interpret a CBC. Not Castro-Rodriguez circulating eosinophils >4%.",
                          "type": "boolean"
                        },
                        "food_sensitization_milk_egg_peanut": {
                          "description": "Allergic sensitization to milk, egg, or peanuts as assigned by the caller. true or false. Minor criterion (Guilbert 2004 PEAK Table I). magent does not interpret allergy testing.",
                          "type": "boolean"
                        },
                        "four_or_more_wheeze_episodes": {
                          "description": "Caller-assigned history of 4 or more wheezing episodes in one year with at least one physician-diagnosed episode (Guilbert 2004 PEAK Table I primary criterion). true or false. magent does not take a numeric episode count.",
                          "type": "boolean"
                        },
                        "md_atopic_dermatitis": {
                          "description": "Physician-diagnosed atopic dermatitis as assigned by the caller. true or false. Major criterion (Guilbert 2004 PEAK Table I). magent does not examine the child.",
                          "type": "boolean"
                        },
                        "parental_asthma": {
                          "description": "Parental asthma as assigned by the caller. true or false. Major criterion (Guilbert 2004 PEAK Table I). magent does not take a family history.",
                          "type": "boolean"
                        },
                        "wheezing_unrelated_to_colds": {
                          "description": "Wheezing unrelated to colds as assigned by the caller. true or false. Minor criterion (Guilbert 2004 PEAK Table I). magent does not auscultate.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "four_or_more_wheeze_episodes",
                        "parental_asthma",
                        "md_atopic_dermatitis",
                        "aeroallergen_sensitization",
                        "food_sensitization_milk_egg_peanut",
                        "wheezing_unrelated_to_colds",
                        "eosinophilia_ge_4pct"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "mapi",
    "pediatric-wheeze",
    "respiratory",
    "predictive-index",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:16:21.593Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T08:16:21.488Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "aeroallergen_sensitization": false,
                  "eosinophilia_ge_4pct": false,
                  "food_sensitization_milk_egg_peanut": false,
                  "four_or_more_wheeze_episodes": false,
                  "md_atopic_dermatitis": false,
                  "parental_asthma": false,
                  "wheezing_unrelated_to_colds": false
                },
                {
                  "aeroallergen_sensitization": false,
                  "eosinophilia_ge_4pct": false,
                  "food_sensitization_milk_egg_peanut": false,
                  "four_or_more_wheeze_episodes": false,
                  "md_atopic_dermatitis": false,
                  "parental_asthma": false,
                  "wheezing_unrelated_to_colds": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Guilbert TW, Morgan WJ, Zeiger RS, et al.",
                    "doi": "10.1016/j.jaci.2004.09.020",
                    "id": "guilbert-2004",
                    "pmid": "15577824",
                    "source": "J Allergy Clin Immunol. 2004;114(6):1282-1287",
                    "title": "Atopic characteristics of children with recurrent wheezing at high risk for the development of childhood asthma"
                  },
                  "criteria": [
                    {
                      "factor": "four_or_more_wheeze_episodes",
                      "met": false
                    },
                    {
                      "factor": "parental_asthma",
                      "met": false
                    },
                    {
                      "factor": "md_atopic_dermatitis",
                      "met": false
                    },
                    {
                      "factor": "aeroallergen_sensitization",
                      "met": false
                    },
                    {
                      "factor": "food_sensitization_milk_egg_peanut",
                      "met": false
                    },
                    {
                      "factor": "wheezing_unrelated_to_colds",
                      "met": false
                    },
                    {
                      "factor": "eosinophilia_ge_4pct",
                      "met": false
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "mapi",
                  "formula_expression": "positive iff four_or_more_wheeze_episodes and (major_count >= 1 or minor_count >= 2); majors parental_asthma, md_atopic_dermatitis, aeroallergen_sensitization; minors food_sensitization_milk_egg_peanut, wheezing_unrelated_to_colds, eosinophilia_ge_4pct (Guilbert 2004 PEAK Table I)",
                  "four_or_more_wheeze_episodes": false,
                  "major_count": 0,
                  "minor_count": 0,
                  "positive": false
                },
                {
                  "citation": {
                    "authors": "Guilbert TW, Morgan WJ, Zeiger RS, et al.",
                    "doi": "10.1016/j.jaci.2004.09.020",
                    "id": "guilbert-2004",
                    "pmid": "15577824",
                    "source": "J Allergy Clin Immunol. 2004;114(6):1282-1287",
                    "title": "Atopic characteristics of children with recurrent wheezing at high risk for the development of childhood asthma"
                  },
                  "criteria": [
                    {
                      "factor": "four_or_more_wheeze_episodes",
                      "met": false
                    },
                    {
                      "factor": "parental_asthma",
                      "met": false
                    },
                    {
                      "factor": "md_atopic_dermatitis",
                      "met": false
                    },
                    {
                      "factor": "aeroallergen_sensitization",
                      "met": false
                    },
                    {
                      "factor": "food_sensitization_milk_egg_peanut",
                      "met": false
                    },
                    {
                      "factor": "wheezing_unrelated_to_colds",
                      "met": false
                    },
                    {
                      "factor": "eosinophilia_ge_4pct",
                      "met": false
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "mapi",
                  "formula_expression": "positive iff four_or_more_wheeze_episodes and (major_count >= 1 or minor_count >= 2); majors parental_asthma, md_atopic_dermatitis, aeroallergen_sensitization; minors food_sensitization_milk_egg_peanut, wheezing_unrelated_to_colds, eosinophilia_ge_4pct (Guilbert 2004 PEAK Table I)",
                  "four_or_more_wheeze_episodes": false,
                  "major_count": 0,
                  "minor_count": 0,
                  "positive": false
                }
              ],
              "path": "/api/calc/mapi"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "aeroallergen_sensitization": {
                            "description": "Allergic sensitization to at least one aeroallergen as assigned by the caller. true or false. Major criterion (Guilbert 2004 PEAK Table I). magent does not interpret allergy testing.",
                            "type": "boolean"
                          },
                          "eosinophilia_ge_4pct": {
                            "description": "Blood eosinophils ≥4% of WBC as assigned by the caller (Guilbert 2004 PEAK Table I; 4% or greater). true or false. Minor criterion. magent does not take an eosinophil percent and does not interpret a CBC. Not Castro-Rodriguez circulating eosinophils >4%.",
                            "type": "boolean"
                          },
                          "food_sensitization_milk_egg_peanut": {
                            "description": "Allergic sensitization to milk, egg, or peanuts as assigned by the caller. true or false. Minor criterion (Guilbert 2004 PEAK Table I). magent does not interpret allergy testing.",
                            "type": "boolean"
                          },
                          "four_or_more_wheeze_episodes": {
                            "description": "Caller-assigned history of 4 or more wheezing episodes in one year with at least one physician-diagnosed episode (Guilbert 2004 PEAK Table I primary criterion). true or false. magent does not take a numeric episode count.",
                            "type": "boolean"
                          },
                          "md_atopic_dermatitis": {
                            "description": "Physician-diagnosed atopic dermatitis as assigned by the caller. true or false. Major criterion (Guilbert 2004 PEAK Table I). magent does not examine the child.",
                            "type": "boolean"
                          },
                          "parental_asthma": {
                            "description": "Parental asthma as assigned by the caller. true or false. Major criterion (Guilbert 2004 PEAK Table I). magent does not take a family history.",
                            "type": "boolean"
                          },
                          "wheezing_unrelated_to_colds": {
                            "description": "Wheezing unrelated to colds as assigned by the caller. true or false. Minor criterion (Guilbert 2004 PEAK Table I). magent does not auscultate.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "four_or_more_wheeze_episodes",
                          "parental_asthma",
                          "md_atopic_dermatitis",
                          "aeroallergen_sensitization",
                          "food_sensitization_milk_egg_peanut",
                          "wheezing_unrelated_to_colds",
                          "eosinophilia_ge_4pct"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}