{"slug":"api-magentlab-com-api-calc-ttkg-b2ce3a","title":"Transtubular potassium gradient (TTKG) from plasma potassium, urine potassium, p","host":"api.magentlab.com","method":"POST","resource":"https://api.magentlab.com/api/calc/ttkg","category":"other","description":"Transtubular potassium gradient (TTKG) from plasma potassium, urine potassium, plasma osmolality, and urine osmolality (Ethier JH et al., Am J Kidney Dis 1990). TTKG = (urine_k / potassium) / (urine_osm / plasma_osm), 1 decimal. Not valid when urine osmolality is not greater than plasma osmolality (","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":256,"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":[{"plasma_osm_mosm_kg":300,"potassium_mmol_l":4,"urine_k_mmol_l":40,"urine_osm_mosm_kg":600},{"plasma_osm_mosm_kg":300,"potassium_mmol_l":4,"urine_k_mmol_l":40,"urine_osm_mosm_kg":600}]},"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":{"plasma_osm_mosm_kg":{"description":"Plasma osmolality in mOsm/kg (240-400).","type":"number"},"potassium_mmol_l":{"description":"Plasma potassium in mmol/L (1.5-8.0).","type":"number"},"urine_k_mmol_l":{"description":"Urine potassium in mmol/L (1-200).","type":"number"},"urine_osm_mosm_kg":{"description":"Urine osmolality in mOsm/kg (50-1400). Must be greater than plasma_osm_mosm_kg.","type":"number"}},"required":["potassium_mmol_l","urine_k_mmol_l","plasma_osm_mosm_kg","urine_osm_mosm_kg"],"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":256,"error":null}],"description_full":"Transtubular potassium gradient (TTKG) from plasma potassium, urine potassium, plasma osmolality, and urine osmolality (Ethier JH et al., Am J Kidney Dis 1990). TTKG = (urine_k / potassium) / (urine_osm / plasma_osm), 1 decimal. Not valid when urine osmolality is not greater than plasma osmolality (water diuresis). Numeric TTKG only; not a potassium-disorder diagnosis or medical device.","last_updated":"2026-09-28T13:55:49.95Z","schemes":["exact"]}