Strava

App · Health & Fitness · 12 actions

Track and manage workouts and activities via Strava.

Actions

ActionWhat it does
Create activityCreate a new activity in Strava.
Create reportBuild a summary report from the connected athlete's recent activities, with total distance, moving time, elevation, and a per-sport breakdown.
Get activityRetrieve detailed information about a specific activity.
Get activity streamsGet the readings a device recorded through an activity, such as heart rate, altitude, speed or position, as lists of values over time.
Get activity zonesGet how long an activity spent in each heart rate or power zone.
Get athlete profileGet the connected athlete's profile details, including name, city, and follower counts.
Get athlete statsGet activity statistics for the connected athlete.
List activity commentsList the comments people left on one of your activities, oldest first.
List activity kudosList the athletes who gave one of your activities kudos.
List activity lapsList an activity's laps, in order, with each one's distance, time and speed.
List athlete activitiesList the connected athlete's recent activities.
Update activityChange an activity's name, description, sport type or whether it's a commute.

Create activity

Create a new activity in Strava.

Inputs

NamenametextRequired
Activity name.
Sport typesport_typetextRequired
The activity's sport type.One of: AlpineSki (Alpine Ski), BackcountrySki (Backcountry Ski), Badminton, Canoeing, Crossfit, EBikeRide (E Bike Ride), Elliptical, EMountainBikeRide (E Mountain Bike Ride), Golf, GravelRide (Gravel Ride), and 40 more.
Start date and timestart_date_localdate and timeRequired
When the activity started.
Elapsed timeelapsed_timenumberRequired
Elapsed time in seconds.
Distancedistancenumber
Distance in meters.
Descriptiondescriptiontext
Activity description.

Outputs

Response envelope; the payload is in the "activity" field.

activityobject
Example output
{
  "activity": {
    "id": "123456789"
  }
}

Create report

Build a summary report from the connected athlete's recent activities, with total distance, moving time, elevation, and a per-sport breakdown.

Inputs

Number of activitiesactivity_countnumber
How many of the most recent activities to include in the report (1-200). Defaults to 30.From 1 to 200.

Outputs

activities_by_typeobject
Count of activities by sport type.
activity_countnumber
Number of activities summarized.
summarytext
A human-readable summary of the report.
total_distance_kmnumber
Total distance in kilometers.
total_distance_metersnumber
Total distance in meters.
total_elapsed_time_secondsnumber
Total elapsed time in seconds.
total_elevation_gain_metersnumber
Total elevation gain in meters.
total_moving_time_secondsnumber
Total moving time in seconds.
Example output
{
  "activities_by_type": {
    "Ride": 4,
    "Run": 8
  },
  "activity_count": 12,
  "summary": "Activity report for the 12 most recent activities: 84.21 km over 6.0 h moving time, 1240 m of elevation gain. Breakdown: Ride: 4, Run: 8.",
  "total_distance_km": 84.21,
  "total_distance_meters": 84213.0,
  "total_elapsed_time_seconds": 23400,
  "total_elevation_gain_meters": 1240.0,
  "total_moving_time_seconds": 21600
}

Get activity

Retrieve detailed information about a specific activity.

Inputs

Activity IDactivity_idnumberRequired
Activity ID to retrieve.

Outputs

Response envelope; the payload is in the "activity" field.

activityobject
Example output
{
  "activity": {
    "distance": 5000,
    "elapsed_time": 1600,
    "id": "987654321",
    "moving_time": 1500,
    "name": "Morning Run",
    "start_date": "2024-01-15T06:30:00Z",
    "type": "Run"
  }
}

Get activity streams

Get the readings a device recorded through an activity, such as heart rate, altitude, speed or position, as lists of values over time.

Inputs

Activityactivity_idnumberRequired
The activity whose readings to get: its ID from 'List athlete activities', 'Create activity' or the New activity trigger.
Readingstypeslist
Which readings to get. Leave empty for all that were recorded.One or more of: time, distance, latlng (Position (latitude, longitude)), altitude, velocity_smooth (Speed), heartrate (Heart rate), cadence, watts (Power), temp (Temperature), moving (Moving or stopped), grade_smooth (Gradient).

Outputs

countnumber
How many readings
streamslist
One list of values for each reading recorded
Example output
{
  "count": 1,
  "streams": [
    {
      "data": [
        128,
        131,
        135
      ],
      "original_size": 3,
      "resolution": "high",
      "series_type": "distance",
      "type": "heartrate"
    }
  ]
}

Get activity zones

Get how long an activity spent in each heart rate or power zone. Strava shows zones only to its subscribers.

Inputs

Activityactivity_idnumberRequired
The activity whose zones to get: its ID from 'List athlete activities', 'Create activity' or the New activity trigger.

Outputs

