Is there a way to get all emails of users with the API?

Our API endpoints are the ones consumed by the web app, since we log email queries on the webapp we don’t expose anywhere to bulk grab emails.

The only way, right now, is using the above mentioned Data Explorer based solution.