GET /api/mcp/fitness
GET /api/mcp/fitnessAuthorization: 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.
Query parameters
Section titled “Query parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | Yes | Start date YYYY-MM-DD |
to | string | Yes | End date YYYY-MM-DD |
Response
Section titled “Response”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 from–to 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).
Example
Section titled “Example”curl "https://mydatafor.life/api/mcp/fitness?from=2025-01-01&to=2025-03-31" \ -H "Authorization: Bearer $FITREPO_API_KEY"