Hello
This is a question about my customer's data.
In my system, I aggregate the number of steps for each user.
Regarding the data obtained with the endpoint below, I understand that activities-steps returns the total value for the day, and activities-steps-intraday returns the value for each minute.
URL: /1/user/[user_id]/activities/steps/date/[date]/1d.json
However, starting around July 9th, activities-steps-intraday data was returned as blank for some users.
Then, on July 15th, the same situation occurred for all users in the system.
Have there been any changes to the API specifications?
Thank you in advance.
Answered! Go to the Best Answer.
Best AnswerHi, @GordonFitbit
Thank you for your help. I understand that to get the minute-by-minute data (activities-steps-intraday) that I was previously able to retrieve, I now need to use the following endpoint:/1/user/[user-id]/activities/[resource]/date/[date]/1d/1min.json
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Hi @ian671
The endpoint that you are calling is our activity time series endpoint. Its intent is to return just the daily total for the specified date(s). The correct syntax for querying activity intraday data is /1/user/[user-id]/activities/[resource]/date/[date]/1d/[detail-level].json. See Get Activity Intraday by Date.
Best AnswerThanks Gordon, fixed now by adding /1min. Strangely the code was working and returning intraday data with a 1 minute granularity before I added that, maybe it was a default.
Best AnswerHi, @GordonFitbit
I apologize for the delayed response, I was on vacation.
I've shared the information you requested on the issue tracker. Please take a look.
Thanks for your continued support.
Jsasaki
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
We have been updating our endpoints to not allow bad syntax and provide the correct response. The Activity Time Series endpoint is intended to return the daily summary data, which the intraday endpoint returns the granular data collected throughout the day.
Best AnswerMakes sense, I hadn't noticed that I'd been using the wrong syntax for (literally!) years 🙂 Thanks for your help
Best AnswerHi, @GordonFitbit
Thank you for your help. I understand that to get the minute-by-minute data (activities-steps-intraday) that I was previously able to retrieve, I now need to use the following endpoint:/1/user/[user-id]/activities/[resource]/date/[date]/1d/1min.json
Best Answer