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

Web API Get Activity Log List only returning data until January 2024, 2025 data ist visible App

ANSWERED

Hi,

I have a strange error. I try to get the last 25 activities of a user. I set the actual date as before data and set the sort option to descending. But the last data I get ist from January 2024, instead of data from 2025.

My link:

https://api.fitbit.com/1/user/<Token>/activities/list.json?beforeDate=<Current Date in yyyy-MM-dd>&sort=desc&offset=0&limit=25

I tried also to set afterdate to 1st January 2025 and sort ascending. But also no data.

The token scope is set to activity.

Does anyone have an idea how to get this solved?

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @Gordon-C,

I found the issue. The user gave me credentials from a Fitbit account, but is logged in with the google account.

Can I migrate those two accounts to one (specially to the google account)?

Thanks

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

Hi @moxmlb 

I tried to reproduce this behavior and I'm receiving recorded activities in 2025.   Are you certain the person has recorded activities in 2025?   Here are some things you can try

  1. The beforeDate and afterDate query parameters do not return exercises on the date specified.  You can consider them as > or <, and not >= or <=.
  2. Use the Get Daily Activity Summary to confirm the user has a recorded activity for the specific date.  The recorded exercises will appear at the top of the endpoint response.

If this doesn't help, I'll need to get some more information from you to troubleshoot the problem.   

Best,

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Hi @Gordon-C,

I found the issue. The user gave me credentials from a Fitbit account, but is logged in with the google account.

Can I migrate those two accounts to one (specially to the google account)?

Thanks

Best Answer
0 Votes

Hi @moxmlb 

Sounds like those are 2 separate accounts, so my guess is no.  However, you can contact the main customer support team to find out if it is possible.   Our team doesn't support the accounts.   They can be reached at https://support.google.com/fitbit.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes