Retrieving events of an issue for a given date range

I’m looking for a way to download events associated with an issue in a specific date range from our On-Premise instance of Sentry. I’m using this API for now:

It doesn’t have a “date” filter, so I have to scan through all events which is very slow. However, the results returned by this API seems to be ordered by date, but is that guaranteed by API? If that’s the case, I can do some optimizations.

Also, I’ve noticed Sentry UI is calling this API with a “query” parameter to filter out events. Is this a undocumented parameter? If this is a part of public API and support date as input, it can be very helpful in my use-case to download events data in specific dates.