You have to pass the startTime and endTime like following:
This API lets you get data for last 7 days.
So Let's say Today's date is 2025-03-07,
For past 7th day's data : ?startTime=2025-02-28T00:00:00&endTime=2025-03-01T00:00:00
For past 6th day's data : ?startTime=2025-03-01T00:00:00&endTime=2025-03-02T00:00:00
For past 5th day's data: ?startTime=2025-03-02T00:00:00&endTime=2025-03-03T00:00:00
For past 4th day's data: ?startTime=2025-03-03T00:00:00&endTime=2025-03-04T00:00:00
For past 3rd day's data: ?startTime=2025-03-04T00:00:00&endTime=2025-03-05T00:00:00
For past 2nd day's data: ?startTime=2025-03-05T00:00:00&endTime=2025-03-06T00:00:00
For past 1 day's data: ?startTime=2025-03-06T00:00:00&endTime=2025-03-07T00:00:00