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

The activities-steps-intraday data is returned as blank

ANSWERED

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.

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi, @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

 

View best answer in original post

Best Answer
0 Votes
8 REPLIES 8

Hi @JSasaki 

I will need to get some information from you to investigate this problem.   I will send you a message through Issue Tracker.

Gordon

Best Answer
I have the same issue - sometime between July 2 and July 14 intraday data stopped being returned. I've tried it using both Server and Personal type keys
 
 
returns
 
HTTP Request OK. Got: {
"activities-calories": [
{
"dateTime": "$date",
"value": "2573"
}
]
}
 
 
(Not literally $date, but the forum software won't allow me to post a comment with a date in it)
 
Best Answer
0 Votes

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 Answer
0 Votes

Thanks 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 Answer
0 Votes

Hi, @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
0 Votes

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 Answer
0 Votes

Makes sense, I hadn't noticed that I'd been using the wrong syntax for (literally!) years 🙂 Thanks for your help

Best Answer
0 Votes

Hi, @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
0 Votes