This API provides many formulas to compute many things as your Body Mass Index (BMI), your Body Fat Percetage (BFP) or to compute food energy and the list is growing !
The first thing is to create an account on RapidAPI to obtain an API key. Then follow the RapidAPI documentation to use the API with your preferred programming language.
This route respond only to POST request. The more you add parameters, the more results you will have. For example, if you provide just height and weight parameters (let’s take 190 cm and 80 Kg for this example), you will only have this:
{
"height": 190,
"weight": 88,
"idealBodyWeight": {
"peterson": {
"formulaName": "Peterson et al.",
"metric": {
"value": 87.8,
"unit": [
"Kg",
"kilograms"
]
},
"imperial": {
"value": 169.9,
"unit": [
"lbs",
"pounds"
]
}
}
},
"bodyMassIndex": {
"value": 24.4,
"conclusion": "Normal",
"unit": "Kg/m²"
}
}
But, if you provide a gender (“male” for example), you will have many more things:
{
"height": 190,
"weight": 88,
"gender": "male",
"idealBodyWeight": {
"peterson": {
"formulaName": "Peterson et al.",
"metric": {
"value": 87.8,
"unit": [
"Kg",
"kilograms"
]
},
"imperial": {
"value": 193.7,
"unit": [
"lbs",
"pounds"
]
}
},
"lorentz": {
"formulaName": "Lorentz",
"metric": {
"value": 80,
"unit": [
"Kg",
"kilograms"
]
},
"imperial": {
"value": 176.4,
"unit": [
"lbs",
"pounds"
]
}
},
"hamwi": {
"formulaName": "Hamwi",
"metric": {
"value": 88,
"unit": [
"Kg",
"kilograms"
]
},
"imperial": {
"value": 193.9,
"unit": [
"lbs",
"pounds"
]
}
},
"devine": {
"formulaName": "Devine",
"metric": {
"value": 84,
"unit": [
"Kg",
"kilograms"
]
},
"imperial": {
"value": 185.3,
"unit": [
"lbs",
"pounds"
]
}
},
"robinson": {
"formulaName": "Robinson",
"metric": {
"value": 80.1,
"unit": [
"Kg",
"kilograms"
]
},
"imperial": {
"value": 176.6,
"unit": [
"lbs",
"pounds"
]
}
},
"miller": {
"formulaName": "Miller",
"metric": {
"value": 77.1,
"unit": [
"Kg",
"kilograms"
]
},
"imperial": {
"value": 169.9,
"unit": [
"lbs",
"pounds"
]
}
}
},
"bodyMassIndex": {
"value": 24.4,
"conclusion": "Normal",
"unit": "Kg/m²"
}
}
Simple as that ! Now we will explain what you can compute.
Here is the list of all available parameters.
Note: actually the API essentially uses the metric system for the input data but we do not exclude to also use the imperial system. Metric and imperial system are used to output data.
The BMI needs two parameters
and as the result, you get an object named bodyMassIndex that contains
{
"bodyMassIndex": {
"value": 24.4,
"conclusion": "Normal",
"unit": "Kg/m²"
}
}
The Body Fat Percentage (BFP) from BMI needs these parameters:
{
"bodyFatPercentage": {
"bmi": {
"formulaName": "From BMI",
"value": 20,
"conclusion": "Acceptable",
"unit": [
"%",
"percents"
]
}
}
}
The Lean Body Mass (LBM) calculated from the BMI needs two parameters
As the result you get an object in leanBodyMass.bmi containing
{
"bmi": {
"formulaName": "From BMI",
"value": 70.4,
"unit": [
"Kg",
"kilograms"
]
}
}
The Lean Body Mass (LBM) from the Department of Defense BFP formula needs two
parameters
As the result you get an object in leanBodyMass.dod containing
{
"formulaName": "From Department of Defense",
"value": 75.2,
"unit": [
"%",
"percents"
]
}
The Lean Body Mass (LBM) from the YMCA BFP formula needs two
parameters
As the result you get an object in leanBodyMass.ymca containing
{
"formulaName": "From YMCA",
"value": 74.6,
"unit": [
"%",
"percents"
]
}
The Resting Daily Energy Expenditure (RDEE) from BMI needs one parameters
As the result you get an object in restingDailyEnergyExpenditure containing
{
"bmi": {
"formulaName": "Katch-McArdle",
"calories": {
"value": 1890.6,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 7910.3,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
The Resting Daily Energy Expenditure (RDEE) from Department of Defense needs one parameters
As the result you get an object in restingDailyEnergyExpenditure containing
{
"dod": {
"formulaName": "Katch-McArdle",
"calories": {
"value": 1890.6,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 7910.3,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
The Resting Daily Energy Expenditure (RDEE) from YMCA needs one parameters
As the result you get an object in restingDailyEnergyExpenditure containing
{
"ymca": {
"formulaName": "Katch-McArdle",
"calories": {
"value": 1890.6,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 7910.3,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
The Basal Metabolic Rate (BMR) needs four parameters
As the result you get an object in basalMetabolicRate containing the result of
three formulas :
Each one contains
{
"hb": {
"formulaName": "Harris-Benedict",
"calories": {
"value": 2023.8,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 8467.6,
"unit": [
"Kj",
"kilojoules"
]
}
},
"rs": {
"formulaName": "Harris-Benedict revised by Roza-Shizgal",
"calories": {
"value": 2008.8,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 8404.8,
"unit": [
"Kcal",
"kilocalories"
]
}
},
"msj": {
"formulaName": "Harris-Benedict revised by Mifflin-St Jeor",
"calories": {
"value": 1923,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 8045.8,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
The TDEE from BMI needs two parameters
as the result you get an object in totalDailyEnergyExpenditure containing
{
"bmi": {
"formulaName": "From RDEE and BMI.",
"calories": {
"value": 2269,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 9493.5,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
The TDEE from Department of Defense needs two parameters
as the result you get an object in totalDailyEnergyExpenditure containing
{
"dod": {
"formulaName": "From RDEE and Department of Defense.",
"calories": {
"value": 2269,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 9493.5,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
The TDEE from YMCA needs two parameters
as the result you get an object in totalDailyEnergyExpenditure containing
{
"ymca": {
"formulaName": "From RDEE and YMCA",
"calories": {
"value": 2269,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 9493.5,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
The TDEE from Department of Defense needs two parameters
as the result you get an object in totalDailyEnergyExpenditure containing
{
"hb": {
"formulaName": "From RDEE and Harris-Benedict",
"calories": {
"value": 2269,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 9493.5,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
The TDEE from Roza-Shizgal needs two parameters
as the result you get an object in totalDailyEnergyExpenditure containing
{
"rs": {
"formulaName": "From RDEE and Roza-Shizgal",
"calories": {
"value": 2269,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 9493.5,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
The TDEE from Mifflin-St. Jeor needs two parameters
as the result you get an object in totalDailyEnergyExpenditure containing
{
"msj": {
"formulaName": "From RDEE and Mifflin-St. Jeor",
"calories": {
"value": 2269,
"unit": [
"Kcal",
"kilocalories"
]
},
"joules": {
"value": 9493.5,
"unit": [
"Kj",
"kilojoules"
]
}
}
}
You can compute the needed time to achieve a goal weight with these parameters
As the result you get an object in timeBeforeGoalWeight containing
{
"value": 46,
"unit": [
"d",
"days"
]
}
The Waist to Hip Ratio (WHR) needs two parameters
As the result you get an object in waistToHipRatio containing
{
"value": 0.88,
"conclusion": "Low health risk"
}
The Ideal Body Weight (IBW) from Peterson’s formula eeds two parameters
and as the result, you get an object named peterson nested in idealBodyWeight that contains
{
"idealBodyWeight": {
"peterson": {
"formulaName": "Peterson et al.",
"metric": {
"value": 87.8,
"unit": [
"Kg",
"kilograms"
]
}
}
}
}
The Ideal Body Weiht (IBW) from Lorentz’s formula needs three parameters
and as the result, you get an object named lorentz nested in idealBodyWeight that contains
{
"idealBodyWeight": {
"lorentz": {
"formulaName": "Lorentz",
"metric": {
"value": 80,
"unit": [
"Kg",
"kilograms"
]
}
}
}
}
The Ideal Body Weight (IBW) from Hawmi’s formula needs three parameters
and as the result, you get an object named hamwi nested in idealBodyWeight that contains
{
"idealBodyWeight": {
"hamwi": {
"formulaName": "Hamwi",
"metric": {
"value": 88,
"unit": [
"Kg",
"kilograms"
]
}
}
}
}
The Ideal Body Weight (IBW) from Devine’s formula needs three parameters
and as the result, you get an object named devine nested in idealBodyWeight that contains
{
"idealBodyWeight": {
"devine": {
"formulaName": "Devine",
"metric": {
"value": 84,
"unit": [
"Kg",
"kilograms"
]
}
}
}
}
The Ideal Body Weight (IBW) from Robinson’s formula needs three parameters
and as the result, you get an object named robinson nested in idealBodyWeight that contains
{
"idealBodyWeight": {
"robinson": {
"formulaName": "Robinson",
"metric": {
"value": 80.1,
"unit": [
"Kg",
"kilograms"
]
}
}
}
}
The Ideal Body Weight (IBW) from Miller’s formula needs three parameters
and as the result, you get an object named robinson nested in idealBodyWeight that contains
{
"idealBodyWeight": {
"miller": {
"formulaName": "Miller",
"metric": {
"value": 77.1,
"unit": [
"Kg",
"kilograms"
]
}
}
}
}