Different API values in histogram vs. when fetched directly for the same day

I seem to be misunderstanding what histogram exactly contains but can’t find any additional info. I’m trying to get pageview and visitor data for the same day, but getting different results depending on how I request the data.

If I request histogram from 2024-08-01 to 2024-08-02 I get two days in the histogram despite the start and end property saying it should be a single 24h period (minus .001s).

URL: https://simpleanalytics.com/simpleanalytics.com.json?version=5&info=false&start=2024-08-01&end=2024-08-02&timezone=UTC&fields=histogram

"start": "2024-08-01T00:00:00.000Z",
"end": "2024-08-01T23:59:59.999Z",
"histogram": [
    {
      "date": "2024-08-01",
      "pageviews": 1803,
      "visitors": 1521
    },
    {
      "date": "2024-08-02",
      "pageviews": 1075,
      "visitors": 811
    }
],

But if I request the same time period using the pageviews parameter I get:

URL: https://simpleanalytics.com/simpleanalytics.com.json?version=5&info=false&start=2024-08-01&end=2024-08-02&timezone=UTC&fields=pageviews,visitors

"start": "2024-08-01T00:00:00.000Z",
"end": "2024-08-01T23:59:59.999Z",
"pageviews": 2878,
"visitors": 2332,

The start and end are identical. But the pageviews number is the sum of the two from the histogram which I feel would then mean it’s giving me back 2024-08-01 00:00 to 2024-08-02 23:59 instead of just one 24h period which I requested.

Any help greatly appreciated.

Thanks!
Alex