{"slug":"api-magentlab-com-api-calc-anion-gap-6c0995","title":"Serum anion gap from sodium, chloride, and bicarbonate, with or without potassiu","host":"api.magentlab.com","method":"POST","resource":"https://api.magentlab.com/api/calc/anion_gap","category":"other","description":"Serum anion gap from sodium, chloride, and bicarbonate, with or without potassium. formula=without_k or formula=with_k is required; magent does not pick one. Deterministic Emmett–Narins 1977 arithmetic with citation. Not a diagnosis, albumin-corrected gap (Figge/Fencl), or delta gap.","price_listed":0.005,"price_asked":0.007,"state":"overcharges","state_label":"Asked 1.4x its listed price for its own example","checks_7d":1,"answered_7d":1,"latency_ms_median":278,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"items":[{"bicarbonate_mmol_l":24,"chloride_mmol_l":104,"formula":"without_k","potassium_mmol_l":4,"sodium_mmol_l":140},{"bicarbonate_mmol_l":24,"chloride_mmol_l":104,"formula":"without_k","potassium_mmol_l":4,"sodium_mmol_l":140}]},"method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"items":{"items":{"properties":{"bicarbonate_mmol_l":{"description":"Serum bicarbonate in mmol/L (2-45).","type":"number"},"chloride_mmol_l":{"description":"Serum chloride in mmol/L (70-130).","type":"number"},"formula":{"description":"without_k (Na - Cl - HCO3) or with_k (Na + K - Cl - HCO3). Required; magent does not pick one silently.","enum":["without_k","with_k"],"type":"string"},"potassium_mmol_l":{"description":"Serum potassium in mmol/L (1.5-8.0). Required when formula=with_k. Ignored when formula=without_k.","type":"number"},"sodium_mmol_l":{"description":"Serum sodium in mmol/L (110-160).","type":"number"}},"required":["sodium_mmol_l","chloride_mmol_l","bicarbonate_mmol_l","formula"],"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"},"history":[{"day":"2026-09-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.007,"price_match":false,"latency_ms":278,"error":null}],"description_full":"Serum anion gap from sodium, chloride, and bicarbonate, with or without potassium. formula=without_k or formula=with_k is required; magent does not pick one. Deterministic Emmett–Narins 1977 arithmetic with citation. Not a diagnosis, albumin-corrected gap (Figge/Fencl), or delta gap.","last_updated":"2026-09-28T14:18:31.597Z","schemes":["exact"]}