I would like to find out if I am the KOM on a specific segment. According to the API this should be possible using: "https://www.strava.com/api/v3/segments/{id}"
This should return a DetailedSegment. However, the athlete_pr_effort data is not contained in the response.
When iterating over starred segments, you also get a DetailedSegment instance and the athlete_pr_effort is set like expected. In my case, the segment is not starred though.
Any idea how this can be done?
The Strava Segment Leaderboard endpoint was deprecated. It used to exist here:
https://www.strava.com/api/v3/segments/:id/leaderboardStrava's update mid 2020: https://developers.strava.com/docs/segment-changes/
It also states that you need to be a subscriber to get the
kom_rankfield (which I think is what you're looking for).