Skip to main content
Question

Missing `best_efforts` in DetailedActivity reponses

  • September 29, 2023
  • 4 replies
  • 15 views

jsumners
Forum|alt.badge.img+4

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.

Jan_Mantau
Superuser
Forum|alt.badge.img+26

"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":[]}
]
 

jsumners
Forum|alt.badge.img+4
  • Hub Rookie
  • September 29, 2023

Where have you learned this information?


Jan_Mantau
Superuser
Forum|alt.badge.img+26

By analyzing the jsons I get


jsumners
Forum|alt.badge.img+4
  • Hub Rookie
  • October 2, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings