cancel
Showing results for 
Search instead for 
Did you mean: 

Strava API Streaming

mjv11
Mt. Kenya

Howdy folks! I have an issue I simply cannot figure out. 
I am trying to stream data from an activity. I am using postman to test my queries. 

mjv11_0-1704445877198.png

As we can see, the activity is real and works. The key has read all and read permissions for activities via 

scope=read,read_all,activity:read_all,activity:read,profile:read_all

However, the stream query is not working. 

mjv11_1-1704445989809.png

Any insights would be super appreciated.

4 REPLIES 4

mjv11
Mt. Kenya

Update: 

mjv11_1-1704584823431.png

This gives me a stream of distance, and does so with different parameters or without the parameters, as long as I have the code. But if I remove the forward slash prefacing the parameters, it doesn't work at all.

This worked for me:

https://www.strava.com/api/v3/activities/<ACTIVITY_ID_HERE>/streams?keys=time,distance,watts&key_by_type=true&access_token=<YOUR_ACCESS_TOKEN>

Make sure your access token is valid and not expired.

StravaStreamsPostman.png

ActivityFix
Elbrus

The error message you've received says "Authorization Error" which means there's a problem with the token you're passing to the request. Looking at the URL in your get request, it appears there's an extra ? before the access_token parameter which is probably what is causing your problem. I'm not actually sure why your getActivity call worked as that has the same issue.

mjv11_0-1704584704932.png

It doesn't work without the question mark