Retrieving events using query

Hi, i’d like to make an API call to retrieve all reported events with specific . The only way i figured out for now is to query issues with an criterion and then retrieve all events for each returned issue with separate API calls. I managed to streamline it a bit using undocumented feature of providing query parameter in listing events in issue

wich kinda looks like this:
curl ‘{organization_slug}/{project_slug}/events/?’ -H ‘Authorization: Bearer <auth_token>’ | jq ‘. .id’ | xargs -I ISSUE_ID curl ‘’ -H ‘Authorization: Bearer <auth_token>’

my concerns with that solution are:

  1. possibly significant amount of http requests that are made to fullfill events retrieval
  2. usage of undocumented “query” parameter to filter out events from issue listing

Is there any better way to do that that i’m missing?