Skip to main content
Answered

No activity retrieved when calling /athlete/activities

  • February 27, 2025
  • 6 replies
  • 145 views

COil
Forum|alt.badge.img+2

Hello,

I have implemented a “synchronize” activities action on my website with a Strava connect button. So far, it works well for everybody except for one athlete.

The account is correctly associated with Strava, but when calling the /athlete/activities endpoint, nothing is returned.

When calling the endpoint for other athletes, 30 (max) activities are returned by the endpoint.

There is no error, except that the response body is an empty array.

 

REST.php on line 97:
array:4 [▼
"headers" => array:25 [▼
"Content-Type" => array:1 [▶]
"Transfer-Encoding" => array:1 [▶]
"Connection" => array:1 [▶]
"Date" => array:1 [▶]
"status" => array:1 [▶]
"x-ratelimit-usage" => array:1 [▶]
"x-ratelimit-limit" => array:1 [▶]
"cache-control" => array:1 [▶]
"vary" => array:1 [▶]
"referrer-policy" => array:1 [▶]
"x-permitted-cross-domain-policies" => array:1 [▶]
"x-xss-protection" => array:1 [▶]
"x-request-id" => array:1 [▶]
"x-readratelimit-limit" => array:1 [▶]
"x-download-options" => array:1 [▶]
"etag" => array:1 [▶]
"x-frame-options" => array:1 [▶]
"x-readratelimit-usage" => array:1 [▶]
"x-content-type-options" => array:1 [▶]
"x-envoy-upstream-service-time" => array:1 [▶]
"server" => array:1 [▶]
"X-Cache" => array:1 [▶]
"Via" => array:1 [▶]
"X-Amz-Cf-Pop" => array:1 [▶]
"X-Amz-Cf-Id" => array:1 [▶]
]
"body" => []
"success" => true
"status" => 200
]

Any idea? Can it be a problem with the access token or the account privacy settings?

Edit : it seems, there is a ghost account associated, instead of the actual one :

App\Entity\Strava\Athlete {#1070 ▼
+id: 160101215
+profile: "avatar/athlete/large.png"
+createdAt: null
+updatedAt: null
}

 

Thanks. COil.

 

 

Best answer by COil

Hi everyone,

I’m experiencing a very similar issue, but I’m still not entirely clear on the answer from @COil .

In my case, the problem also affects only a single user whose activities cannot be retrieved. I’m using the scopes
read, activity:read_all. According to the user, the permissions were not changed during the authorization process, so the required scopes should still be granted.

When I make a request to
/api/v3/athlete/activities,
I receive the following response:

 

HTTP/2 200 OK content-type: application/json; charset=utf-8 date: Fri, 02 Jan 2026 10:42:06 GMT x-envoy-upstream-service-time: 154 x-ratelimit-usage: 17,319 x-ratelimit-limit: 600,6000 ...

The HTTP status is 200, but the response body is empty:

 

[]

For all other users, the request works without any issues. Only this one account returns an empty result.

Does anyone have an idea what might be causing this or how to further investigate the issue?

Thanks in advance for your help!
Best regards,
Alexander

 

Hello, in my case I realized that Strava, for an unknown reason, was creating a new empty account instead of linking an existing one. That’s why the data were empty. 

 

6 replies

  • March 14, 2025

@COil make sure you’ve authenticated with the correct scopes for that athlete.


Forum|alt.badge.img
  • Hub Starter
  • January 2, 2026

Hi everyone,

I’m experiencing a very similar issue, but I’m still not entirely clear on the answer from @COil .

In my case, the problem also affects only a single user whose activities cannot be retrieved. I’m using the scopes
read, activity:read_all. According to the user, the permissions were not changed during the authorization process, so the required scopes should still be granted.

When I make a request to
/api/v3/athlete/activities,
I receive the following response:

 

HTTP/2 200 OK content-type: application/json; charset=utf-8 date: Fri, 02 Jan 2026 10:42:06 GMT x-envoy-upstream-service-time: 154 x-ratelimit-usage: 17,319 x-ratelimit-limit: 600,6000 ...

The HTTP status is 200, but the response body is empty:

 

[]

For all other users, the request works without any issues. Only this one account returns an empty result.

Does anyone have an idea what might be causing this or how to further investigate the issue?

Thanks in advance for your help!
Best regards,
Alexander


COil
Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • Answer
  • January 2, 2026

