get_activities
Fetch your Intervals.icu workout activities within a specified date range to analyze training history, export data, or review performance metrics.
Instructions
Primary tool for fetching activities from intervals.icu for the configured athlete.
Best for: Getting complete list of activities within a date range, analyzing training history, exporting activity data. Not recommended for: Large date ranges without pagination; real-time activity tracking. Common mistakes: Using wrong date format (must be YYYY-MM-DD); requesting too large date ranges that may timeout. Prompt Example: "Get my activities from 2024-01-01 to 2024-01-31" or "Show me all activities from last week" Usage Example:
Tool Relationships: Use this first to get activity list, then use get_grouped_activities for aggregated analysis, or get specific activity details as needed. Returns: Complete activity data including id, name, type, distance, duration, power, heart rate, and other metrics.
Parameters
oldest_date : str The oldest date to fetch activities from (format: YYYY-MM-DD). This parameter is required. newest_date : str, optional The newest date to fetch activities from (format: YYYY-MM-DD). If not provided, no upper date limit is applied.
Returns
dict Dictionary containing: - status: "success" or "error" - count: Number of activities returned - activities: List of transformed activity objects
Raises
ValidationError: If date format is invalid. IntervalsError: If the API request fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oldest_date | Yes | ||
| newest_date | No |