目录

Step Count

This data refers to the number of steps taken within a period of time. Each data record represents the step count accumulated within the specific period (from start time to end time). Data records cannot overlap. The start time of the next data record must be later than or equal to the end time of the previous data record.

OAuth Scope

To apply for the required scopes, go to Activity data > Steps on the Console of HUAWEI Developers.

Atomic Sampling Detailed Data Types

Field

Description

Constant in the SDK for Android

Type

Mandatory

Unit

Value Range

steps_delta

Incremental step count.

Field.FIELD_STEPS_DELTA

int

Yes

Step

Value range over 1 minute: (0, 500]

Value range over 1 hour: (0, 30000]

[h2]Data Openness

Open API

Query Timeliness

Data Source

Read health and fitness data

In 10 minutes

Mobile phones, watches, bands, etc.

  1. If no step count detailed data is found through the API for reading health and fitness data, please refer to What can I do if no data is found when I query the step count details to troubleshoot.
  2. Exercise record data generated by Huawei smart wearables or the Huawei Health app contains step count statistics only, without sampling data of step count details.
  3. When inserting step count details, the interval between sampling points must be greater than or equal to 1 minute.
  4. To display inserted step details in the Huawei Health app, make sure that the interval between sampling points is 1 minute.

Atomic Sampling Statistical Data Types

Field

Description

Constant in the SDK for Android

Type

Mandatory

Unit

steps

Total step count.

Field.FIELD_STEPS

int

Yes

Step

duration

Walking duration.

Field.FIELD_DURATION

int

No

Minute

[h2]Data Openness

Open API

Timeliness

Statistical Dimension

Data Source

Read the statistics of the day

In minutes

Sampling data by the current day

Mobile phones, watches, bands, etc.

Read the statistics of multiple days

In minutes

Sampling data by calendar days

Mobile phones, watches, bands, etc.

Query exercise record data

In 10 minutes

Exercise record summary

Mobile phones, watches, bands, etc.