BMI Calculator

FREEMIUM
By carter383 | Updated a month ago | Health and Fitness
Popularity

8.9 / 10

Latency

457ms

Service Level

90%

Health Check

100%

README


BMI Calculator API Documentation

Overview:
The BMI Calculator API is a fast and reliable service that determines an individualโ€™s Body Mass Index (BMI) based on their height and weight. Designed for seamless integration with health and fitness applications, wellness websites, and medical software, this RESTful API supports accurate BMI calculations. It includes optional adjustments for age and gender, catering to a diverse global audience. Users can submit measurements in metric (kg, cm), imperial (lbs, inches), or a combination of both, enhancing flexibility for different user needs. The API provides BMI values along with categories like Underweight, Normal, Overweight, and Obese, aiding developers and health professionals in promoting health awareness and personal well-being.

Parameters:
The API accepts height and weight measurements in various units, allowing for either unified or mixed unit submissions:

  • Metric Units:

    • cm: Height in centimeters (Example: 183)
    • kg: Weight in kilograms (Example: 75)
  • Imperial Units:

    • stone: Weight in stones (Example: 11)
    • pounds: Additional pounds (Example: 11)
    • feet: Height in feet (Example: 6)
    • inches: Additional inches (Example: 0)

This flexibility supports custom data input based on user preferences or available measurements.

Example Request in Python:

import requests

url = "https://bmi-calculator9.p.rapidapi.com/BMI_Calculator"

querystring = {"cm":"183", "kg":"75", "stone":"11", "pounds":"11", "feet":"6", "inches":"0"}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY_HERE",
    "X-RapidAPI-Host": "bmi-calculator9.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=querystring)
print(response.json())

Response:
The API returns the calculated Body Mass Index in the following JSON format:

{
  "BMI": "22.40"
}

This response provides the BMI value based on the height and weight parameters submitted, facilitating immediate interpretation and application.


Followers: 0
API Creator:
Rapid account: Carter 383
carter383
carter383
Log In to Rate API
Rating: 5 - Votes: 1