get_athlete_power_curves
Retrieve best power output for selected durations from Intervals.icu, for any date range or season, with indoor/outdoor filtering and normalized W/kg values. Get FFT-based power curves to analyze performance.
Instructions
Get power curves for an athlete from Intervals.icu.
Returns best power output for selected durations across specified time periods. Uses FFT power computation. Power values are in watts.
Args: activity_type: Activity type (e.g. "Ride", "Run", "VirtualRide"). Default is "Ride". durations: Durations in seconds to include. Default is [5, 15, 30, 60, 120, 300, 600, 1200, 3600] indoor_outdoor: Filter by location — "indoor" or "outdoor". Omit for no filtering. start_date: Start date (YYYY-MM-DD) for custom date range curve. Must be used with end_date. end_date: End date (YYYY-MM-DD) for custom date range curve. Must be used with start_date. this_season: Include this season's curve (default True) last_season: Include last season's curve (default True) include_normalised: Include weight-normalised W/kg values (default True) athlete_id: Intervals.icu athlete ID (optional, uses ATHLETE_ID from .env if not provided) api_key: Optional API key override. Uses API_KEY from .env if not provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| end_date | No | ||
| durations | No | ||
| athlete_id | No | ||
| start_date | No | ||
| last_season | No | ||
| this_season | No | ||
| activity_type | No | Ride | |
| indoor_outdoor | No | ||
| include_normalised | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |