Could you write a data-explorer query that returns the data that you want, and then execute that query via the API?