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

Periods that can be acquired with activitiesAPI

ANSWERED

I'm getting exercise intensity and steps with API

API used
①activities / minutesSedentary
②activities / minutesLightlyActive
③activities / minutesFairlyActive
④activities / minutesVeryActive
⑤activities / steps

I'd like to know the period for obtaining ①②③④⑤.
For example
①activities / minutesSedentary
Can get the data of one month ago.

Please let me know if you know.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @matsusho,

 

You can get periods for 1,2,3,4,5 returned in increments of 1d, 7d, 30d, 1w, 1m, 3m, 6m, 1y.

 

 In terms of how far back you can query this data, you can query as far back as January 2008. However, there is a limit to how much data the API calls can return in a single execution, so you may need to execute the call multiple times to adjust the date ranges.

 

For more information, visit our documentation for the GET Activity Time Series endpoints.

 

I hope this helps. Let me know if you have any additional questions.

 

View best answer in original post

Best Answer
2 REPLIES 2

Hi @matsusho,

 

You can get periods for 1,2,3,4,5 returned in increments of 1d, 7d, 30d, 1w, 1m, 3m, 6m, 1y.

 

 In terms of how far back you can query this data, you can query as far back as January 2008. However, there is a limit to how much data the API calls can return in a single execution, so you may need to execute the call multiple times to adjust the date ranges.

 

For more information, visit our documentation for the GET Activity Time Series endpoints.

 

I hope this helps. Let me know if you have any additional questions.

 

Best Answer

Thank you for your quick reply

Best Answer
0 Votes