Repository navigation
Retrieve Streams Workout
François Dupont edited this page Jun 5, 2026
·
7 revisions
- /get/training/streams/
- HTTP Method: GET
Parameters :
id: integer, required (nolio_id workout)
athlete_id: integer, optional, default = current user. Can be used to retrieve data from one of your managed athletes. You can retrieve the ids with the [Get Athletes](https://github.com/NolioApp/NolioAPI-Documentation/wiki/User-Get-Athletes) route.
nolio_id can be retrieve through /get/training/ endpoint
Example:
Production:
https://www.nolio.io/api/get/training/streams/?id=4998195
Each stream is returned as a parallel array: all arrays share the same length and index, so stream_heartrate[i] and stream_watts[i] describe the same sample. A stream with no data is returned as an empty array.
Returns: Workout streams data
{
"file_url": "<file_url>",
"stream_heartrate": [
149, 152, 153, 150, 150, 153, 153, 151, 152
],
"stream_torque": [
...
],
"stream_watts": [
...
],
"stream_cadence": [
...
],
"stream_pace": [
...
],
"stream_altitude": [
...
],
"stream_distance": [
...
],
"stream_time": [
...
],
"custom_laps": [
{
"name": "Lap 1",
"order": 0,
"comment": "",
"distance": 1000,
"duration": 240,
"metadata": {}
}
]
}custom_laps are the manual laps defined on the workout. The key is only present when the workout has at least one custom lap.
| Field | Type | Unit | Comment |
|---|---|---|---|
| name | String | Lap name | |
| order | Integer | Lap position | |
| comment | String | Free-text comment | |
| distance | Float | meters | Lap distance |
| duration | Integer | seconds | Lap duration |
| metadata | Object | Additional lap data |
-
204No Content — the workout has no associated file, so no stream is available. -
400Bad request — invalidid, or the training does not exist / is not accessible.