cancel
Showing results for 
Search instead for 
Did you mean: 

Get activity by id 404

MateuszC
Mt. Kenya

Hey, 
I have started working with Strava API and on the beginning I have problem. I authenticate from my app using scope: read_all,profile:read_all,activity:read_all, I can get all my activities but when I'm trying to get one I have 404. I use http get on 

https://www.strava.com/api/v3/athlete/activities/{id}?include_all_efforts=true where id is number which I take from previous request about list of activites. I use id property from item. I have seen in examples that id is longer than I see on my activities (for example my is 9158500198 but in examples numbers are longer like 123456778928065). What can be a problem?
1 ACCEPTED SOLUTION

Jan_Mantau
Denali

Ah, now I see it: You have "athlete/" in the URL, that doesn't belong there.

View solution in original post

4 REPLIES 4

Jan_Mantau
Denali

Ah, now I see it: You have "athlete/" in the URL, that doesn't belong there.

You are right! My fault. Thanks!

MateuszC
Mt. Kenya

I don't use brackets in request. I put them as variable sign. My request url is https://www.strava.com/api/v3/athlete/activities/12345 where 12345 is my activity id from activities list. 

Jan_Mantau
Denali

Ids like 9158500198 are okay, that's in the current range of activity ids. You don't use the curly brackets in the URL though, they are only a syntax hint, that id isn't a fixed string.