Retrieving events using query

Hi, i’d like to make an API call to retrieve all reported events with specific user.id . The only way i figured out for now is to query issues with an user.id 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 ‘https://sentry.io/api/0/projects/{organization_slug}/{project_slug}/events/?query=user.id:’ -H ‘Authorization: Bearer <auth_token>’ | jq ‘. .id’ | xargs -I ISSUE_ID curl ‘https://sentry.io/api/0/issues/ISSUE_ID/events/?query=user.id:’ -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?