Skip to main content

I’m writing an app that uses the Strava API to show runs and whether they ran a segment or not. I don’t want to show data/details about the runs/athletes if the logged in user is not a “friend”.

I cannot find anything in the documentation that shows an endpoint that would return a list of athletes that the logged in athlete follows, but I know I can GET an athlete and it will tell me if they are a friend or not, but I don’t want to spam that endpoint for every athlete/logged in athlete.

If I ask AI it will talk about a `/athlete/friends` endpoint, but if I hit that I get a 401. I don’t know what scope I need for that (I have “read-all”).

Can anyone help?

In hindsight, I don’t think there is any way that I can find out if the logged in user is friends with any one (in particular). I will just have to have a disclaimer at sign-in saying that people are going to at least know your name, ask for permission to display an avatar, and obfuscate any names of activities etc.


First, there isn't any endpoint I know of to retrieve a list of followers. The token is for the authenticated athlete, so you won't be able to GET another athlete either. 

Second, what you've described is probably a violation of the Strava API Agreement since you are not allowed to display an athlete's data to anyone but that athlete.


To his defence, there really is an endpoint /athlete/friends that is supposed to get the athletes  that the authenticated athlete is following. But I guess this is only available with special contracts.


First, there isn't any endpoint I know of to retrieve a list of followers. The token is for the authenticated athlete, so you won't be able to GET another athlete either. 

Second, what you've described is probably a violation of the Strava API Agreement since you are not allowed to display an athlete's data to anyone but that athlete.

Yes this is fair. I have pivoted slightly since originally posting this, and details about activities is much less important. Showing athletes avatars and the fact that an activity happened is something that I’m going to investigate.

I’ll have a read of the API agreement.

Appreciate your help!


Reply