Skip to content

Retrieve Workouts

François Dupont edited this page Jun 5, 2026 · 6 revisions

Endpoint:

  • /get/training/
  • HTTP Method: GET

Parameters :

limit: integer, optional, default = 30 : maximum number of workouts returned
id: int, optional. if you already have a training id you can put here to get only that training
from: string, optional, date format: "YYYY-MM-DD" : get all workouts after this date
to: string, optional, date format: "YYYY-MM-DD", can be combined with from : get all workouts before this date
athlete_id: integer, optional, default = current user. can be used to retrieve data from one of your managed athlete, you can retrieve the ids with the Get_athletes route -> https://github.com/NolioApp/NolioAPI-Documentation/wiki/User-Get-Athletes

Returned workouts are ordered from the last one

Example:

Production:
https://www.nolio.io/api/get/training/?from=2021-04-03&to=2021-04-04&limit=2

See Training

Returns: An athlete’s workouts

[
  {
    "nolio_id": 4998195,
    "name": "CaP - Fartleck Trail",
    "sport": "Running",
    "sport_id": 2,
    "date_start": "2021-04-04",
    "date_end": "",
    "duration": 4109,
    "distance": 11.97,
    "rpe": 5,
    "feeling": 4,
    "description": "The place to be",
    "elevation_gain": 250.0,
    "elevation_loss": 240.0,
    "is_competition": false,
    "kilojoules": 0,
    "avg_watt": 0,
    "max_watt": 0,
    "load_foster": 342.4166666666667,
    "load_coggan": 68.48333333333332,
    "rest_hr_user": 50,
    "max_hr_user": 190,
    "np": 0,
    "ftp": 305.0,
    "rftp": 0,
    "weight": 66.0,
    "critical_power": 303.0,
    "wbal": 22000.0,
    "zones": {
      "heartrate": [
        {"min": 120, "max": 140, "duration": 1800}
      ]
    },
    "file_url": "<file_url>",
    "planned_name": "CaP - Fartleck Trail",
    "planned_sport": "Running",
    "planned_sport_id": 2,
    "planned_description": "",
    "planned_load_coggan": 0
  },
  {
    "nolio_id": 4986055,
    "name": "Bike",
    "sport": "Bike",
    "sport_id": 14,
    "date_start": "2021-04-03",
    "date_end": "",
    "duration": 12965,
    "distance": 77.71,
    "rpe": 3,
    "feeling": 4,
    "description": "",
    "elevation_gain": 820.0,
    "elevation_loss": 815.0,
    "is_competition": false,
    "kilojoules": 2390.0,
    "avg_watt": 184.0,
    "max_watt": 642.0,
    "load_foster": 648.25,
    "load_coggan": 131.65223201172338,
    "rest_hr_user": 50,
    "max_hr_user": 180,
    "np": 184.40765380859375,
    "ftp": 305.0,
    "rftp": 0,
    "weight": 66.0,
    "critical_power": 303.0,
    "wbal": 22000.0,
    "zones": {
      "watts": [
        {"min": 0, "max": 150, "duration": 600},
        {"min": 150, "max": 250, "duration": 2100}
      ]
    },
    "file_url": "<file_url>",
    "planned_name": "Bike",
    "planned_sport": "Bike",
    "planned_sport_id": 14,
    "planned_description": "",
    "planned_load_coggan": 0
  }
]

Clone this wiki locally