{
"bmi": 22.9,
"category": "Normal weight",
"healthyWeightRangeKg": [
56.7,
76.3
],
"note": "BMI is a screening measure for adults, not a diagnosis."
}
curl --location --request GET 'https://zylalabs.com/api/14238/health+calculator+api+-+bmi+calories+macros/35338/bmi?weight=70&height=175&units=metric' --header 'Authorization: Bearer YOUR_API_KEY'
{
"bmrKcal": 1649,
"formula": "Mifflin-St Jeor"
}
curl --location --request GET 'https://zylalabs.com/api/14238/health+calculator+api+-+bmi+calories+macros/35339/basal+metabolic+rate?weight=70&height=175&units=metric&age=30&sex=male' --header 'Authorization: Bearer YOUR_API_KEY'
{
"bmrKcal": 1649,
"tdeeKcal": 2556,
"activity": "moderate",
"goals": {
"lose": 2056,
"maintain": 2556,
"gain": 2856
},
"formula": "Mifflin-St Jeor x activity factor"
}
curl --location --request GET 'https://zylalabs.com/api/14238/health+calculator+api+-+bmi+calories+macros/35340/daily+calories+tdee?weight=70&height=175&units=metric&age=30&sex=male&activity=moderate' --header 'Authorization: Bearer YOUR_API_KEY'
{
"goal": "lose",
"calories": 2056,
"macros": {
"proteinG": 140,
"fatG": 57,
"carbsG": 246
},
"split": {
"protein": 27.2,
"fat": 25,
"carbs": 47.9
}
}
curl --location --request GET 'https://zylalabs.com/api/14238/health+calculator+api+-+bmi+calories+macros/35341/macros+for+a+goal?weight=70&height=175&units=metric&age=30&sex=male&activity=moderate&goal=lose' --header 'Authorization: Bearer YOUR_API_KEY'
{
"idealWeightKg": {
"devine": 66,
"robinson": 64.1,
"miller": 65.2,
"hamwi": 65.1
},
"averageKg": 65.1
}
curl --location --request GET 'https://zylalabs.com/api/14238/health+calculator+api+-+bmi+calories+macros/35342/ideal+weight?sex=female&units=metric&height=175' --header 'Authorization: Bearer YOUR_API_KEY'
{
"bodyFatPercent": 14.5,
"method": "U.S. Navy circumference method"
}
curl --location --request GET 'https://zylalabs.com/api/14238/health+calculator+api+-+bmi+calories+macros/35343/body+fat+navy+method?height=175&neck=38&waist=82&sex=male&units=metric' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Health Calculator API - BMI Calories Macros simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Each endpoint returns health and fitness-related data, including BMI, BMR, daily calorie needs (TDEE), macro distribution, ideal weight, and body fat percentage. The data is provided in both metric and imperial units, allowing for flexible usage.
Key fields include "bmi," "bmrKcal," "tdeeKcal," "macros," "idealWeightKg," and "bodyFatPercent." Each field provides specific health metrics, such as BMI category, daily calorie targets, and macro breakdowns for dietary goals.
Parameters vary by endpoint but generally include user metrics like weight, height, age, gender, and activity level. Users can customize requests by providing these parameters to receive tailored health calculations.
The response data is structured in JSON format, with clear key-value pairs. For example, the TDEE endpoint includes "tdeeKcal," "activity," and "goals," making it easy to interpret and utilize for health planning.
Typical use cases include personal health tracking, fitness planning, dietary adjustments, and weight management. Users can leverage the API to set goals for weight loss, maintenance, or gain based on calculated metrics.
Data accuracy is maintained through established formulas like Mifflin-St Jeor for BMR and the U.S. Navy method for body fat calculation. These methods are widely recognized in health and fitness communities, ensuring reliable outputs.
For instance, "bmi" indicates body mass index, while "category" classifies it (e.g., normal weight). "tdeeKcal" represents total daily energy expenditure, and "macros" details the grams of protein, fat, and carbohydrates needed for specific goals.
Users can utilize the data to create personalized fitness and nutrition plans. For example, knowing the TDEE and macro breakdown allows users to adjust their diets according to their weight goals, ensuring they meet their nutritional needs.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund