Hey,
So for that you would need an advanced segment.
From a high level, when you make a query to the GA API, dimensions and
metrics for all visits are returned as a table of data. When you add
filter we only remove rows from that generated table of data that fit
the criteria. Advanced Segments allows you to specify a segment of all
the visits to your site, for examples ones with an Event. GA then
calculates dimensions and metrics from these segmented visits and
returns a table.
Currently Advanced Segmentation through the API is an open feature
request.
-Nick