Skip to content

Body Fat API (Metric Input)

Estimate body fat percentage from BMI-derived model inputs and return sex-specific classification bands.

Endpoint

  • GET /api/v1/bodyfat
  • POST /api/v1/bodyfat/post

Parameters

Name Type Required In Description
gender string (male,female) Yes Query/Body Biological sex.
age number Yes Query/Body Age in years.
height number Yes Query/Body Height in centimeters.
weight number Yes Query/Body Weight in kilograms.
units string (metric,imperial) No Query/Body Output display format only. Defaults to metric.
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Add body-fat estimation without skinfold devices.
  • Segment users by adiposity band for coaching automation.
  • Combine with BMI/BMR endpoints for complete composition context.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/bodyfat?gender=female&age=33&height=165&weight=68&units=metric&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/bodyfat/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"gender":"female","age":33,"height":165,"weight":68,"units":"metric"}'

Response Example

Info

The response example below is for demonstration purposes only. Make a live request to this endpoint to receive the full, real-time, and potentially richer JSON structure.

{
  "height": "1.6 m",
  "weight": "68.0 kg",
  "bmi": "25.0 kg/m2",
  "bodyfat": "31.29 %",
  "age": 33.0,
  "gender": "female",
  "bodyfat_status": "Obese",
  "bodyfat_percent": 31.29,
  "bmi_value": 24.98,
  "bodyfat_band": "obese",
  "bodyfat_band_label": "Obese",
  "risk_signal": "Adiposity risk is elevated.",
  "action_plan": ["Reduce visceral fat drivers", "Improve consistency"],
  "monitoring_plan": "Review trend every 4 weeks.",
  "language": "en",
  "_enterprise": {
    "client": "Acme Health",
    "plan": "pro",
    "request_id": "6f143d4f3f26f891",
    "quota": 120,
    "usage_tracking": true
  },
  "_api_metadata_": {
    "api_name": "Health Fitness API by Dakidarts®",
    "endpoint_name": "bodyfat",
    "response_language": "en"
  }
}

Product Value

Useful for personalized nutrition apps, wellness dashboards, and preventive-care scoring systems.

Note

Input remains metric for calculations; units only changes display formatting in the response.