For all data, you’ll have to perform multiple requests and combine all the data in your application. We do not have an API that would return all the data at once.
type is the summarization rollup. Here’s a list of types: hour, day, week, 1month, custom. You can also use ?endDateLatest=true&type=week for last week worth of data.
In my experience, you can get 10,000 samples in a query - 10,000 minute summaries give you about a week, or 10,000 15-second samples is about a day. So you just have to iterate through the days or weeks … without exceeding your query limits.
Is there a way to get a “week” of hour summaries that is not the last week (most recent week), like
endDateLatest=false&type=week&startdate=xxx
I know I can get a week of minutes from a month ago (~10,000 data points) with the v1.1/?type=custom& … and calculate my own hour summaries, but a week of hours (~150 datapoints) is often all I need and less work if they are already sitting in the database.