strava.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
Activities
create
activities.create
Create a manual activity
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
sport_type | string | Yes | — |
start_date_local | string | Yes | — |
elapsed_time | number | Yes | — |
type | string | No | — |
commute | number | No | — |
trainer | number | No | — |
distance | number | No | — |
description | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
name | string | No | — |
sport_type | string | No | — |
start_date | string | No | — |
start_date_local | string | No | — |
elapsed_time | number | No | — |
moving_time | number | No | — |
distance | number | No | — |
total_elevation_gain | number | No | — |
timezone | string | No | — |
description | string | No | — |
calories | number | No | — |
map | object | No | — |
athlete | object | No | — |
gear_id | string | No | — |
commute | boolean | No | — |
trainer | boolean | No | — |
manual | boolean | No | — |
private | boolean | No | — |
resource_state | number | No | — |
kudos_count | number | No | — |
comment_count | number | No | — |
athlete_count | number | No | — |
photo_count | number | No | — |
average_speed | number | No | — |
max_speed | number | No | — |
average_heartrate | number | No | — |
max_heartrate | number | No | — |
average_watts | number | No | — |
max_watts | number | No | — |
kilojoules | number | No | — |
device_watts | boolean | No | — |
has_heartrate | boolean | No | — |
elev_high | number | No | — |
elev_low | number | No | — |
pr_count | number | No | — |
suffer_score | number | No | — |
workout_type | number | No | — |
start_latlng | number[] | No | — |
end_latlng | number[] | No | — |
upload_id | number | No | — |
external_id | string | No | — |
has_kudoed | boolean | No | — |
average_cadence | number | No | — |
device_name | string | No | — |
map full type
map full type
athlete full type
athlete full type
get
activities.get
Get details of an activity by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
include_all_efforts | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
name | string | No | — |
sport_type | string | No | — |
start_date | string | No | — |
start_date_local | string | No | — |
elapsed_time | number | No | — |
moving_time | number | No | — |
distance | number | No | — |
total_elevation_gain | number | No | — |
timezone | string | No | — |
description | string | No | — |
calories | number | No | — |
map | object | No | — |
athlete | object | No | — |
gear_id | string | No | — |
commute | boolean | No | — |
trainer | boolean | No | — |
manual | boolean | No | — |
private | boolean | No | — |
resource_state | number | No | — |
kudos_count | number | No | — |
comment_count | number | No | — |
athlete_count | number | No | — |
photo_count | number | No | — |
average_speed | number | No | — |
max_speed | number | No | — |
average_heartrate | number | No | — |
max_heartrate | number | No | — |
average_watts | number | No | — |
max_watts | number | No | — |
kilojoules | number | No | — |
device_watts | boolean | No | — |
has_heartrate | boolean | No | — |
elev_high | number | No | — |
elev_low | number | No | — |
pr_count | number | No | — |
suffer_score | number | No | — |
workout_type | number | No | — |
start_latlng | number[] | No | — |
end_latlng | number[] | No | — |
upload_id | number | No | — |
external_id | string | No | — |
has_kudoed | boolean | No | — |
average_cadence | number | No | — |
device_name | string | No | — |
map full type
map full type
athlete full type
athlete full type
getStreams
activities.getStreams
Get stream data for an activity
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
keys | time | distance | latlng | altitude | velocity_smooth | heartrate | cadence | watts | temp | moving | grade_smooth[] | Yes | — |
key_by_type | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
time | object | No | — |
distance | object | No | — |
latlng | object | No | — |
altitude | object | No | — |
velocity_smooth | object | No | — |
heartrate | object | No | — |
cadence | object | No | — |
watts | object | No | — |
temp | object | No | — |
moving | object | No | — |
grade_smooth | object | No | — |
time full type
time full type
distance full type
distance full type
latlng full type
latlng full type
altitude full type
altitude full type
velocity_smooth full type
velocity_smooth full type
heartrate full type
heartrate full type
cadence full type
cadence full type
watts full type
watts full type
temp full type
temp full type
moving full type
moving full type
grade_smooth full type
grade_smooth full type
getZones
activities.getZones
Get heart rate and power zones for an activity
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
object[]
Output full type
Output full type
list
activities.list
List the authenticated athlete’s activities
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
before | number | No | — |
after | number | No | — |
page | number | No | — |
per_page | number | No | — |
object[]
Output full type
Output full type
listComments
activities.listComments
List comments on an activity
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
page | number | No | — |
per_page | number | No | — |
object[]
Output full type
Output full type
listKudoers
activities.listKudoers
List athletes who kudoed an activity
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
page | number | No | — |
per_page | number | No | — |
object[]
Output full type
Output full type
listLaps
activities.listLaps
List laps of an activity
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
object[]
Output full type
Output full type
Athletes
get
athletes.get
Get the authenticated athlete profile
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
username | string | No | — |
firstname | string | No | — |
lastname | string | No | — |
city | string | No | — |
state | string | No | — |
country | string | No | — |
sex | string | No | — |
premium | boolean | No | — |
summit | boolean | No | — |
created_at | string | No | — |
updated_at | string | No | — |
follower_count | number | No | — |
friend_count | number | No | — |
measurement_preference | string | No | — |
ftp | number | No | — |
weight | number | No | — |
profile | string | No | — |
profile_medium | string | No | — |
resource_state | number | No | — |
bikes | object[] | No | — |
shoes | object[] | No | — |
bikes full type
bikes full type
shoes full type
shoes full type
getStats
athletes.getStats
Get an athlete’s activity statistics
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
biggest_ride_distance | number | No | — |
biggest_climb_elevation_gain | number | No | — |
recent_ride_totals | object | No | — |
recent_run_totals | object | No | — |
recent_swim_totals | object | No | — |
ytd_ride_totals | object | No | — |
ytd_run_totals | object | No | — |
ytd_swim_totals | object | No | — |
all_ride_totals | object | No | — |
all_run_totals | object | No | — |
all_swim_totals | object | No | — |
recent_ride_totals full type
recent_ride_totals full type
recent_run_totals full type
recent_run_totals full type
recent_swim_totals full type
recent_swim_totals full type
ytd_ride_totals full type
ytd_ride_totals full type
ytd_run_totals full type
ytd_run_totals full type
ytd_swim_totals full type
ytd_swim_totals full type
all_ride_totals full type
all_ride_totals full type
all_run_totals full type
all_run_totals full type
all_swim_totals full type
all_swim_totals full type
getZones
athletes.getZones
Get the authenticated athlete’s heart rate and power zones
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
heart_rate | object | No | — |
power | object | No | — |
heart_rate full type
heart_rate full type
power full type
power full type
update
athletes.update
Update the authenticated athlete’s profile
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
weight | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
username | string | No | — |
firstname | string | No | — |
lastname | string | No | — |
city | string | No | — |
state | string | No | — |
country | string | No | — |
sex | string | No | — |
premium | boolean | No | — |
summit | boolean | No | — |
created_at | string | No | — |
updated_at | string | No | — |
follower_count | number | No | — |
friend_count | number | No | — |
measurement_preference | string | No | — |
ftp | number | No | — |
weight | number | No | — |
profile | string | No | — |
profile_medium | string | No | — |
resource_state | number | No | — |
bikes | object[] | No | — |
shoes | object[] | No | — |
bikes full type
bikes full type
shoes full type
shoes full type
Clubs
get
clubs.get
Get details of a club by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
name | string | No | — |
profile | string | No | — |
profile_medium | string | No | — |
description | string | No | — |
club_type | string | No | — |
sport_type | string | No | — |
city | string | No | — |
state | string | No | — |
country | string | No | — |
private | boolean | No | — |
member_count | number | No | — |
featured | boolean | No | — |
verified | boolean | No | — |
url | string | No | — |
Gear
get
gear.get
Get details of a gear item by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
primary | boolean | No | — |
name | string | No | — |
distance | number | No | — |
brand_name | string | No | — |
model_name | string | No | — |
frame_type | number | No | — |
description | string | No | — |
athlete_id | number | No | — |
resource_state | number | No | — |
retired | boolean | No | — |
converted_distance | number | No | — |
notification_distance | number | No | — |
Routes
exportGpx
routes.exportGpx
Export a route as GPX
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
string
exportTcx
routes.exportTcx
Export a route as TCX
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
string
get
routes.get
Get details of a route by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
athlete | object | No | — |
description | string | No | — |
distance | number | No | — |
elevation_gain | number | No | — |
map | object | No | — |
name | string | No | — |
private | boolean | No | — |
starred | boolean | No | — |
timestamp | number | No | — |
type | number | No | — |
sub_type | number | No | — |
created_at | string | No | — |
updated_at | string | No | — |
estimated_moving_time | number | No | — |
segments | any[] | No | — |
athlete full type
athlete full type
map full type
map full type
getStreams
routes.getStreams
Get stream data for a route
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
time | object | No | — |
distance | object | No | — |
latlng | object | No | — |
altitude | object | No | — |
velocity_smooth | object | No | — |
heartrate | object | No | — |
cadence | object | No | — |
watts | object | No | — |
temp | object | No | — |
moving | object | No | — |
grade_smooth | object | No | — |
time full type
time full type
distance full type
distance full type
latlng full type
latlng full type
altitude full type
altitude full type
velocity_smooth full type
velocity_smooth full type
heartrate full type
heartrate full type
cadence full type
cadence full type
watts full type
watts full type
temp full type
temp full type
moving full type
moving full type
grade_smooth full type
grade_smooth full type
Segment Efforts
get
segmentEfforts.get
Get details of a segment effort by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
activity_id | number | No | — |
athlete_id | number | No | — |
segment | object | No | — |
name | string | No | — |
elapsed_time | number | No | — |
moving_time | number | No | — |
start_date | string | No | — |
start_date_local | string | No | — |
distance | number | No | — |
start_index | number | No | — |
end_index | number | No | — |
kom_rank | number | No | — |
pr_rank | number | No | — |
achievements | any[] | No | — |
device_watts | boolean | No | — |
average_watts | number | No | — |
average_heartrate | number | No | — |
max_heartrate | number | No | — |
average_cadence | number | No | — |
resource_state | number | No | — |
segment full type
segment full type
getStreams
segmentEfforts.getStreams
Get stream data for a segment effort
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
keys | time | distance | latlng | altitude | velocity_smooth | heartrate | cadence | watts | temp | moving | grade_smooth[] | Yes | — |
key_by_type | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
time | object | No | — |
distance | object | No | — |
latlng | object | No | — |
altitude | object | No | — |
velocity_smooth | object | No | — |
heartrate | object | No | — |
cadence | object | No | — |
watts | object | No | — |
temp | object | No | — |
moving | object | No | — |
grade_smooth | object | No | — |
time full type
time full type
distance full type
distance full type
latlng full type
latlng full type
altitude full type
altitude full type
velocity_smooth full type
velocity_smooth full type
heartrate full type
heartrate full type
cadence full type
cadence full type
watts full type
watts full type
temp full type
temp full type
moving full type
moving full type
grade_smooth full type
grade_smooth full type
Segments
explore
segments.explore
Find popular segments within a bounding box
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
bounds | string | Yes | — |
activity_type | running | riding | No | — |
min_cat | number | No | — |
max_cat | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
segments | object[] | No | — |
segments full type
segments full type
get
segments.get
Get details of a segment by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
name | string | No | — |
activity_type | string | No | — |
distance | number | No | — |
average_grade | number | No | — |
maximum_grade | number | No | — |
elevation_high | number | No | — |
elevation_low | number | No | — |
start_latlng | number[] | No | — |
end_latlng | number[] | No | — |
climb_category | number | No | — |
city | string | No | — |
state | string | No | — |
country | string | No | — |
private | boolean | No | — |
starred | boolean | No | — |
created_at | string | No | — |
updated_at | string | No | — |
total_elevation_gain | number | No | — |
map | object | No | — |
effort_count | number | No | — |
athlete_count | number | No | — |
hazardous | boolean | No | — |
star_count | number | No | — |
map full type
map full type
getStreams
segments.getStreams
Get stream data for a segment
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
keys | time | distance | latlng | altitude | velocity_smooth | heartrate | cadence | watts | temp | moving | grade_smooth[] | Yes | — |
key_by_type | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
time | object | No | — |
distance | object | No | — |
latlng | object | No | — |
altitude | object | No | — |
velocity_smooth | object | No | — |
heartrate | object | No | — |
cadence | object | No | — |
watts | object | No | — |
temp | object | No | — |
moving | object | No | — |
grade_smooth | object | No | — |
time full type
time full type
distance full type
distance full type
latlng full type
latlng full type
altitude full type
altitude full type
velocity_smooth full type
velocity_smooth full type
heartrate full type
heartrate full type
cadence full type
cadence full type
watts full type
watts full type
temp full type
temp full type
moving full type
moving full type
grade_smooth full type
grade_smooth full type
list
segments.list
List the authenticated athlete’s starred segments
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | — |
per_page | number | No | — |
object[]
Output full type
Output full type
star
segments.star
Star or unstar a segment
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
starred | boolean | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
name | string | No | — |
activity_type | string | No | — |
distance | number | No | — |
average_grade | number | No | — |
maximum_grade | number | No | — |
elevation_high | number | No | — |
elevation_low | number | No | — |
start_latlng | number[] | No | — |
end_latlng | number[] | No | — |
climb_category | number | No | — |
city | string | No | — |
state | string | No | — |
country | string | No | — |
private | boolean | No | — |
starred | boolean | No | — |
created_at | string | No | — |
updated_at | string | No | — |
total_elevation_gain | number | No | — |
map | object | No | — |
effort_count | number | No | — |
athlete_count | number | No | — |
hazardous | boolean | No | — |
star_count | number | No | — |
map full type
map full type
Uploads
create
uploads.create
Upload an activity file (FIT, TCX, GPX)
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
file | any | Yes | — |
data_type | fit | fit.gz | tcx | tcx.gz | gpx | gpx.gz | Yes | — |
name | string | No | — |
description | string | No | — |
trainer | string | No | — |
commute | string | No | — |
external_id | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
external_id | string | No | — |
error | string | No | — |
status | string | No | — |
activity_id | number | No | — |
get
uploads.get
Get the status of an upload by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
external_id | string | No | — |
error | string | No | — |
status | string | No | — |
activity_id | number | No | — |