## BMI标准体重 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://img.kancloud.cn/c3/8b/c38b371a26b7b8887df25abe24c4ea2a_200x200.png) > 通过国际权威的标准体重指数(BMI)计算身材是否标准以及健康风险,成年人正常标准体重指数为18.5-23.9。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/bmi/index ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | appCode| string|是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | height | int | 是 | 身高,单位厘米(cm) | | weight | int | 是 | 体重,单位千克(kg) | | sex | int | 否 | 0为男性\[默认\],1为女性 | ### 返回`data`参数 | 名称 | 类型 | 示例值 | 说明 | | --- | --- | --- | --- | | bmi | int | 19.6 | 体重指数BMI | | normbmi | string | 18.5~23.9 | 正常BMI指数范围 | | idealweight | int | 64.4 | 标准体重 | | normweight | string | 57.96~70.80 | 正常体重范围 | | healthy | string | 风险一般 | 健康风险 | | tip | string | 哇,标准身材,请注意保持健康作息方式。 | 身材小贴士 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->bmiIndex() ->withHeight(172) ->withWeight(58) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "bmi":19.6, "normbmi":"18.5~23.9", "idealweight":64.4, "normweight":"57.96~70.84", "healthy":"风险一般", "tip":"哇,标准身材,请继续保持健康作息方式。" } ] } ~~~