Skip to main content
Question

GET segment_efforts


Forum|alt.badge.img+2

Good morning,

I'm trying to obtain the times of each user on a segment, but it's not being possible. Firstly, because if I have the user log in on my platform to exchange the access token, I get an error that only one person can be connected. So, I conducted a test by making this request: https://www.strava.com/api/v3/segment_efforts?segment_id=35310022&start_date_local=2022-05-21T00:00:00Z&end_date_local=2022-05-21T23:59:59Z&per_page=3, which is executed correctly but I had to use the user's access token by creating an API in their profile... and obviously, for my program, I don't want that, to obtain the segment_effort. I would like to know if there would be a possibility to take the times of each user from a segment created with my user acting as an API, specifically using my own Strava API. Always assuming that the user has public visibility.
Or what possible solutions are there for this problem.

Thank you.

2 replies

SkippyVasquez
Strava
Forum|alt.badge.img+21

Hey stravalamessier, you're going to need to request an rate limit increase. Take a look at this post for additional information.

 


ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • 232 replies
  • August 15, 2024

As @SkippyVasquez said, the first thing you'll need to request a rate limit increase to get out of "single player mode"

Once you have that, you'll need to set up the OAuth flow to have users authorize your app. When they do that, you will get an access and refresh token for each user which you can then use to make API requests on their behalf without requiring them to set up an app in their profile.


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