cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.

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
Superuser
Superuser

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
Superuser
Superuser

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
Superuser
Superuser

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.

Ready, Get Set, Go!

Welcome to the Community - here is your guide to help you get started!


Know how to use Community


Understand Community Settings