/
Routine

Routine

GET: https://api.validic.com/v1/organizations/{organization_id}/users/{user_id}/routine.json

Activities that occur regularly throughout the day, without the specific goal of the exercise, for example, calories burned, steps taken, and stairs climbed. These activities are aggregated​ throughout the day.

Routine URLS

  • GET /v1/organizations/:organization_id/routine

  • GET /v1/organizations/:organization_id/routine/latest

  • GET /v1/organizations/:organization_id/users/:user_id/routine

  • GET /v1/organizations/:organization_id/users/:user_id/routine/latest

Routine Short URLS

  • GET /v1/routine/latest(.:format)

  • GET /v1/routine(.:format)

Parameters

The following section displays the parameters​ used to retrieve data.

Return Values

The following values are included in a standard response. Expanded data varies by source. You can locate a complete list of expanded fields here.

Return Value

Type

Description

Return Value

Type

Description

timestamp

String

Timestamp for the measurement set

utc_offset

String

Timezone information for the measurement set

steps

Double

The value of the measured quantity

distance

Double

The value of the measured quantity in meters

floors

Double

The value of the measured quantity

elevation

Double

The value of the measured quantity in meters

calories_burned

Double

The value of the measured quantity in kilocalories (Calories)

source

String

The short name of the application that recorded the activity

source_name

String

The display name of the application that recorded the activity

last_updated

String

Date and time when the measurement set was last updated

_id

String

Unique identifier of the activity (required for POST requests)

validated

Boolean

Value indicates the data you are receiving was generated using a device, opposed to being manually entered by an end user

water

Double

Water values are returned in mL. Please note, this data is reflective of the user's water log entries via Fitbit and NOT water logged as a meal.

active_duration

Double

The value of the measured quantity in seconds.

Additional Examples

Filter by date and expanded

GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users/{USER_ID}/routine.json?access_token={ORGANIZATION_ACCESS_TOKEN}&start_date=2015-09-01T00:00:00+00:00&end_date=2015-09-30T23:59:59+00:00&expanded=1

Filter by Source

GET https://api.validic.com/v1/routine.json?authentication_token={USER_ACCESS_TOKEN}&source={SOURCE}

Start Date of Activity

GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/routine.json?access_token={ORGANIZATION_ACCESS_TOKEN}&start_date=2014-03-10T00:00:00+00:00