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

Access intraday data by 1 min or 1 second for period of time

Hi, I am university student. I need to use this in order to complete my project. However, when I try to access intraday data, it only limit by day. I want to access the data in short period like this; https://api.fitbit.com/1/user/-/activities/heart/date/<start_date>/<end_date>/1sec/time/18:00/18:05.json or maybe like this; https://api.fitbit.com/1/user/-/activities/heart/date/<start_date>/<end_date>/1min/time/18:00/18:05.json is it possible?

Best Answer
0 Votes
4 REPLIES 4

As the API documentation for intraday data mentions, you can only request data for a 24-hour period (https://dev.fitbit.com/build/reference/web-api/intraday/get-heartrate-intraday-by-interval/). This means it's not possible to get data for two five-minute periods on two or more different days in a single request. You will need to make separate requests. Be sure to check the rate limits if you're making many requests in a short time.

Best Answer

Hi. Thank you for your reply. It really help a lot. However, how can I access to intraday data if i set it as server in my app setting?

Best Answer
0 Votes

Hello @armanmazlan03 I'm not sure what you mean with "if I set it as server in my app setting". Can you explain this in more detail?

Best Answer
0 Votes

If you use 'server', I think you have to apply to get permission to access intraday data. See here.

Peter McLennan
Gondwana Software
Best Answer
0 Votes