{
  "x402Version": 2,
  "id": 39185,
  "slug": "39185",
  "resource": "https://api.magentlab.com/api/calc/estimated_ethanol",
  "description": "Fasting Watson 1981 theoretical Co from ingested ethanol grams and sex-specific Watson 1980 total body water. Blood-water fraction 0.80; absorbed fraction 1. Fasting Widmark-type estimate only. Ethanol only; not a medicolegal BAC or treatment dose.",
  "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": [
              {
                "age": 30,
                "ethanol_g": 14,
                "height_cm": 175,
                "height_in": 68.9,
                "sex": "male",
                "weight_kg": 70,
                "weight_lb": 154.3
              },
              {
                "age": 30,
                "ethanol_g": 14,
                "height_cm": 175,
                "height_in": 68.9,
                "sex": "male",
                "weight_kg": 70,
                "weight_lb": 154.3
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "absorbed_fraction": 1,
                "age_years": 30,
                "blood_water_fraction": 0.8,
                "citation": {
                  "authors": "Watson PE, Watson ID, Batt RD",
                  "doi": "10.15288/jsa.1981.42.547",
                  "id": "watson-1981",
                  "pmid": "7289599",
                  "source": "J Stud Alcohol. 1981;42(7):547-556",
                  "title": "Prediction of blood alcohol concentrations in human subjects. Updating the Widmark Equation"
                },
                "co_g_l": 0.267,
                "co_mg_dl": 26.7,
                "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.",
                "ethanol_g": 14,
                "formula": "watson_1981",
                "formula_expression": "TBW_L (male) = 2.447 - 0.09516*age_years + 0.1074*height_cm + 0.3362*weight_kg; TBW_L (female) = -2.097 + 0.1069*height_cm + 0.2466*weight_kg; Co_g_l = absorbed_fraction * ethanol_g * blood_water_fraction / TBW_L (fasting absorbed_fraction = 1, blood_water_fraction = 0.80)",
                "height_cm": 175,
                "sex": "male",
                "tbw_l": 41.92,
                "weight_kg": 70
              },
              {
                "absorbed_fraction": 1,
                "age_years": 30,
                "blood_water_fraction": 0.8,
                "citation": {
                  "authors": "Watson PE, Watson ID, Batt RD",
                  "doi": "10.15288/jsa.1981.42.547",
                  "id": "watson-1981",
                  "pmid": "7289599",
                  "source": "J Stud Alcohol. 1981;42(7):547-556",
                  "title": "Prediction of blood alcohol concentrations in human subjects. Updating the Widmark Equation"
                },
                "co_g_l": 0.267,
                "co_mg_dl": 26.7,
                "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.",
                "ethanol_g": 14,
                "formula": "watson_1981",
                "formula_expression": "TBW_L (male) = 2.447 - 0.09516*age_years + 0.1074*height_cm + 0.3362*weight_kg; TBW_L (female) = -2.097 + 0.1069*height_cm + 0.2466*weight_kg; Co_g_l = absorbed_fraction * ethanol_g * blood_water_fraction / TBW_L (fasting absorbed_fraction = 1, blood_water_fraction = 0.80)",
                "height_cm": 175,
                "sex": "male",
                "tbw_l": 41.92,
                "weight_kg": 70
              }
            ],
            "path": "/api/calc/estimated_ethanol"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (18-120). Used in male TBW; required for both sexes.",
                          "type": "integer"
                        },
                        "ethanol_g": {
                          "description": "Ingested ethanol mass in grams (0-500). Watson 1981 does not publish a mass clamp; one US standard drink is about 14 g.",
                          "type": "number"
                        },
                        "height_cm": {
                          "description": "Height in centimeters (50-250). Provide height_cm or height_in.",
                          "type": "number"
                        },
                        "height_in": {
                          "description": "Height in inches (20-98). Converted as cm = in * 2.54.",
                          "type": "number"
                        },
                        "sex": {
                          "description": "Sex for Watson 1980 TBW: male uses age, height, and weight; female uses height and weight only.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "weight_kg": {
                          "description": "Weight in kilograms (1-500). Provide weight_kg or weight_lb.",
                          "type": "number"
                        },
                        "weight_lb": {
                          "description": "Weight in pounds (2-1100). Converted as kg = lb * 0.45359237.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "sex",
                        "age",
                        "ethanol_g"
                      ],
                      "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": [
    "ethanol",
    "electrolytes",
    "widmark",
    "tbw",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T03:27:03.296Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T03:27:02.972Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 30,
                  "ethanol_g": 14,
                  "height_cm": 175,
                  "height_in": 68.9,
                  "sex": "male",
                  "weight_kg": 70,
                  "weight_lb": 154.3
                },
                {
                  "age": 30,
                  "ethanol_g": 14,
                  "height_cm": 175,
                  "height_in": 68.9,
                  "sex": "male",
                  "weight_kg": 70,
                  "weight_lb": 154.3
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "absorbed_fraction": 1,
                  "age_years": 30,
                  "blood_water_fraction": 0.8,
                  "citation": {
                    "authors": "Watson PE, Watson ID, Batt RD",
                    "doi": "10.15288/jsa.1981.42.547",
                    "id": "watson-1981",
                    "pmid": "7289599",
                    "source": "J Stud Alcohol. 1981;42(7):547-556",
                    "title": "Prediction of blood alcohol concentrations in human subjects. Updating the Widmark Equation"
                  },
                  "co_g_l": 0.267,
                  "co_mg_dl": 26.7,
                  "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.",
                  "ethanol_g": 14,
                  "formula": "watson_1981",
                  "formula_expression": "TBW_L (male) = 2.447 - 0.09516*age_years + 0.1074*height_cm + 0.3362*weight_kg; TBW_L (female) = -2.097 + 0.1069*height_cm + 0.2466*weight_kg; Co_g_l = absorbed_fraction * ethanol_g * blood_water_fraction / TBW_L (fasting absorbed_fraction = 1, blood_water_fraction = 0.80)",
                  "height_cm": 175,
                  "sex": "male",
                  "tbw_l": 41.92,
                  "weight_kg": 70
                },
                {
                  "absorbed_fraction": 1,
                  "age_years": 30,
                  "blood_water_fraction": 0.8,
                  "citation": {
                    "authors": "Watson PE, Watson ID, Batt RD",
                    "doi": "10.15288/jsa.1981.42.547",
                    "id": "watson-1981",
                    "pmid": "7289599",
                    "source": "J Stud Alcohol. 1981;42(7):547-556",
                    "title": "Prediction of blood alcohol concentrations in human subjects. Updating the Widmark Equation"
                  },
                  "co_g_l": 0.267,
                  "co_mg_dl": 26.7,
                  "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.",
                  "ethanol_g": 14,
                  "formula": "watson_1981",
                  "formula_expression": "TBW_L (male) = 2.447 - 0.09516*age_years + 0.1074*height_cm + 0.3362*weight_kg; TBW_L (female) = -2.097 + 0.1069*height_cm + 0.2466*weight_kg; Co_g_l = absorbed_fraction * ethanol_g * blood_water_fraction / TBW_L (fasting absorbed_fraction = 1, blood_water_fraction = 0.80)",
                  "height_cm": 175,
                  "sex": "male",
                  "tbw_l": 41.92,
                  "weight_kg": 70
                }
              ],
              "path": "/api/calc/estimated_ethanol"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (18-120). Used in male TBW; required for both sexes.",
                            "type": "integer"
                          },
                          "ethanol_g": {
                            "description": "Ingested ethanol mass in grams (0-500). Watson 1981 does not publish a mass clamp; one US standard drink is about 14 g.",
                            "type": "number"
                          },
                          "height_cm": {
                            "description": "Height in centimeters (50-250). Provide height_cm or height_in.",
                            "type": "number"
                          },
                          "height_in": {
                            "description": "Height in inches (20-98). Converted as cm = in * 2.54.",
                            "type": "number"
                          },
                          "sex": {
                            "description": "Sex for Watson 1980 TBW: male uses age, height, and weight; female uses height and weight only.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "weight_kg": {
                            "description": "Weight in kilograms (1-500). Provide weight_kg or weight_lb.",
                            "type": "number"
                          },
                          "weight_lb": {
                            "description": "Weight in pounds (2-1100). Converted as kg = lb * 0.45359237.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "sex",
                          "age",
                          "ethanol_g"
                        ],
                        "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"
  }
}