Skip to main content
Answered

Best way to fetch best effort for an athelete using Strava APIs.

  • July 29, 2024
  • 2 replies
  • 131 views

Forum|alt.badge.img+2

I am developing a dashboard app and need to determine the best effort for an athlete over a 1-mile distance. Is there a quick and efficient method to obtain this information?

I want this information via API.

Best answer by chuongtran

hi @shravan 
I guess that using API get List Segment Efforts and filter to got your purpose
API from document here https://developers.strava.com/docs/reference/#api-SegmentEfforts-getEffortsBySegmentId

Hope this solves your problem.

2 replies

Forum|alt.badge.img+4
  • Hub Rookie
  • 2 replies
  • Answer
  • July 31, 2024

hi @shravan 
I guess that using API get List Segment Efforts and filter to got your purpose
API from document here https://developers.strava.com/docs/reference/#api-SegmentEfforts-getEffortsBySegmentId

Hope this solves your problem.


Forum|alt.badge.img+1
  • Hub Starter
  • 1 reply
  • August 30, 2024

Hey!

I saw you accepted the answer of @chuongtran. I'm also currently tying to retrieve my PRs/All Time Best Efforts, but it seems that this https://developers.strava.com/docs/reference/#api-SegmentEfforts-getEffortsBySegmentId only give you efforts on segments. So how did you manage to get the stats in the Best Effort section of your screenshot?

Thanks!