RapidAPI logo

Sign Up

Log In

BMI Calculator

PAID
By navii
Updated 3 months ago
Medical
7.7/10
Popularity Score
445ms
Latency
84%
Success Rate

BMI Calculator API Documentation

The most descriptive and accurate BMI Calculator API available on the internet!

View API Details
Main
POSTBMI
POSTBMI
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
POST DataJSON_STRING
REQUIRED"waist" and "hip" are optional.
Request Snippet
unirest.post("https://bmi.p.rapidapi.com/")
.header("X-RapidAPI-Host", "bmi.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"weight":{"value":"85.00","unit":"kg"},"height":{"value":"170.00","unit":"cm"},"sex":"m","age":"24","waist":"34.00","hip":"40.00"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://bmi.p.rapidapi.com/")
.header("X-RapidAPI-Host", "bmi.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"weight":{"value":"85.00","unit":"kg"},"height":{"value":"170.00","unit":"cm"},"sex":"m","age":"24","waist":"34.00","hip":"40.00"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication