Steps

Use the stepsCounter query to obtain the total number of steps logged by the user for the specified date range.

Required Arguments

Argument

Type

Description

start

Date!

The start date when the steps will be counted. Use the format: YYYY-MM-DD

end

Date!

The end date when the steps will be counted. Use the format: YYYY-MM-DD

first

Int

Retrieves the first results from the list.

after

String

It takes the cursor type and retrieves results after that position.

id

ID

Id of desired tracking record.

Available Fields

Field Name

Type

Description

dailyGoal

Int!

Daily steps goal.

distance

Float!

Distance travelled from steps

steps

Int!

Total steps

datetime

DateTime!

Date the user logged their steps YYYY-MM-DDT hh:mm:ssZ

id

ID!

Id of the record.

source

String!

Source of input, default is set to suggestic.

Example

query{
  stepsCounter(start:20220831 end:20220901){
   dailyGoal
   distance
    edges{
      node{
        steps
        source
        datetime
        id
      }
    }
    
  }
}

Last updated