Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Health Service Kit provides the following health and fitness data types:
Health Service Kit provides the following public sampling data types in the com.huawei namespace:
Sampling points are classified into the following types:
These two types of data are available for most sampling data types.
A data sampling point consists of the value of the data type field and the timestamp information. It indicates data obtained instantaneously. Any raw detailed data collected by a data collector (such as a smart band) falls into the atomic sampling detailed data type.
A data sampling point consists of the value of the data type field, the timestamp information, and a time range. It indicates data obtained within a time range.
In addition to the preceding atomic sampling detailed and statistical data types, Health Service Kit also supports custom sampling data types.
However, a custom sampling data type cannot use the namespace of Health Service Kit, that is, com.huawei. If the package name starts with com.huawei, the custom data type will conflict with the existing data types of Huawei, and therefore can't be created.
A custom data type must start with the app package name.
Creating custom data types
You can create a custom data type, by creating a data collector (see Creating a Data Collector) and specifying the name of the data type and field definitions for it. For example:
- POST
- https://health-api.cloud.huawei.com/healthkit/v2/dataCollectors
- Content-Type: application/json
- Authorization: Bearer ***
-
- {
- "collectorName": "DataCollectorExample",
- ...
- "collectorDataType": {
- "field": [
- {
- "name": "customizedField1",
- "format": "integer"
- },
- {
- "name": "customizedField2",
- "format": "float"
- }
- ],
- "name": "customized.datatypename"
- },
- ...
- }
Detailed data of a workout, like a run or a jump rope session, that lasts for a certain period of time. Consists of workout type, app and device information, start and end times, exercise record characteristics, associated atomic sampling statistical data, and associated atomic sampling detailed data.
For details about exercise record data and each workout type, please refer to Exercise Record Data.
Data of a health record, like a sleep record (com.huawei.health.record.sleep) or ECG measurement record, that lasts for a certain period of time. Consists of health record type, data collector (app and device information), start and end times, health record characteristics, associated atomic sampling statistical data, and associated atomic sampling detailed data.
For details about health record data and each type of health record, please refer to health record data.

You can use the open capabilities of Health Service Kit to obtain health and fitness data generated by Huawei smart wearables and the Huawei Health app.
For Android integration, please refer to Data Openness of Wearables and Huawei Health.
Restrictions:
The user must authorize Health Service Kit to access data in the Huawei Health app. For details, please refer to Open Authorization in Huawei Health.
The table below lists the types of atomic sampling data that your app can obtain – using SampleSet – from the Huawei Health app. Such data is uploaded by wearables to the Huawei Health app.
| Category | Description | Data Type | Remarks |
|---|---|---|---|
| Daily activity | Step count | com.huawei.continuous.steps.delta | Mobile phones, watches, and bands |
| Distance | com.huawei.continuous.distance.delta | Mobile phones, watches, and bands | |
| Active calories | com.huawei.continuous.calories.burnt | Mobile phones, watches, and bands | |
| Moderate to high intensity | com.huawei.continuous.exercise_intensity.v2 | Mobile phones, watches, and bands | |
| Altitude | com.huawei.instantaneous.altitude | Selected watches and bands | |
| Hours active | com.huawei.active_hours | Mobile phones, watches, bands, etc. | |
| Daily activity statistics | com.huawei.daily_activity_summary | Mobile phones, watches, bands, etc. | |
| Health data | Height | com.huawei.instantaneous.height | Mobile phones |
| Weight | com.huawei.instantaneous.body_weight | Mobile phones, and Huawei and other compatible body fat scales (ecosystem devices) | |
| Heart rate | com.huawei.instantaneous.heart_rate | Watches and bands | |
| Resting heart rate | com.huawei.instantaneous.resting_heart_rate | Watches and bands | |
| Sleep status | com.huawei.continuous.sleep.fragment | Watches and bands | |
| SpO2 | com.huawei.instantaneous.spo2 | Selected watches and bands | |
| Blood glucose | com.huawei.instantaneous.blood_glucose | Third-party blood glucose meters (ecosystem devices) | |
| Blood pressure | com.huawei.instantaneous.blood_pressure | Blood pressure watches (WATCH D) and ecosystem blood pressure monitors | |
| Stress | com.huawei.instantaneous.stress | Watches and high-end bands | |
| Body temperature | com.huawei.instantaneous.body.temperature | Selected watches | |
| Skin temperature | com.huawei.instantaneous.skin.temperature | Selected watches | |
| ECG measurement details | com.huawei.continuous.ecg_detail | Selected watches | |
| Maximum oxygen uptake | com.huawei.vo2max | Selected professional watches and bands |
You can obtain exercise record data using ActivityRecord from smart wearables or the Huawei Health app. For details, please refer to Exercise Record Data.
You can obtain health measurement record data using HealthRecord from smart wearables or the Huawei Health app. For details, please refer to health record data.
Due to reasons such as power consumption, the data in the Huawei Health app cannot be uploaded to the cloud in real time. For details, please refer to the data query timeliness of each data type.