Displaying ElasticSearch search results in a table with customizable onClick behavior

Hello! I'm looking to present some aggregated information in the form of tables that do some custom actions when clicked on each row.
While I was thinking that the EuiBasicTable component would work for my purposes, I'm stumbling figuring out how to send a query object, with filters and aggregations and such, and receive some raw data I can present and paginate through.

Should I just make API calls to elastic? Is there any plugin for this?

Please provide more details. Are you developing a Kibana plugin? Are you embedding Kibana into your own website? Are you using EUI in your own website? Which version of Kibana?