Skip to main content
Answer

Return detailed representation for multiple activity ids

  • January 31, 2024
  • 2 replies
  • 13 views

cem8301
Forum|alt.badge.img+4

I would like a faster method of querying a detailed representation for a list of Strava activities. I can make a single query via:

/activities/{id}

However, I have 1000 activities and need to make a seperate call for each acitivity id. And this takes too long.

It would be nice to be able to query on a list of activity ids. Is this possible?

Side note: The same question was stated nicely on another forum. I did not write it, but will link for clarity.

Best answer by ActivityFix

Depending on which data you need from the activity, getLoggedInAthleteActivities returns a good amount of data and can give you up to 200 activities at a time. It isn't the full detailed representation but has most of the key top-level data like distance, speed, time, etc...

Otherwise at the moment the only option is what you said with retrieving each activity individually.

2 replies

ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • Answer
  • January 31, 2024

Depending on which data you need from the activity, getLoggedInAthleteActivities returns a good amount of data and can give you up to 200 activities at a time. It isn't the full detailed representation but has most of the key top-level data like distance, speed, time, etc...

Otherwise at the moment the only option is what you said with retrieving each activity individually.


cem8301
Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • January 31, 2024

@ActivityFix I'm looking to get segment_efforts and their rank data, which are not part of the general activities output 😕😕