Skip to content

BAI API

Estimate body adiposity using hip circumference and height, then classify adiposity band by sex and age segment.

Endpoint

  • GET /api/v1/bai
  • POST /api/v1/bai/post

Parameters

Name Type Required In Description
sex string (male,female) Yes Query/Body Biological sex.
age integer Yes Query/Body Age in years.
hip number Yes Query/Body Hip circumference in centimeters.
height number Yes Query/Body Height in meters.
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Add body-fat proxy scoring when skinfold/DXA is unavailable.
  • Drive segmentation for nutrition and coaching programs.
  • Pair with BMI for stronger composition insights.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/bai?sex=female&age=35&hip=101&height=1.66&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/bai/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "sex": "female",
    "age": 35,
    "hip": 101,
    "height": 1.66
  }'

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.

{
  "BAI": "29.15 %",
  "Adiposity Classification": "Healthy",
  "Sex": "female",
  "Age": "35 Yrs",
  "Hip Circumference": "101.0 CM",
  "Height": "1.66 M",
  "bai_percent": 29.15,
  "adiposity_band": "healthy",
  "adiposity_band_label": "Healthy",
  "risk_signal": "Body adiposity is within expected range.",
  "action_plan": ["Maintain activity consistency"],
  "monitoring_plan": "Check trend monthly.",
  "language": "en",
  "_enterprise": {
    "client": "Acme Health",
    "plan": "pro",
    "request_id": "e2f6dd51ddfb87cb",
    "quota": 120,
    "usage_tracking": true
  },
  "_api_metadata_": {
    "api_name": "Health Fitness API by Dakidarts®",
    "endpoint_name": "bai",
    "response_language": "en"
  }
}

Market Angle

Useful for wellness platforms, employee health products, and coaching SaaS where quick body composition trend indicators are needed.

Note

height must be entered in meters (not centimeters) for this endpoint.