Hi everyone,

I’m experiencing a very similar issue, but I’m still not entirely clear on the answer from @COil .

In my case, the problem also affects only a single user whose activities cannot be retrieved. I’m using the scopes
read, activity:read_all. According to the user, the permissions were not changed during the authorization process, so the required scopes should still be granted.

When I make a request to
/api/v3/athlete/activities,
I receive the following response:

 

HTTP/2 200 OK content-type: application/json; charset=utf-8 date: Fri, 02 Jan 2026 10:42:06 GMT x-envoy-upstream-service-time: 154 x-ratelimit-usage: 17,319 x-ratelimit-limit: 600,6000 ...

The HTTP status is 200, but the response body is empty:

 

[]

For all other users, the request works without any issues. Only this one account returns an empty result.

Does anyone have an idea what might be causing this or how to further investigate the issue?

Thanks in advance for your help!
Best regards,
Alexander

 

Hello, in my case I realized that Strava, for an unknown reason, was creating a new empty account instead of linking an existing one. That’s why the data were empty. 

 


Forum|alt.badge.img
  • Hub Starter
  • January 2, 2026

Hi everyone,

I’m experiencing a very similar issue, but I’m still not entirely clear on the answer from @COil .

In my case, the problem also affects only a single user whose activities cannot be retrieved. I’m using the scopes
read, activity:read_all. According to the user, the permissions were not changed during the authorization process, so the required scopes should still be granted.

When I make a request to
/api/v3/athlete/activities,
I receive the following response:

 

HTTP/2 200 OK content-type: application/json; charset=utf-8 date: Fri, 02 Jan 2026 10:42:06 GMT x-envoy-upstream-service-time: 154 x-ratelimit-usage: 17,319 x-ratelimit-limit: 600,6000 ...

The HTTP status is 200, but the response body is empty:

 

[]

For all other users, the request works without any issues. Only this one account returns an empty result.

Does anyone have an idea what might be causing this or how to further investigate the issue?

Thanks in advance for your help!
Best regards,
Alexander

 

Hello, in my case I realized that Strava, for an unknown reason, was creating a new empty account instead of linking an existing one. That’s why the data were empty. 

 

Hi ​@COil ,

Thank you for the quick reply. I contacted Strava via email to check if an incorrect or "empty" account was linked in my case as well. Unfortunately, they replied that they couldn't answer specific questions and that I should contact the Developer Community Hub.

How can I check if an incorrect account was linked in my case, and how can I resolve this issue?

Thank you for your help.

Alexander


Jan_Mantau
Superuser
Forum|alt.badge.img+27
  • Superuser
  • January 2, 2026

You have the athlete id, therefore you could check the profile in the webbrowser for activities (if it’s not private): https://www.strava.com/athletes/<athlete_id>

If the profile is private there is nothing more you can check. But in my opinion it’s a safe bet that this account never was in use and you can just deauthorize it.


COil
Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • January 2, 2026

Hi everyone,

I’m experiencing a very similar issue, but I’m still not entirely clear on the answer from @COil .

In my case, the problem also affects only a single user whose activities cannot be retrieved. I’m using the scopes
read, activity:read_all. According to the user, the permissions were not changed during the authorization process, so the required scopes should still be granted.

When I make a request to
/api/v3/athlete/activities,
I receive the following response:

 

HTTP/2 200 OK content-type: application/json; charset=utf-8 date: Fri, 02 Jan 2026 10:42:06 GMT x-envoy-upstream-service-time: 154 x-ratelimit-usage: 17,319 x-ratelimit-limit: 600,6000 ...

The HTTP status is 200, but the response body is empty:

 

[]

For all other users, the request works without any issues. Only this one account returns an empty result.

Does anyone have an idea what might be causing this or how to further investigate the issue?

Thanks in advance for your help!
Best regards,
Alexander

 

Hello, in my case I realized that Strava, for an unknown reason, was creating a new empty account instead of linking an existing one. That’s why the data were empty. 

 

Hi ​@COil ,

Thank you for the quick reply. I contacted Strava via email to check if an incorrect or "empty" account was linked in my case as well. Unfortunately, they replied that they couldn't answer specific questions and that I should contact the Developer Community Hub.

How can I check if an incorrect account was linked in my case, and how can I resolve this issue?

Thank you for your help.

Alexander

 

I suspect the error only happens when using a mobile device and the Strava app to make the association. See you.