Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get-Activities-List

ANSWERED

The new endpoint for retrieving activities without having to issue a separate request for each day is great! Any plans to support something similar for other data (sleep, weight, steps)?

 

btw the maximum limit appears to be 100, not 500 as documented.

 

Eric Jain
Got data? Get answers at zenobase.com.
Best Answer
1 BEST ANSWER

Accepted Solutions

No plans ths share on this yet, but we appreciate the feedback!

 

I have updated the documentation.

View best answer in original post

Best Answer
10 REPLIES 10

No plans ths share on this yet, but we appreciate the feedback!

 

I have updated the documentation.

Best Answer

Hi @ejain, I've been struggling with the GET-ACTIVITIES-LIST endpoint. I always seem to get an empty array for the 'activities' key in the JSON response. The afterDate parameter value I'm passing is '2015-05-01' and I've checked to make sure that I actually have activities done after that date. Am I missing something here? Does this endpoint only retrieve activities that were manually logged by the user?

 

Update---

Is this endpoint meant to get the number of steps taken after/before the given date?

Best Answer
0 Votes

To get step count totals, use the Get-Time-Series endpoint. The Get-Activities-List endpoint is for what is labelled "Exercise" in Fitbit's mobile apps (though it's still called "Activities" in the Web interface)...

Eric Jain
Got data? Get answers at zenobase.com.
Best Answer

@anashalb wrote:

I've been struggling with the GET-ACTIVITIES-LIST endpoint. I always seem to get an empty array for the 'activities' key in the JSON response. The afterDate parameter value I'm passing is '2015-05-01' and I've checked to make sure that I actually have activities done after that date. Am I missing something here? Does this endpoint only retrieve activities that were manually logged by the user?


Currently, only manually logged activities ("exercises") are returned. In the future, device-logged activities will be returned.

Best Answer
0 Votes

Thanks @JeremiahFitbit. I spent some time playing around with the API via Temboo OAuth and assumed I was doing someting wrong when I couldn't return exercises that I knew to be present in my account. Then I found this post. What I am wondering is, how frequently is the API changed? Is there an estitmate on when device logged activities will be enabled? Is this method being actively developed? Or is just in an icebox/backlog?

 

Thanks.

Best Answer
0 Votes

Hello guys,

When I call the 

/1/user/-/activities/list.json?afterDate=2015-06-01&sort=desc&offset=0&limit=100

 I always receive the next error:

{"errors":[{"errorType":"oauth","fieldName":"oauth_access_token","message":"Invalid signature or token '<signature>' or token '<token>'"}],"success":false}

with the same credetials I can call another APIs. And in this response signature seems to be another that I send (I send with %, bet receive an error with =).

Don't you know what can cause this?

Best Answer
0 Votes

@Slavik: It means that your signature is invalid (or the token, but if the token works on other calls, it's the signature). Have you tried using the OAuth 1.0a signature debug tool to compare? https://dev.fitbit.com/apps/oauthtutorialpage

Best Answer
0 Votes

Hi

do you know when device-logged activities will be returned by the GET-ACTIVITIES-LIST endpoint?

is there another way to get a log-id? (whitout to use a brother, just the API)

Thank you

Best Answer

Hi Nick,

 

Did you find a way to get device-logged with the API ?

Best Answer
0 Votes

@Steeven Currently you can't get device-logged activities, only manually logged activities. This is still a planned feature, so please be patient. 

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes