Skip to main content

I'm using Python to return the "explore segments" query and would like to know how the top-10 segments are chosen.

For example, in the Developers Playground it says that the GET explore segments, "returns the top 10 segments matching a specified query". How is "top-10" defined? Is it using the most popular segments in the geography boundary to search or some other designation?

How can I view all and not just the top-10 segments?

Also am I able to search for a segment using the detail that gets returned in the query instead i.e., distance, avg. grade, elevation gain, etc.? The query is very limited when just being able to search based on "the latitude and longitude for two points describing a rectangular boundary" and the "activity type" especially when I'm searching for a run segment so the climbing category is not relevant.

Thanks!

Hey hbarn19174, thanks for your post. Take a look at our docs for the different parameters you can pass, such as climbing category, activity type, and location.

Also take a look at this article on the feature.

 


I couldn't find how is the "Top 10" define, what characteristic is taken into account to classify the segments?


It would be great to know how the Top 10 is defined so we can condition our search based on it.

I consider that the query filters are not enough to clean the resulting matching segments. On Strava front-end, the Maps tab allows the user to filter by the surface type, elevation and length of the segment, which is not being considered by the API endpoint. Setting activity-type = riding still retrieves irrelevant segments for my desired use case.