We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
GuidesHealth Service KitAccessing Health KitCloud-side Data OpennessData TypesOverview

Overview

Health Service Kit provides the following health and fitness data types:

  • Atomic sampling data
  • Exercise record data
  • Health record data

Atomic Sampling Data

Health Service Kit provides the following public sampling data types in the com.huawei namespace:

  • Daily activity
  • Sports
  • Health sampling data

Sampling points are classified into the following types:

  • Atomic sampling detailed data
  • Atomic sampling statistical data

These two types of data are available for most sampling data types.

Atomic Sampling Detailed 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.

Atomic Sampling Statistical Data Types

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.

Custom Sampling Data Types

In addition to the preceding atomic sampling detailed and statistical data types, Health Service Kit also supports custom sampling data types.

NOTE

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:

Collapse
Word wrap
Dark theme
Copy code
  1. POST
  2. https://health-api.cloud.huawei.com/healthkit/v2/dataCollectors
  3. Content-Type: application/json
  4. Authorization: Bearer ***
  5. {
  6. "collectorName": "DataCollectorExample",
  7. ...
  8. "collectorDataType": {
  9. "field": [
  10. {
  11. "name": "customizedField1",
  12. "format": "integer"
  13. },
  14. {
  15. "name": "customizedField2",
  16. "format": "float"
  17. }
  18. ],
  19. "name": "customized.datatypename"
  20. },
  21. ...
  22. }

Exercise Record Data

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.

Health 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.

Data Openness of Wearables and Huawei Health

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.

Open Atomic Sampling Data Types

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.

Expand

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

Open Exercise Record Data Types

You can obtain exercise record data using ActivityRecord from smart wearables or the Huawei Health app. For details, please refer to Exercise Record Data.

Open Health Record Data Types

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.

Data Query Timeliness

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.

NOTE
  • The delay of real-time data openness may vary depending on whether the screen is kept on and whether the app is allowed to run in the background. (For non-Huawei phones, users need to manually set whether to allow the app to run in the background.)
  • Users can open the Huawei Health app and manually synchronize data to ensure real-time data openness.
Search in Guides
Enter a keyword.