Get Workout Totals
Changed onReturns the count, duration, energy and distance of the workouts the same filters would list.
Added up in the database, so it covers every matching workout however many there are, without paging through them.
Request
- Base URL: https://api.openwearables.io (the document declares no server; this is the origin it was published from)
- URL: https://api.openwearables.io/api/v1/users/{user_id}/events/workouts/totals
- Auth: OAuth 2 (password, token URL /api/v1/auth/login)
Path parameters
Query parameters
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and cover the whole day, so a date-only range includes both boundary days.
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and cover the whole day, so a date-only range includes both boundary days.
Unified workout/activity types for Polar, Suunto, and Garmin.
Based on FIT SDK sport types and common activities across platforms. Excludes branded/niche activities (e.g., LES MILLS classes, specific dance types).
Exact normalized workout type. Unlike record_type, does not substring-match.
Supported data providers.
Headers
Response
Successful Response
Example response
{
"count": 42,
"duration_seconds": 95400,
"calories_kcal": 18250.5,
"distance_meters": 212400
}Changes
- info
endpoint added
- info