get https://api.humanapi.co/v1/human/activities
Activities are specific types of physical activities that occur during a given period of time.
Returns a list of activity segments
GET https://api.humanapi.co/v1/human/activities
Returns a single activity segment
GET https://api.humanapi.co/v1/human/activities/{id}
Response Properties
Property | Type | Description |
---|---|---|
id | String | The id of the resource. |
userId | String | [deprecated - use humanId] |
humanId | String | Unique user identifier |
startTime | Date | The start time of the activity in UTC time |
endTime | Date | The end time of the activity in UTC time |
tzOffset | String | The offset from UTC time in +/-hh:mm (e.g. -04:00) |
type | String | The type of activity, such as walking, running, cycling |
source | String | The id of the originating service |
duration | Number | The duration (in seconds) |
distance | Number | The distance (in meters) **Property unavailable for MyFitnessPal. Will return 0 as default value |
steps | Number | The number of steps taken during the activity **Property unavailable for MyFitnessPal, Strava, and Apple Health. Will return 0 as default value. |
calories | Number | The number of estimated calories burned during the activity **Property available for Strava only for certain activities like bike rides or virtual bike rides. Otherwise, will return 0 as default value |
sourceData | Object | Additional data from the source that does not fit into the Human API model |
updatedAt | Date | The time the measurement was updated on the Human API server |
createdAt | Date | The time the measurement was created on the Human API server |