Pricing
from $1.00 / 1,000 results
Go to Apify Store
BMI Calculator
A simple and efficient tool to calculate **Body Mass Index (BMI)** using metric or imperial units. Designed for developers, data pipelines, and health-related applications.
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 months ago
Last modified
Categories
Share
โ๏ธ BMI Calculator
A simple and efficient tool to calculate Body Mass Index (BMI) using metric or imperial units. Designed for developers, data pipelines, and health-related applications.
๐ Features
- ๐ Supports metric (kg/cm) and imperial (lbs/inches) units
- โก Fast and accurate BMI calculation
- ๐ง Optional inputs: age and gender for extended insights
- ๐ก๏ธ Input validation with strict schema
- ๐ Easy integration into APIs, scripts, and automation workflows
๐ฅ Input Schema
| Field | Type | Required | Description |
|---|---|---|---|
weight | number | โ Yes | Body weight (kg or lbs based on unit) |
height | number | โ Yes | Height (cm or inches based on unit) |
unit | string | โ No | metric (default) or imperial |
age | number | โ No | Optional age in years |
gender | string | โ No | Optional: male or female |
โ๏ธ How It Works
๐ BMI Formula
- Metric:
BMI=weight(kg)/(height(m))ยฒ
- Imperial:
BMI=703 ร weight(lbs)/(height(in))ยฒ
๐งฎ Example
Input
{"weight":70,"height":175,"unit":"metric"}
Output
{"bmi":22.86,"category":"Normal weight"}
๐ BMI Categories
| BMI Range | Category |
|---|---|
| < 18.5 | Underweight |
| 18.5 โ 24.9 | Normal weight |
| 25 โ 29.9 | Overweight |
| โฅ 30 | Obese |
๐๏ธ Use Cases
- Health and fitness apps
- API-based BMI services
- Data analysis pipelines
- Web or mobile applications
- Automation tools (Apify actors, etc.)
โก Notes
- Height is automatically converted to meters when using metric
ageandgenderare optional and do not affect BMI calculation directly- Ensure valid numeric inputs for accurate results
๐ ๏ธ Example Logic (Pseudo Code)
if unit =="metric":height_m = height /100bmi = weight /(height_m **2)else:bmi =703* weight /(height **2)
๐ License
MIT License
