list_activities
Retrieve Strava activities with filters by calendar week or date range, and pagination. Returns activity details including distance, time, elevation, speed, heartrate, and power.
Instructions
List activities with filtering and pagination. Returns: id, name, type, sport_type, start_date, distance (m), moving_time (s), elapsed_time (s), total_elevation_gain (m), average_speed (m/s), heartrate, watts. Use week_offset for calendar weeks (0=this week, -1=last week). Monday-Sunday.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of activities to return (1-200, default: 10). For 'recent' or 'last N' queries, set this limit without date filters. Ignored when week_offset is set or both before/after are provided (fetches all in range). | |
| week_offset | No | Get activities from a specific calendar week (Monday-Sunday). 0 = this week, -1 = last week, -2 = two weeks ago, etc. PREFERRED for week-based queries. When set, 'before' and 'after' are ignored. | |
| before | No | ISO date string (e.g., '2024-12-31'). Activities before this date (exclusive). Ignored if week_offset is set. Use for custom date ranges only. | |
| after | No | ISO date string (e.g., '2024-01-01'). Activities after this date. Ignored if week_offset is set. Use for custom date ranges only. | |
| page | No | Page number for pagination (default: 1). Use to access older activities beyond the limit. Example: limit=10, page=2 returns activities 11-20. |