Get activity
get_activityFetch a single Garmin Connect activity by ID to view its type, start time, duration, distance, heart rate, calories, and raw record data.
Instructions
Return one activity by id: type, start time (UTC and local wall clock), duration, distance, heart rate and calories, plus Garmin's full record under raw.
Ids come from list_activities, recent_strength_sessions or week_summary. It has no per-set or per-lap detail: for a strength session's exercises, reps and weights use get_activity_sets; for a run, ride or swim's laps and pacing, get_activity_laps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity_id | Yes | Garmin's activity id, from list_activities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| name | No | ||
| steps | No | ||
| max_hr | No | ||
| calories | No | ||
| has_sets | No | Whether this is a strength activity, the kind that carries per-set detail. | |
| average_hr | No | ||
| distance_m | No | ||
| duration_s | No | ||
| start_time | No | Start instant, UTC. | |
| activity_id | Yes | ||
| activity_type | No | ||
| start_time_local | No | Wall-clock start where the activity happened, as YYYY-MM-DDTHH:MM:SS. Deliberately has no timezone: Garmin gives the time, not the zone. | |
| moving_duration_s | No | ||
| elapsed_duration_s | No |