Accessing Activities for a specific Athlete

1,160 views
Skip to first unread message

Forrest Samuels

unread,
Mar 10, 2014, 11:50:57 AM3/10/14
to strav...@googlegroups.com
Is there any way to access activities for a specific Athlete? I only see a way to access a list of all of your  activities or all of your friends activities at once. I would like to be able to access all of the activities for a specific person.

Martin T

unread,
Mar 11, 2014, 1:04:28 AM3/11/14
to strav...@googlegroups.com
You can only do so using that athlete's Authorisation string.

So if can be anyone's data, but they must authorise you to access it first (and you must store away their authorisation string for later use)

Marcus Faoro

unread,
May 13, 2014, 1:02:24 AM5/13/14
to strav...@googlegroups.com
Hi Martin T,

Mate, if there is an athlete who is in my contact(im following and he is following me) can I access his activities without an authorisation string? Code example:


        [TestMethod]
        public void GetFriendRides()
        {
            RealAuthenticator oauth = new RealAuthenticator();
            StravaClient client = new StravaClient(oauth);

            var athleteInfo = client.Athletes.GetAthlete("35975");

            var activities = client.Activities.GetActivitiesAfter(new DateTime(2014, 5, 10)).Where(x => x.Athlete.Id == athleteInfo.Id);

            Assert.IsTrue(activities.Count()==5);
        }

Thank you

Martin T

unread,
May 13, 2014, 5:00:55 AM5/13/14
to strav...@googlegroups.com
Marcus,

There is a friends activities api call:




I've never used it myself, but I guess that it will return recent activities bu all followed athletes.  You would then need to limit it as you have done above to the specific athlete you are after.

Cheers,

MartinT

Lou King

unread,
Sep 9, 2015, 4:59:08 PM9/9/15
to Strava API
Can someone from Strava tell me why the API does not support retrieving publically posted activities from specific Athlete?

One is able to do this from the web page, but not from the API, which doesn't make sense to me.

Seems like GET /api/v3/athletes/<otherathleteid>/activities?access_token=<my tokenshould work but I get Authorization Error, because I am not this athlete.

James Kan

unread,
Feb 26, 2016, 9:27:05 PM2/26/16
to Strava API
+1 Lou King

I know you have been championing for that for quite some time, and I think - at the very least - it will be great to be able to access friend's data like HR etc.

James

Jeremy Rojas

unread,
Aug 6, 2017, 11:30:20 PM8/6/17
to Strava API
Hi Lou,

Did  you ever get a way to get your friends' activities? The GET you posted would be the way I'd think it should work too...but I'm also getting Authorization Error.

Thanks,
Jeremy

Lou King

unread,
Aug 7, 2017, 7:44:49 AM8/7/17
to Strava API
I don't think so. I use this url to get activities for a "club" I am administrator for. I haven't come around to recheck if I can do what should be public activities, but I have no reason to believe that works now. Also as you've seen Strava hasn't responded to my query on this.
Reply all
Reply to author
Forward
0 new messages