# AAP 2022 Kemper KAS Neonatal Phototherapy Threshold Calculator

> AAP 2022 Kemper KAS Neonatal Phototherapy Threshold 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-14).

Returns the AAP 2022 intensive phototherapy TSB threshold for a neonate given gestational age, age in hours, and neurotoxicity risk factors, using linear interpolation between tabulated hourly values.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/aap_tsb
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aap-2022-kemper-kas-neonatal-phototherapy-threshold-calculator-6417f778
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QNzqMaHXTHt42e-onUZw_

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 aap-2022-kemper-kas-neonatal-phototherapy-threshold-calculator-6417f778
```

Example prompt: Using the AAP 2022 Kemper KAS guidelines, what is the intensive phototherapy TSB threshold for a 37-week infant who is 48 hours old with G6PD deficiency and no other risk factors — the TSB is 14.5 mg/dL?

## When to prefer this

Use this endpoint when you need to apply the specific AAP 2022 Kemper KAS phototherapy thresholds with linear interpolation between hourly table values, including stratification by gestational age curve and all six neurotoxicity risk factors from Table 2. Prefer this over general neonatal jaundice tools when the clinical workflow requires adherence to the 2022 guidelines specifically, or when the infant's age falls between tabulated hours and interpolation is needed.

## Known failure modes

- gestational_age_weeks out of range 35–45 returns an error
- age_hours of 0 or outside 1–336 is not tabulated and returns an error
- tsb_mg_dl outside 0–40 may return a range error
- Missing required boolean risk factor fields return a validation error
- Non-integer gestational age returns a schema error

## How this service works

AAP 2022 Kemper KAS 10 intensive phototherapy threshold from Supplemental Tables 1 and 2 by completed GA, age in hours, TSB, and caller-assigned extra neurotoxicity risk factors. Linear interpolation between tabulated hours. Do not subtract conjugated bilirubin. Not a phototherapy order. magent does not assay TSB.

## Output

Returns the linearly interpolated intensive phototherapy TSB threshold in mg/dL from AAP 2022 Kemper KAS Supplemental Tables 1 and 2, based on gestational age, chronologic age in hours, and caller-assigned neurotoxicity risk factors. Also indicates whether the provided TSB meets or exceeds the threshold. Does not order phototherapy or measure TSB.

## 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": [
      "gestational_age_weeks",
      "age_hours",
      "tsb_mg_dl",
      "isoimmune_hemolytic_disease",
      "g6pd_deficiency",
      "other_hemolytic_condition",
      "sepsis",
      "albumin_lt_3",
      "clinical_instability_24h"
     ],
     "properties": {
      "sepsis": {
       "type": "boolean",
       "description": "Caller-assigned sepsis or suspected sepsis from Kemper 2022 Table 2. true or false. magent does not diagnose sepsis."
      },
      "age_hours": {
       "type": "number",
       "description": "Chronologic age in hours (1-336). Supplemental Tables 1 and 2 are tabulated hourly; ages between adjacent hours are linearly interpolated. Hour 0 is not tabulated. magent does not convert days."
      },
      "tsb_mg_dl": {
       "type": "number",
       "description": "Total serum bilirubin in mg/dL (0-40). Use TSB; do not subtract direct-reacting or conjugated bilirubin. magent does not assay TSB."
      },
      "albumin_lt_3": {
       "type": "boolean",
       "description": "Caller-assigned albumin <3.0 g/dL from Kemper 2022 Table 2. true or false. magent does not assay albumin."
      },
      "g6pd_deficiency": {
       "type": "boolean",
       "description": "Caller-assigned glucose-6-phosphate dehydrogenase (G6PD) deficiency from Kemper 2022 Table 2. true or false. magent does not assay G6PD."
      },
      "gestational_age_weeks": {
       "type": "integer",
       "description": "Completed gestational age in weeks, integer 35-45. Table 1 uses distinct curves for 35, 36, 37, 38, 39, and ≥40. Table 2 groups ≥38 together. magent does not convert days."
      },
      "clinical_instability_24h": {
       "type": "boolean",
       "description": "Caller-assigned significant clinical instability in the previous 24 hours from Kemper 2022 Table 2. true or false. magent does not examine the infant."
      },
      "other_hemolytic_condition": {
       "type": "boolean
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aap-2022-kemper-kas-neonatal-phototherapy-threshold-calculator-6417f778/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)
