API response: Changed format for Interval_to?

Starting this afternoon (from 2024-12-05 15:04:22 CET) a format of the data sent as a response to an API call has changed (daily aggregation).

In particular, the value interval → to (complete path data[idx][‘interval’][‘to’]) is no longer 00:00:00Z of the following day, but 23:59:59.999Z of the same day.

Does this also occur to you?

Was this change announced?

I attach the details of the request and response, and also an image with the data that is now arriving highlighted.

Thank you.


Good morning,
this morning it seems that the response is back to how it was before, i.e. interval[‘to’] is the next day at 00:00:00Z (see new attachment).

Would it be possible to have a clarification on what happened and if the format will change in the future?

Thank you very much.

Hi Pietro,

we’ve fixed a long standing bug in Statistical API where time intervals built via aggregation interval (usually daily) were treated inclusively on both ends (“from” and “to”).
Interval is now treated as half open ( [from, to) in mathematical notation), meaning observations/tiles with sensing time matching “to” timestamp are not considered also in this interval, but only the next one.
Such cases were detected with BYOC tiles, if users did not override default sensing time of ingested tiles (which is 00:00:00Z).

However, this change was not planned to affect the response output, and as you’ve noticed, this was then fixed too. Thank you for reporting it!