Skip to main content

https://developers.strava.com/docs/reference/#api-models-DetailedActivity states that a `best_efforts` field should be returned. Presumably this would be a subset of the `segment_efforts` collection, but I am not seeing it returned in any queries in order to verify this assumption. What are the conditions that result in an activity returning the `best_efforts` field? Is it a subset of `segment_efforts`? Or is it something else? The docs should be updated with this information.

"best_efforts" are included for run activities and contain the best splits for 400 m, 1/2 mile, 1000 m and so on, i.e.:

 
"best_efforts":
[
    {"id":23383662279,"resource_state":2,"name":"400m","activity":{"id":7643108616,"visibility":"everyone","resource_state":1},"athlete":{"id":5437327,"resource_state":1},"elapsed_time":161,"moving_time":162,"start_date":"2022-08-15T16:17:40Z","start_date_local":"2022-08-15T18:17:40Z","distance":400,"start_index":6,"end_index":168,"pr_rank":null,"achievements":[]},
    {"id":23383662301,"resource_state":2,"name":"1/2 mile","activity":{"id":7643108616,"visibility":"everyone","resource_state":1},"athlete":{"id":5437327,"resource_state":1},"elapsed_time":335,"moving_time":336,"start_date":"2022-08-15T16:17:35Z","start_date_local":"2022-08-15T18:17:35Z","distance":805,"start_index":1,"end_index":337,"pr_rank":null,"achievements":[]},
    {"id":23383662324,"resource_state":2,"name":"1k","activity":{"id":7643108616,"visibility":"everyone","resource_state":1},"athlete":{"id":5437327,"resource_state":1},"elapsed_time":418,"moving_time":418,"start_date":"2022-08-15T16:17:35Z","start_date_local":"2022-08-15T18:17:35Z","distance":1000,"start_index":1,"end_index":419,"pr_rank":null,"achievements":[]},
    {"id":23383662338,"resource_state":2,"name":"1 mile","activity":{"id":7643108616,"visibility":"everyone","resource_state":1},"athlete":{"id":5437327,"resource_state":1},"elapsed_time":688,"moving_time":689,"start_date":"2022-08-15T16:17:35Z","start_date_local":"2022-08-15T18:17:35Z","distance":1609,"start_index":1,"end_index":690,"pr_rank":null,"achievements":[]}
]
 

Where have you learned this information?


By analyzing the jsons I get


Thank you, but I'm looking for proper documentation from the platform owners. We shouldn't have to guess at this stuff. Note that there are still unanswered questions even given your example payload. We could of course guess further, but, again, I'm asking for actual docs.


Reply