Get a Strava athlete profile
Automatically get a Strava athlete profile on strava.com. 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.
Input
athlete_id requiredThe number in an athlete URL, strava.com/athletes/<id>. Get your own from strava.com/whoami.
Output
name requiredprivate requiredTrue when the profile is only visible to followers: clubs and activities are then not shown.
athlete_id requiredclubs optionallocation optionalfollowers optionalfollowing optionalphoto_url optionalrecent_activities 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 activity
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.
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.
