Workout
GET /v2/activity/workout
Changed onGet all workouts for a user, paginated. Results are sorted by start time in descending order.
Request
- Base URLhttps://api.prod.whoop.com/developer
- AuthOAuth 2Authorization codehttps://api.prod.whoop.com/oauth/oauth2/authToken URLhttps://api.prod.whoop.com/oauth/oauth2/tokenScopesread:workout
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
limitinteger
Limit on the number of workouts returned
startstring date-time
Return workouts that occurred after or during (inclusive) this time. If not specified, the response will not filter workouts by a minimum time.
endstring date-time
Return workouts that intersect this time or ended before (exclusive) this time. If not specified, end will be set to now.
nextTokenstring
Optional next token from the previous response to get the next page. If not provided, the first page in the collection is returned
Response
Successful request
Example response
{
"records": [
{
"id": "ecfc6a15-4661-442f-a9a4-f160dd7afae8",
"v1_id": 1043,
"user_id": 9012,
"created_at": "2022-04-24T11:25:44.774Z",
"updated_at": "2022-04-24T14:25:44.774Z",
"start": "2022-04-24T02:25:44.774Z",
"end": "2022-04-24T10:25:44.774Z",
"timezone_offset": "-05:00",
"sport_name": "running",
"score_state": "SCORED",
"score": {
"strain": 8.2463,
"average_heart_rate": 123,
"max_heart_rate": 146,
"kilojoule": 1569.34033203125,
"percent_recorded": 100,
"distance_meter": 1772.77035916,
"altitude_gain_meter": 46.64384460449,
"altitude_change_meter": -0.781372010707855,
"zone_durations": {
"zone_zero_milli": 300000,
"zone_one_milli": 600000,
"zone_two_milli": 900000,
"zone_three_milli": 900000,
"zone_four_milli": 600000,
"zone_five_milli": 300000
}
},
"sport_id": 1
}
],
"next_token": "MTIzOjEyMzEyMw"
}Changes
- info
endpoint added
- info