get_fueling_analysis
Analyze carbohydrate, fluid, and sodium intake versus usage and sweat loss for one activity or a selected period.
Instructions
Use for carbohydrate, fluid and sodium intake of one activity (activity_id) or of the long sessions of a period (default the last 90 days, sessions of at least min_minutes; read-only).
Carbs used (Intervals.icu estimate) and ingested (logged total) in g and g/h, the ingested share of used, kcal and kJ, and fluid intake, sodium and sweat loss per hour where custom fields exist (found by units and name). One activity also gets the intake per hour from a custom intake stream, if there is one. Period: statistics per sport family, by duration and by intensity, Spearman correlations from 8 sessions, with sample sizes. Not logged is never 0; used minus ingested is no 1:1 energy deficit; no targets. Method: intervals://methods/fueling (get_guide).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | Last day YYYY-MM-DD (period mode); default today | |
| athlete_id | No | Default: the configured athlete | |
| start_date | No | First day YYYY-MM-DD (period mode); default 89 days before end_date; max 366 days | |
| activity_id | No | One activity, e.g. i123456789; omit for the period mode | |
| min_minutes | No | Minimum moving time in minutes (period mode), not negative | |
| sport_types | No | Comma-separated activity types (period mode), e.g. "Ride,GravelRide" | |
| detail_level | No | period: compact = per sport family; standard adds duration/IF buckets, correlations, 15 sessions; full lists all sessions. One activity: compact omits notes | standard |
| output_format | No | json = machine-readable, all fields | text |