{"api":"v1","generated_at":"2026-10-02T06:29:36.391Z","licence":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"TOLL, with a link to the page cited"},"page":"https://tollindex.com/e/api-magentlab-com-api-calc-abg-798659","pinned_page":"https://tollindex.com/e/api-magentlab-com-api-calc-abg-798659/at/2026-10-02T05-34Z","pinned":false,"method":"https://tollindex.com/ledger/method","snapshot_at":"2026-10-02T05:34:29.993Z","snapshot_stamp":"2026-10-02T05-34Z","endpoint":{"slug":"api-magentlab-com-api-calc-abg-798659","canonical_url":"https://api.magentlab.com/api/calc/abg","resource":"https://api.magentlab.com/api/calc/abg","http_method":"POST","type":"http","x402_version":2,"registries":["cdp"],"primary_registry":"cdp","curated_by_coinbase":false,"description":"Berend 2014 physiological acid-base assessment. Labels acidemia or alkalemia, primary metabolic vs respiratory process, anion gap (Na-Cl-HCO3), optional albumin-corrected gap, and printed delta-delta. Not a diagnosis, ventilator order, bicarbonate dose, or blood-gas assay.","service_name":"magent","declared_category":null,"declared_tags":["abg","acid-base","berend","electrolytes","calculator"],"route_template":null,"registry_updated":"2026-09-28T14:18:38.963Z"},"derived":{"note":"fields no registry supplies; TOLL derives them and marks them derived on the page","title":"calc abg","category":"market-data","first_observed_by_toll":"2026-09-28T13:51:25.436Z","last_observed_by_toll":"2026-10-02T05:34:29.993Z","observation_began":"2026-09-10"},"presence":{"listed_now":true,"first_absent_at":null,"delisting_confirmed_at":null,"events":[{"registry":"cdp","at":"2026-09-28T13:51:25.437Z","event":"listed"}]},"accepts":[{"registry":"cdp","ordinal":0,"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","asset_name":"USD Coin","symbol":"USDC","decimals":6,"amount_display":"0.005 USDC","amount_units":0.005,"decimals_known":true,"pay_to":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","scheme":"exact"}],"counters":{"observed_at":"2026-10-02T05:34:29.993Z","calls_30d":2,"unique_payers_30d":1,"last_called_at":"2026-09-28T14:18:38.836Z"},"validation":{"latest":{"observed_at":"2026-10-01T08:08:11.486Z","state":"pass","failed_checks":[],"endpoint_http_status":402,"run_id":"daily-2026-10-01"},"uptime":[{"days":7,"observed":5,"passed":5,"ratio":1},{"days":30,"observed":5,"passed":5,"ratio":1},{"days":90,"observed":5,"passed":5,"ratio":1}],"history_90d":[{"observed_at":"2026-10-01T08:08:11.486Z","state":"pass","failed_checks":[],"run_id":"daily-2026-10-01","state_changed":false},{"observed_at":"2026-09-30T07:28:37.890Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-30","state_changed":false},{"observed_at":"2026-09-29T19:43:52.939Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-29","state_changed":false},{"observed_at":"2026-09-28T16:58:04.871Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-28","state_changed":false},{"observed_at":"2026-09-28T16:44:00.844Z","state":"pass","failed_checks":[],"run_id":"new-after-daily-2026-09-28","state_changed":true}]},"seller":{"wallet":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","page":"https://tollindex.com/seller/0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","endpoints":844,"hosts":1},"reports":0,"registry_record":{"cdp":[{"tags":["abg","acid-base","berend","electrolytes","calculator"],"type":"http","accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2","paymentFlow":"upfront","resourceUrl":"https://api.magentlab.com/api/calc/abg","assetTransferMethod":"eip3009"},"payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","amount":"5000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":600}],"quality":{"lastCalledAt":"2026-09-28T14:18:38.836Z","l30DaysTotalCalls":2,"l30DaysUniquePayers":1},"resource":"https://api.magentlab.com/api/calc/abg","extensions":{"bazaar":{"info":{"input":{"body":{"items":[{"ph":7.28,"paco2_mm_hg":39,"albumin_g_dl":4,"sodium_mmol_l":135,"lactate_mmol_l":2,"chloride_mmol_l":115,"bicarbonate_mmol_l":18},{"ph":7.28,"paco2_mm_hg":39,"albumin_g_dl":4,"sodium_mmol_l":135,"lactate_mmol_l":2,"chloride_mmol_l":115,"bicarbonate_mmol_l":18}]},"type":"http","method":"POST"},"output":{"type":"json","example":{"path":"/api/calc/abg","count":2,"items":[{"ph":7.28,"formula":"abg","citation":{"id":"berend-2014-acid-base","doi":"10.1056/NEJMra1003327","pmid":"25295502","title":"Physiological Approach to Assessment of Acid-Base Disturbances","source":"N Engl J Med. 2014;371:1434-1445","authors":"Berend K, de Vries APJ, Gans ROB"},"criteria":[{"met":true,"value":7.28,"factor":"acidemia"},{"met":false,"value":7.28,"factor":"alkalemia"},{"met":true,"value":18,"factor":"metabolic_acidosis"},{"met":false,"value":18,"factor":"metabolic_alkalosis"},{"met":false,"value":39,"factor":"respiratory_acidosis"},{"met":false,"value":39,"factor":"respiratory_alkalosis"},{"met":false,"value":2,"factor":"high_anion_gap"},{"met":true,"value":2,"factor":"normal_anion_gap"}],"disorders":["acidemia","metabolic acidosis","normal anion-gap acidosis","additional respiratory acidosis"],"ph_status":"acidemia","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.","paco2_mm_hg":39,"sodium_mmol_l":135,"anion_gap_class":"normal","chloride_mmol_l":115,"primary_process":"metabolic acidosis","anion_gap_mmol_l":2,"bicarbonate_mmol_l":18,"formula_expression":"Berend 2014: acidemia if pH<7.38; alkalemia if pH>7.42; metabolic acidosis if pH<7.38 and HCO3<22; metabolic alkalosis if pH>7.42 and HCO3>26; respiratory acidosis if pH<7.38 and PaCO2>42; respiratory alkalosis if pH>7.42 and PaCO2<38; anion_gap=Na-Cl-HCO3 (high if >12); albumin-corrected AG=AG+2.5*(4.0-albumin) when albumin<4.0 g/dL; metabolic acidosis expected PaCO2=1.5*HCO3+8±2; metabolic alkalosis expected PaCO2=0.7*(HCO3-24)+40±2; acute respiratory acidosis HCO3 +1 per 10 mm Hg PaCO2 above 40; chronic +4 to +5; acute respiratory alkalosis HCO3 -2 per 10 mm Hg PaCO2 below 40; chronic -4 to -5; ketoacidosis delta-delta=ΔAG-ΔHCO3; lactic delta-delta=0.6*ΔAG-ΔHCO3 (simple if -5 to 5)","secondary_response":"additional respiratory acidosis","expected_paco2_mm_hg":35,"expected_paco2_low_mm_hg":33,"expected_paco2_high_mm_hg":37},{"ph":7.28,"formula":"abg","citation":{"id":"berend-2014-acid-base","doi":"10.1056/NEJMra1003327","pmid":"25295502","title":"Physiological Approach to Assessment of Acid-Base Disturbances","source":"N Engl J Med. 2014;371:1434-1445","authors":"Berend K, de Vries APJ, Gans ROB"},"criteria":[{"met":true,"value":7.28,"factor":"acidemia"},{"met":false,"value":7.28,"factor":"alkalemia"},{"met":true,"value":18,"factor":"metabolic_acidosis"},{"met":false,"value":18,"factor":"metabolic_alkalosis"},{"met":false,"value":39,"factor":"respiratory_acidosis"},{"met":false,"value":39,"factor":"respiratory_alkalosis"},{"met":false,"value":2,"factor":"high_anion_gap"},{"met":true,"value":2,"factor":"normal_anion_gap"}],"disorders":["acidemia","metabolic acidosis","normal anion-gap acidosis","additional respiratory acidosis"],"ph_status":"acidemia","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.","paco2_mm_hg":39,"sodium_mmol_l":135,"anion_gap_class":"normal","chloride_mmol_l":115,"primary_process":"metabolic acidosis","anion_gap_mmol_l":2,"bicarbonate_mmol_l":18,"formula_expression":"Berend 2014: acidemia if pH<7.38; alkalemia if pH>7.42; metabolic acidosis if pH<7.38 and HCO3<22; metabolic alkalosis if pH>7.42 and HCO3>26; respiratory acidosis if pH<7.38 and PaCO2>42; respiratory alkalosis if pH>7.42 and PaCO2<38; anion_gap=Na-Cl-HCO3 (high if >12); albumin-corrected AG=AG+2.5*(4.0-albumin) when albumin<4.0 g/dL; metabolic acidosis expected PaCO2=1.5*HCO3+8±2; metabolic alkalosis expected PaCO2=0.7*(HCO3-24)+40±2; acute respiratory acidosis HCO3 +1 per 10 mm Hg PaCO2 above 40; chronic +4 to +5; acute respiratory alkalosis HCO3 -2 per 10 mm Hg PaCO2 below 40; chronic -4 to -5; ketoacidosis delta-delta=ΔAG-ΔHCO3; lactic delta-delta=0.6*ΔAG-ΔHCO3 (simple if -5 to 5)","secondary_response":"additional respiratory acidosis","expected_paco2_mm_hg":35,"expected_paco2_low_mm_hg":33,"expected_paco2_high_mm_hg":37}]}},"iconUrl":"https://api.magentlab.com/favicon.ico"},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object","required":["ph","paco2_mm_hg","bicarbonate_mmol_l","sodium_mmol_l","chloride_mmol_l"],"properties":{"ph":{"type":"number","description":"Arterial pH (6.80-7.80). Acidemia if pH<7.38; alkalemia if pH>7.42 (Berend 2014 Table 1)."},"paco2_mm_hg":{"type":"number","description":"Arterial PaCO2 in mm Hg (8-120). Respiratory acidosis if pH<7.38 and PaCO2>42; respiratory alkalosis if pH>7.42 and PaCO2<38."},"albumin_g_dl":{"type":"number","description":"Serum albumin in g/dL (1-6). When supplied and below 4.0 g/dL, anion gap is increased by 2.5 mmol/L per 1 g/dL decrease (Figure 1). Omitted skips the correction."},"sodium_mmol_l":{"type":"number","description":"Serum sodium in mmol/L (110-160). Used for anion gap Na-Cl-HCO3."},"lactate_mmol_l":{"type":"number","description":"Serum lactate in mmol/L (0-30) when supplied. Echoed only; magent does not pick keto vs lactic delta-delta from lactate. Both printed equations are returned when the anion gap is high."},"chloride_mmol_l":{"type":"number","description":"Serum chloride in mmol/L (70-130). Used for anion gap Na-Cl-HCO3."},"bicarbonate_mmol_l":{"type":"number","description":"Plasma bicarbonate in mmol/L (2-55). Metabolic acidosis if pH<7.38 and HCO3<22; metabolic alkalosis if pH>7.42 and HCO3>26."}}},"maxItems":25,"minItems":1}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"type":"string","const":"POST"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}}},"description":"Berend 2014 physiological acid-base assessment. Labels acidemia or alkalemia, primary metabolic vs respiratory process, anion gap (Na-Cl-HCO3), optional albumin-corrected gap, and printed delta-delta. Not a diagnosis, ventilator order, bicarbonate dose, or blood-gas assay.","lastUpdated":"2026-09-28T14:18:38.963Z","serviceName":"magent","x402Version":2}]}}