countnumber
How many sets of zones
zoneslist
One set of zones for heart rate and one for power
Example output
{
  "count": 1,
  "zones": [
    {
      "buckets": [
        {
          "max": 120,
          "min": 0,
          "time": 300
        }
      ],
      "score": 42,
      "sensor_based": true,
      "type": "heartrate"
    }
  ]
}

Get athlete profile

Get the connected athlete's profile details, including name, city, and follower counts.

Inputs

None.

Outputs

Response envelope; the payload is in the "profile" field.

profileobject
Example output
{
  "profile": {
    "city": "San Francisco",
    "country": "USA",
    "firstname": "Jordan",
    "follower_count": 250,
    "friend_count": 180,
    "id": "123456",
    "lastname": "Smith",
    "username": "rider123"
  }
}

Get athlete stats

Get activity statistics for the connected athlete.

Inputs

Athlete IDathlete_idnumberRequired
Athlete ID.

Outputs

Response envelope; the payload is in the "stats" field.

statsobject
Example output
{
  "stats": {
    "recent_ride_totals": {},
    "recent_run_totals": {},
    "ytd_ride_totals": {},
    "ytd_run_totals": {}
  }
}

List activity comments

List the comments people left on one of your activities, oldest first.

Inputs

Activityactivity_idnumberRequired
The activity whose comments to list: its ID from 'List athlete activities', 'Create activity' or the New activity trigger.
Most commentspage_sizenumber
The most comments to return, from 1 to 200. Defaults to 30.From 1 to 200.

Outputs

commentslist
The comments, oldest first
countnumber
How many comments
Example output
{
  "comments": [
    {
      "athlete_name": "Sam Rivera",
      "created_at": "2026-10-28T09:15:00Z",
      "id": "12345678",
      "text": "Great pace!"
    }
  ],
  "count": 1
}

List activity kudos

List the athletes who gave one of your activities kudos.

Inputs

Activityactivity_idnumberRequired
The activity whose kudos to list: its ID from 'List athlete activities', 'Create activity' or the New activity trigger.
Most athletesper_pagenumber
The most athletes to return, from 1 to 200. Defaults to 30.From 1 to 200.

Outputs

countnumber
How many athletes
kudoerslist
The athletes who gave kudos
Example output
{
  "count": 1,
  "kudoers": [
    {
      "firstname": "Sam",
      "lastname": "R.",
      "name": "Sam R."
    }
  ]
}

List activity laps

List an activity's laps, in order, with each one's distance, time and speed.

Inputs

Activityactivity_idnumberRequired
The activity whose laps to list: its ID from 'List athlete activities', 'Create activity' or the New activity trigger.

Outputs

countnumber
How many laps
lapslist
The laps, in order
Example output
{
  "count": 1,
  "laps": [
    {
      "average_speed": 3.39,
      "distance": 1000.0,
      "elapsed_time": 300,
      "id": "4479306946",
      "lap_index": 1,
      "max_speed": 4.1,
      "moving_time": 295,
      "name": "Lap 1",
      "start_date": "2026-10-28T08:00:00Z",
      "total_elevation_gain": 4.2
    }
  ]
}

List athlete activities

List the connected athlete's recent activities.

Inputs

Pagepagenumber
Which page of results to return. Defaults to 1.
Activities per pageper_pagenumber
How many activities to return per page. Defaults to 30.

Outputs

Response envelope; the payload is in the "activities" field.

activitieslist
Example output
{
  "activities": [
    {
      "distance": 5000,
      "id": "987654321",
      "moving_time": 1500,
      "name": "Morning Run",
      "start_date": "2024-01-15T06:30:00Z",
      "type": "Run"
    }
  ]
}

Update activity

Change an activity's name, description, sport type or whether it's a commute. Fields left empty stay as they are.

Inputs

Activity IDactivity_idnumberRequired
The activity to change: its ID from 'List athlete activities', 'Create activity' or the New activity trigger.
New namenametext
The activity's new name. Leave empty to keep it.
Descriptiondescriptiontext
The activity's new description, replacing the one it has. Leave empty to keep it.
Sport typesport_typetext
The activity's new sport type. Leave empty to keep it.One of: AlpineSki (Alpine Ski), BackcountrySki (Backcountry Ski), Badminton, Canoeing, Crossfit, EBikeRide (E Bike Ride), Elliptical, EMountainBikeRide (E Mountain Bike Ride), Golf, GravelRide (Gravel Ride), and 40 more.
Commutecommutetext
Whether it's a commute. Leave empty to keep it as it is.One of: yes (Yes, a commute), no (No, not a commute).

Outputs

Response envelope; the payload is in the "activity" field.

activityobject
Example output
{
  "activity": {
    "commute": false,
    "description": "Wet but fast.",
    "distance": 5000,
    "elapsed_time": 1600,
    "id": "987654321",
    "name": "Morning Run (rainy)",
    "sport_type": "Run",
    "start_date": "2024-01-15T06:30:00Z"
  }
}

On this page