Fitness Calculator API

Fitness Calculator API

Use 7 different Fitness Calculators with one API, Find “Ideal Body Weight”, “BMI”, “TDEE”, “BMR”, “ABSI”, “Waist-hip Ratio” and “Body Fat Percentage”.

API description

About the API:

This API will allow you to make different calculations based on your needs. Be able to calculate Body Mass Index, Body Metabolism rate, and more.  

 

What this API receives and what your API provides (input/output)?

  • All variables Must be in Metric System (cm, kg)
    (1 in = 2.54 cm)
    (1 lbs = 1kg / 2.205)

Later, depending on the endpoint you will receive the calculation. 

 

What are the most common uses cases of this API?

 

This API is ideal for those fitness apps that want to implement a calculator on it. This will allow your users to know how they are before starting the routine and track their progress through it. 

Also, this API is a good fit for those health apps that want to give advice on nutrition to their users based on their BMI or other indicators.  

 

Are there any limitations to your plans?

Besides API call limitations per month, there are no other limitations. 

API Documentation

Endpoints


Be able to calculate the person's Body Mass Index. 

All variables Must be in Metric System (cm, kg)
(1 in = 2.54 cm)
(1 lbs = 1kg / 2.205)

Possible responses: 

  • Under Weight
  • Normal Weight
  • Over Weight
  • Obesity class I
  • Obesity class II
  • Obesity class III



                                                                            
GET https://zylalabs.com/api/428/fitness+calculator+api/328/get+body+mass+index
                                                                            
                                                                        

Get Body Mass Index - Endpoint Features
Object Description
weight [Required] In Kgs
height [Required] In Cms
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"info":{"err":"make sure to add all params"}}
                                                                                                                                                                                                                    
                                                                                                    

Get Body Mass Index - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/428/fitness+calculator+api/328/get+body+mass+index?weight=77&height=165' --header 'Authorization: Bearer YOUR_API_KEY' 

    

BMR is the number of calories required to keep your body functioning at rest.



                                                                            
GET https://zylalabs.com/api/428/fitness+calculator+api/329/get+basal+metabolic+rate
                                                                            
                                                                        

Get Basal Metabolic Rate - Endpoint Features
Object Description
gender [Required] Male or Female
weight [Required] In Kgs
height [Required] In Cms
age [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"info":{"bmr":1726.095,"gender":"male"}}
                                                                                                                                                                                                                    
                                                                                                    

Get Basal Metabolic Rate - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/428/fitness+calculator+api/329/get+basal+metabolic+rate?gender=male&weight=75&height=170&age=33' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Find BFP value, Total Fat Mass & Lean Mass (Weight of everything except fat)
Available Health Status

  • Less than Essential Fat
  • Essential Fat
  • Athletes
  • Fitness
  • Acceptable
  • Obese



                                                                            
GET https://zylalabs.com/api/428/fitness+calculator+api/330/get+body+fat+percentage
                                                                            
                                                                        

Get Body Fat Percentage - Endpoint Features
Object Description
weight [Required] In Kgs
height [Required] In Cm
age [Required]
gender [Required] Male or Female
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"info":{"bfp":31.544000000000004,"fat_mass":23.658000000000005,"lean_mass":51.342,"description":"Obese","gender":"female"}}
                                                                                                                                                                                                                    
                                                                                                    

Get Body Fat Percentage - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/428/fitness+calculator+api/330/get+body+fat+percentage?weight=75&height=168&age=22&gender=female' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Get IBW in 4 different Formulas : 

  • Robinson
  • Miller
  • Devine
  • Hamwi



                                                                            
GET https://zylalabs.com/api/428/fitness+calculator+api/331/get+ideal+body+weight
                                                                            
                                                                        

Get Ideal Body Weight - Endpoint Features
Object Description
weight [Required] In Kgs
height [Required] In Cms
gender [Required] Male or Female
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"info":{"robinson":77.88188976377953,"miller":75.40708661417324,"devine":81.33070866141732,"hamwi":84.77952755905513,"gender":"male"}}
                                                                                                                                                                                                                    
                                                                                                    

Get Ideal Body Weight - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/428/fitness+calculator+api/331/get+ideal+body+weight?weight=95&height=187&gender=male' --header 'Authorization: Bearer YOUR_API_KEY' 

    

The ABSI index is used to estimate the risk of premature mortality based on health factors.
Available Mortality Risk Status

  • Very Low
  • Low
  • Average
  • High
  • Very High



                                                                            
GET https://zylalabs.com/api/428/fitness+calculator+api/332/get+a+body+shape+index
                                                                            
                                                                        

Get A Body Shape Index - Endpoint Features
Object Description
weight [Required] In Kgs
height [Required] In Cms
waist [Required] In Cms
age [Required]
gender [Required] Male or Female
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"info":{"absi":"0.0482","absiZ":"-8.6022","mortalityRisk":"Very low","gender":"male"}}
                                                                                                                                                                                                                    
                                                                                                    

Get A Body Shape Index - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/428/fitness+calculator+api/332/get+a+body+shape+index?weight=105&height=179&waist=66&age=34&gender=male' --header 'Authorization: Bearer YOUR_API_KEY' 

    

TDEE is the total amount of calories burned when the activity rate is taken into account..

Activity Level Possible Values

  • se => sedentary
  • la => lightly active
  • ma => moderately active
  • va => very active
  • ea => extra active



                                                                            
GET https://zylalabs.com/api/428/fitness+calculator+api/333/get+total+daily+energy+expenditure
                                                                            
                                                                        

Get Total Daily Energy Expenditure - Endpoint Features
Object Description
weight [Required] In Kgs
height [Required] In Cms
activitylevel [Required]
age [Required]
gender [Required] Male or Female
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"info":{"tdee":3218.3208000000004}}
                                                                                                                                                                                                                    
                                                                                                    

Get Total Daily Energy Expenditure - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/428/fitness+calculator+api/333/get+total+daily+energy+expenditure?weight=90&height=192&activitylevel=ma&age=28&gender=male' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

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 Fitness Calculator API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
291ms

Category:


Tags: