bmi身体指数计算

GET

免费API提供BMI身体指数计算服务,根据用户的身高和体重计算出BMI值,帮助用户了解健康状况,适用于健康管理和应用开发。

https://api.brtl.cn/api/bmi
https://api.brtl.cn/api/bmi?height=180&weight=80

请求参数

请求示例

Shell
JavaScript
Python
PHP
Java
Go
C#
Ruby
curl -X GET 'https://api.brtl.cn/api/bmi?height=string&weight=string'

返回示例

{
  "code": 200,
  "msg": "数据请求成功",
  "data": {
    "bmi": 24.489795918367346,
    "msg": "您的身体指数过高,理想体重为70KG"
  }
}