Get a Strava activity
Automatically get a Strava activity on strava.com. Returns one Strava activity: name, description, sport, local start time, location, distance, moving time, elevation gain, power and energy when recorded, the athlete, kudos and comment counts, and its segment efforts. Distances are in meters, times in seconds. The start time is null for activities whose page does not carry it as data (runs, for example), and shows 00:00:01 when the athlete hides start times. Fails when the activity does not exist or this account cannot see it.
Input
activity_id requiredThe number in an activity URL, strava.com/activities/<id>.
Output
name requiredactivity_id requireddate optionalLocal start time, ISO 8601 without zone.
type optionaltrainer optionallocation optionalavg_watts optionalathlete_id optionaldistance_m optionalkilojoules optionaldescription optionalelev_gain_m optionalkudos_count optionalathlete_name optionalmoving_time_s optionalcomments_count optionalsegment_efforts optionalFAQ
Get a Strava segment and its leaderboard
Returns a Strava segment's name, sport, location, distance, grade and elevation, its effort and athlete totals, the KOM, QOM and Local Legend holders, and one page (25 rows) of its leaderboard. The leaderboard can be everyone, your own efforts, people you follow, one age group or one weight class, filtered by gender and by today, this week, this month or this year; has_more says whether another page exists. Club leaderboards are not offered. Distances are in meters, times in seconds, speeds in meters per second. Fails when the segment does not exist or is private.
Get a Strava athlete profile
Returns a Strava athlete's profile: name, photo, location, follower and following counts, club names, and the activities shown on the profile page. Counts are null when the profile hides them. Fails when the athlete does not exist.
List my Strava activities
Lists the signed-in athlete's own Strava activities, 20 per page: id, name, sport, start time, distance, moving and elapsed time, elevation gain, and whether it is private, a commute or on a trainer. Filter by title keywords, sport, workout tags, private only or trainer only, and sort by date, title, time, distance, elevation or relative effort; the gear filter is not offered. Distances are in meters, times in seconds. An account or filter with no activities returns an empty list. Pass page to read further; total and has_more say how many there are.
