Skip to content

GET /api/mcp/fitness

GET /api/mcp/fitness
Authorization: Bearer <api-key>

Returns daily CTL, ATL, and TSB values for a requested date range. A 90-day warmup period is automatically included before from so that values at the start of the window are accurate.

See Fitness Model (CTL/ATL/TSB) for calculation details.

ParameterTypeRequiredDescription
fromstringYesStart date YYYY-MM-DD
tostringYesEnd date YYYY-MM-DD

HTTP 200

[
{
"date": "2025-01-01",
"ctl": 68.4,
"atl": 72.1,
"tsb": -3.7
},
{
"date": "2025-01-02",
"ctl": 68.1,
"atl": 65.8,
"tsb": 2.3
}
]

The array contains one entry per calendar day in the fromto range (inclusive), even on rest days (where ctl and atl decay by their respective factors and tsb updates accordingly).

  • Only activities with TSS (i.e. power-meter cycling) contribute to CTL/ATL.
  • If you have no activities with power data, all values will be 0.
  • The maximum recommended range in a single request is 365 days (plus the 90-day warmup, the server fetches up to 455 days of data internally).
Terminal window
curl "https://mydatafor.life/api/mcp/fitness?from=2025-01-01&to=2025-03-31" \
-H "Authorization: Bearer $FITREPO_API_KEY"