Skip to main content
Answer

GetActivityById doesn't work

  • December 6, 2024
  • 1 reply
  • 46 views

Forum|alt.badge.img

Hi, 

I’m trying to get access to my activities with GetActivityById, but it doesn’t work anymore with the Swagger Playground. I tried it with scope read or readall and I tried different ids. It worked last week but doesn’t work now and I don’t know what's the problem. 

{
"message": "Resource Not Found",
"errors": [
{
"resource": "Activity",
"field": "",
"code": "not found"
}
]
}

But I know there are Activities and the Ids are right.

Can someone help?

Best answer by ActivityFix

When you say scope read_all, do you mean activity:read_all, or just plain read_all?  For access to activity data you need the scope(s) beginning with activity:, the plain read/read_all ones are for access to a user’s routes and segments.

The scopes and their meanings are described here - https://developers.strava.com/docs/authentication/#detailsaboutrequestingaccess

1 reply

ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • Answer
  • December 8, 2024

When you say scope read_all, do you mean activity:read_all, or just plain read_all?  For access to activity data you need the scope(s) beginning with activity:, the plain read/read_all ones are for access to a user’s routes and segments.

The scopes and their meanings are described here - https://developers.strava.com/docs/authentication/#detailsaboutrequestingaccess