Interested in joining a scientific study?Learn more

Utility API

Daily Energy Expenditure API

Available

Daily Energy Expenditure calculates basal metabolic rate and total daily energy expenditure from body profile and activity level.

POST/functions/v1/daily_energy_expenditure_calculation

Inputs

  • gender male or female
  • height in cm, weight in kg and age in years
  • activity level

Returns

  • Harris-Benedict formula label
  • BMR in kcal
  • TDEE in kcal with minus10% and plus10% range

Request JSON

{
  "gender": "female",
  "height": 168,
  "weight": 62,
  "age": 34,
  "activity": "office"
}

Response JSON

{
  "status": "ok",
  "formula": "Harris-Benedict",
  "results": {
    "basal_metabolic_rate_kcal": 1403,
    "total_daily_energy_expenditure_kcal": 1964,
    "total_daily_energy_expenditure_range_kcal": {
      "minus10%": 1768,
      "plus10%": 2160
    }
  }
}
curl -X POST 'https://tirqjzahcinadeulfylj.supabase.co/functions/v1/daily_energy_expenditure_calculation' \
  -H 'x-api-key: $MYMOLECULES_API_KEY' \
  -H 'Content-Type: application/json' \
  --data '{  "gender": "female",  "height": 168,  "weight": 62,  "age": 34,  "activity": "office"}'