体脂率计算
GET
无需 Key
运行中
接口简介
体脂率计算API,输入体重、性别、腰围、身高4项基础数据,快速精准计算并返回体脂率结果,算法科学权威,响应即时,适配健康管理、健身APP、个人健康监测等场景。
接口地址
https://api.lolimi.cn/API/xxjc/api2请求示例
测试访问https://api.lolimi.cn/API/xxjc/api2?weight=50&gender=男&waist=10&height=1.85返回预览
JSON{
"code": 2,
"text": "获取成功!",
"msg": "您的体脂率大约为:27.840242971826%"
}
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| weight | int | Required | 体重(公斤) |
| gender | string | Required | 性别(男/女) |
| waist | int | Required | 围腰(厘米) |
| height | int | Required | 身高(米,例如1米86应写作1.86) |
返回参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| code | int | 状态码 |
| text | string | 获取状态 |
| text | string | 计算体脂率结果 |
参数配置
登录获取 KeyResponseWaiting...
<?php
$url = "https://api.lolimi.cn/API/xxjc/api2";
$params = array (
'weight' => 'value',
'gender' => 'value',
'waist' => 'value',
'height' => 'value',
);
$url .= '?' . http_build_query($params);
$res = file_get_contents($url);
echo $res;