RapidAPI logo

Health

FREEMIUM
By gabamnml
Updated 5 months ago
Medical
-/10
Popularity Score
-
Latency
-
Success Rate

Health API Documentation

Data to regulate your physical condition, Calculate Your BMI (body mass index).

View API Details
GET/bmi
GET/bmi

Returns the physical state of the body and the number of total muscle mass.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
weightNUMBER
REQUIREDWeight of a person. Accept kilos or pounds.
heightNUMBER
REQUIREDheight of a person. Accept meters or feet.
Code Snippet
unirest.get("https://gabamnml-health-v1.p.rapidapi.com/bmi?weight=60&height=1.70")
.header("X-RapidAPI-Host", "gabamnml-health-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://gabamnml-health-v1.p.rapidapi.com/bmi
Request Method: GET
Response Headers
Response Body

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.get("https://gabamnml-health-v1.p.rapidapi.com/bmi?weight=60&height=1.70")
.header("X-RapidAPI-Host", "gabamnml-health-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication