Statistical API inclusive months

Hello! I was wondering if there is a way to get daily statistics for a long time interval but only certain months? For example, I want to get statistics from 2020 - 2024 but only for May to September in each of those years. Currently I loop through each year and set the time interval individually. Therefore, I make 5 individual calls to the Statistical API, is there are way I could make this just one call? I do not want to get statistics for months I do not care about because it consumes a lot of PU.

Thanks for your help!