Skip to main content
Answered

Strava API doesnt appear to return the surface type on a segment

  • January 30, 2026
  • 2 replies
  • 21 views

Forum|alt.badge.img+2

I’d really like to be able to display the surface type for a segment, or to be able to filter by surface type when retrieving segments in an activity etc.  I can’t find anything in the documentation that exposes this as a property in segment data, but the Strava UI does allow you to specify surface type when creating routes etc so I would have thought it was available.

 

ANy ideas/help appreciated

Best answer by ActivityFix

I don’t think it is available, and there’s no way to get it with Strava. The only data you can get is the sport type, but even that is just Ride or Run, so you wouldn’t be able to use that to guess at the surface type.

Depending on what programming language you’re using, you could query OSM to get surface type but it would be a lot more work on your end.

2 replies

ActivityFix
Forum|alt.badge.img+24
  • Hub Superuser Alumni
  • Answer
  • January 30, 2026

I don’t think it is available, and there’s no way to get it with Strava. The only data you can get is the sport type, but even that is just Ride or Run, so you wouldn’t be able to use that to guess at the surface type.

Depending on what programming language you’re using, you could query OSM to get surface type but it would be a lot more work on your end.


Forum|alt.badge.img+2

Thanks! Worth a try, might take a look at OSM at some point