# Magent WHR Calculator

> Magent WHR 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).

Computes waist–hip ratio (WHR) from waist and hip circumference measurements using WHO 2011 published arithmetic

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/whr
- 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/magent-whr-calculator-7d6d84f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E3PoeexHc2s8VK8A3Bbiz

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 magent-whr-calculator-7d6d84f1
```

Example prompt: Calculate the waist-hip ratio for a waist circumference of 85 cm and a hip circumference of 100 cm using the WHO 2011 formula.

## When to prefer this

Choose this endpoint when you need a fast, deterministic WHR calculation based on the WHO 2011 published formula, especially when inputs may be in either centimeters or inches and automatic unit conversion is needed. Prefer it over general-purpose math tools when you want a citable, standards-based anthropometric computation without implementing the formula yourself.

## Known failure modes

- Missing required measurement: if neither waist_cm nor waist_in is provided, or neither hip_cm nor hip_in, the request will fail
- Out-of-range values: waist or hip circumference outside 40–200 cm range may be rejected
- Conflicting units: providing both _cm and _in variants for the same measurement may cause ambiguity
- Non-numeric inputs will produce a validation error

## How this service works

Waist–hip ratio from waist and hip circumference (WHO 2011 expert consultation). WHR = waist_cm / hip_cm after the same unit normalize; optional inches convert as cm = in * 2.54. Deterministic published arithmetic with citation. Not a medical device, body-fat diagnosis, or cardiovascular diagnosis; magent does not apply obesity or sex-specific cutoffs and does not measure the patient.

## Output

Returns the computed waist-hip ratio (WHR) as a dimensionless decimal number (e.g. 0.85), derived by dividing waist circumference by hip circumference after normalizing both inputs to centimeters. Inputs in inches are automatically converted using cm = in × 2.54.

## 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": [],
     "properties": {
      "hip_cm": {
       "type": "number",
       "description": "Hip circumference in centimeters (40-200). Provide hip_cm or hip_in."
      },
      "hip_in": {
       "type": "number",
       "description": "Hip circumference in inches. Converted as cm = in * 2.54."
      },
      "waist_cm": {
       "type": "number",
       "description": "Waist circumference in centimeters (40-200). Provide waist_cm or waist_in."
      },
      "waist_in": {
       "type": "number",
       "description": "Waist circumference in inches. Converted as cm = in * 2.54."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-whr-calculator-7d6d84f1/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)
