Physical Metrics Calculation Library
  1. Body Fat Scale Body Data Parsing
Physical Metrics Calculation Library
  • Quick Start
  • Body Fat Scale Body Data Parsing
    • Err Error Codes
    • Get Temporary Token Based on AppKey
      POST
    • Alternating Current Four-Electrode Algorithm
      GET
    • Direct Current Four-Electrode Algorithm
      GET
    • Dual-frequency AC four-electrode
      GET
    • Alternating Current eight-electrode algorithm
      GET
  1. Body Fat Scale Body Data Parsing

Direct Current Four-Electrode Algorithm

GET
/openapi-bodydata/bodyData/getDcLfBodyData
乐福体脂秤身体数据解析(新版)

Request

Query Params
age
string 
optional
age
Example:
heartRate
string 
optional
heart rate
Example:
height
string 
optional
height (unit - cm)
Example:
impedance
string 
optional
impedance value (plaintext)
Example:
peopleType
string 
optional
people classification 0 (non-athlete) 1 (athlete)
Example:
sex
string 
optional
sex 0 (female) 1 (male)
Example:
weightKg
string 
optional
weight (unit - kg)
Example:
Header Params
token
string 
required
token,For more information on how to obtain it
Example:
{{token}}
Accept-Language
string 
optional
Language
Example:
zh

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://uniquehealth.lefuenergy.com/openapi-bodydata/bodyData/getDcLfBodyData?age= &heartRate= &height= &impedance= &peopleType= &sex= &weightKg= ' \
--header 'token: {{token}}' \
--header 'Accept-Language: zh'

Responses

🟢200OK
application/json
Body
code
integer <int32>
optional
data
object (LefuBody) 
optional
errorType
enum<string> 
required
Error type indicating the reasons for failure to calculate body fat and other indicators
Allowed values:
PP_ERROR_TYPE_AGEPP_ERROR_TYPE_HEIGHTPP_ERROR_TYPE_IMPEDANCE_TWO_LEGSPP_ERROR_TYPE_NONEPP_ERROR_TYPE_PEOPLE_TYPEPP_ERROR_TYPE_SEXPP_ERROR_TYPE_WEIGHT
Example:
PP_ERROR_TYPE_NONE
lefuBodyData
array[object (PPBodyDetailInfoModel) {9}] 
optional
Detailed body data
version
string  | null 
optional
Version number
Example:
Lefu_23_06_28
errorCode
integer <int32> | null 
optional
msg
string  | null 
optional
text
string  | null 
optional
Example
{
    "code": 0,
    "data": {
        "errorType": "PP_ERROR_TYPE_AGE",
        "lefuBodyData": [
            {
                "bodyParamKey": "string",
                "bodyParamName": "string",
                "currentValue": 75.5,
                "introduction": "string",
                "standSuggestion": "建议控制饮食,适当增加运动",
                "standardArray": "[0, 18.5, 25, 30, 42]",
                "standardTitle": "标准",
                "standeEvaluation": "超重",
                "unit": "kg"
            }
        ],
        "version": "Lefu_23_06_28"
    },
    "errorCode": 0,
    "msg": "string",
    "text": "string"
}
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Previous
Alternating Current Four-Electrode Algorithm
Next
Dual-frequency AC four-electrode
Built with