Often, our users know exactly how many days of data they require for their API request.

It can be helpful to reduce the API response volume, to manage the total amount of data that must be handled. This becomes particularly important for applications making many thousands of requests per day.

In other cases, users want more than the default API response, which is only 48 hours at a time. Namely, they may want to retrieve all 7 days of live back data.

In your API GET request, you can append the parameter 'hours' to the request and provide an integer value. From our API docs:

So for example, when requesting live data for an application requiring at least 5 days of back data:


Or for a 7 day forecast:


You can vary the amount of data returned using the hours query parameter in any manner that you choose. Once again, the default is 48.

Did this answer your question?