Skip to main content

BMI Calculator is a simple tool for calculating body mass index. It returns the calculated BMI based on the weight and height provided.

Project description

BMI Calculator API

BMI Calculator is a simple tool for calculating body mass index. It returns the calculated BMI based on the weight and height provided.

Build Status Code Climate Prod Ready

This is a Python API Wrapper for the BMI Calculator API


Installation

pip install apiverve-bmicalculator

Configuration

Before using the bmicalculator API client, you have to setup your account and obtain your API Key.
You can get it by signing up at https://apiverve.com


Usage

The BMI Calculator API documentation is found here: https://docs.apiverve.com/api/bmicalculator.
You can find parameters, example responses, and status codes documented here.

Setup

# Import the client module
from apiverve_bmicalculator.apiClient import BmicalculatorAPIClient

# Initialize the client with your APIVerve API key
api = BmicalculatorAPIClient("[YOUR_API_KEY]")

Perform Request

Using the API client, you can perform requests to the API.

Define Query
query = { "weight": 70,  "height": 170,  "unit": "metric" }
Simple Request
# Make a request to the API
result = api.execute(query)

# Print the result
print(result)
Example Response
{
  "status": "ok",
  "error": null,
  "data": {
    "height": "170 cm",
    "weight": "70 kg",
    "bmi": 24.221453287197235,
    "risk": "Low risk",
    "summary": "This weight is normal and you are healthy.",
    "recommendation": "A BMI between 18.5 and 24.9 falls within the 'normal' weight range according to the World Health Organization. This range is associated with the lowest health risk for conditions such as heart disease, diabetes, and certain cancers. However, it's important to note that BMI is not a perfect measure as it does not account for muscle mass, bone density, overall body composition, and racial and sex differences. Therefore, while it's a useful starting point, it should not be the only measure of one's health."
  },
  "code": 200
}

Customer Support

Need any assistance? Get in touch with Customer Support.


Updates

Stay up to date by following @apiverveHQ on Twitter.


Legal

All usage of the APIVerve website, API, and services is subject to the APIVerve Terms of Service and all legal documents and agreements.


License

Licensed under the The MIT License (MIT)

Copyright (©) 2025 APIVerve, and EvlarSoft LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apiverve_bmicalculator-1.1.8.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apiverve_bmicalculator-1.1.8-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file apiverve_bmicalculator-1.1.8.tar.gz.

File metadata

  • Download URL: apiverve_bmicalculator-1.1.8.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for apiverve_bmicalculator-1.1.8.tar.gz
Algorithm Hash digest
SHA256 3852cfcca09a941f9af8d3634d19f5eff62434187bc2c7cb6f4ab20c25c74e15
MD5 94a1bc4a611b2d6d54f8ba5482b1c4cc
BLAKE2b-256 628c1005940407aa115299282a2a766bdf7dbdb99230896796f1adbd68c95f19

See more details on using hashes here.

File details

Details for the file apiverve_bmicalculator-1.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for apiverve_bmicalculator-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 87a78a03c30fd869ddd1c61ac81fb876b78f80739401e5babffa89a38b9ec233
MD5 229e731c2e3f8abf59a7c1f8714d8eaa
BLAKE2b-256 eb614d969a7fbfab71e75df01371479e45b7f73238ca7a4e9d539b9505351fd5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page