Skip to main content
Question

Missing `best_efforts` in DetailedActivity reponses

  • Sep 29, 2023 2:12 PM UTC
  • 5 replies
  • 89 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.

5 replies

Jan_Mantau
Forum|alt.badge.img+26
  • Hub Powerhouse
  • Sep 29, 2023 5:51 PM UTC

"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
  • Author
  • Hub Rookie
  • Sep 29, 2023 7:01 PM UTC

Where have you learned this information?


Jan_Mantau
Forum|alt.badge.img+26
  • Hub Powerhouse
  • Sep 30, 2023 12:07 PM UTC

By analyzing the jsons I get


jsumners
Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • Oct 2, 2023 8:42 PM UTC

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.


  • Jun 20, 2025 12:19 PM UTC

Wy is only available for Running?

When will be abailable for cycling, swimming and so on?

 

Thx in advance