# API Filter users by emails, including secondary emails

**URL:** https://meta.discourse.org/t/api-filter-users-by-emails-including-secondary-emails/296910
**Category:** Development
**Tags:** rest-api
**Created:** [February 27, 2024, 3:03pm UTC](https://meta.discourse.org/t/api-filter-users-by-emails-including-secondary-emails/296910 "2024-02-27T15:03:20Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [February 27, 2024, 3:17pm UTC](https://meta.discourse.org/t/api-filter-users-by-emails-including-secondary-emails/296910/2 "2024-02-27T15:17:43Z")

</div>

Hello, welcome back! 👋

The [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin might be suitable for your use case.

> [@Discourse Data Explorer](https://meta.discourse.org/t/discourse-data-explorer/32566):
>
> discourse2Summary Discourse [Data Explorer](https://meta.discourse.org/t/32566?silent=true) allows you to make SQL queries against your live database, allowing for up-to-the-minute stats reporting.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.information_source If you’re looking for examples or support for any custom queries, you can find lots of topics in our #Data & reporting category under the #sql-query tag. If there’s not one to suit your pa…

You can use it as an API and create your query based on initial inputs.

> [@Run Data Explorer queries with the Discourse API](https://meta.discourse.org/t/run-data-explorer-queries-with-the-discourse-api/120063):
>
> bookmark This guide explains how to use the Discourse API to create, run, and manage queries with the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin. person_raising_hand Required user level: Administrator Virtually any action that can be performed through the Discourse user interface can also be triggered with the Discourse API. This document provides a comprehensive overview for utilizing the API specifically in conjunction with the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin. For a general overview of how to find the correct API …

---

_[View the full topic](https://meta.discourse.org/t/api-filter-users-by-emails-including-secondary-emails/296910)._
