App Logo
strava.com

Get a Strava segment and its leaderboard

Automatically get a Strava segment and its leaderboard on strava.com. 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.

Input

segment_id required

The number in a segment URL, strava.com/segments/<id>.

page optional

Leaderboard page, 25 rows each.

Default: 1
filter optional

Which leaderboard to read: everyone, your own efforts, people you follow, one age group, or one weight class.

Default: "all"
gender optional
Default: "overall"
date_range optional

null is all time.

Default: null
filter_value optional

Required for age_group: 20_24, 25_34, 35_44, 45_54, 55_64, 65_69, 70_74 or 75_plus (years). Required for weight_class: 0_54, 55_64, 65_74, 75_84, 85_94, 95_104, 105_114 or 115_plus (kg). Leave null for the other filters.

Default: null

Output

name required
page required
segment_id required
leaderboard required
filter optional
gender optional
hazard optional
has_more optional
location optional
verified optional
date_range optional
distance_m optional
elev_low_m optional
star_count optional
elev_gain_m optional
elev_high_m optional
top_efforts optional
filter_value optional
local_legend optional
activity_type optional
avg_grade_pct optional
total_efforts optional
climb_category optional
total_athletes optional
my_effort_count optional
leaderboard_total optional

FAQ

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.
Ask an AI agent connected to Reduck to run reduck/strava.com/get_segment, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/strava.com/get_segment
You do not need one. "Get a Strava segment and its leaderboard" drives the real strava.com pages in a browser, so it works whether or not strava.com offers an API for this.
Required: segment_id. Optional: page, filter, gender, date_range, filter_value.
It returns name, page, filter, gender, hazard, has_more, location, verified, date_range, distance_m, elev_low_m, segment_id, star_count, elev_gain_m, elev_high_m, leaderboard, top_efforts, filter_value, local_legend, activity_type, avg_grade_pct, total_efforts, climb_category, total_athletes, my_effort_count, leaderboard_total.
Yes. It acts as you on strava.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the strava.com cookies saved by the Reduck extension.
It only reads. It looks things up on strava.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/strava.com/get_segment, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/strava.com/get_segment
It is part of Reduck's official curated catalogue.

Start building not clicking