Reporting API - missing data

Hello!

We pull data from the previous day via the API every night around 4:00 am as follows:
https://example.com/piwik/?module=API&method=Live.getLastVisitsDetails&idSite=1500&token_auth=XXXX&period=day&format=json&date=2022-03-12&filter_limit=-1&serverHour=X

Now it has been noticed that on some days data is missing, which is then available for a later query. There is no clear pattern to be seen here.

Does anyone have any idea why sometimes data is missing?

Pete

Maybe the server is busy (e.g. archiving data) and does not respond?
Do you have any HTTP response status in this case?
What is the response body in such case (no data)?