Get member by email

I wanted to find a member through the API using their email. Looking at the API docs it seems like the only thing I can do is fetch all users and iterate through.

Is there a way to get one user using only their email?

You can use the filter param, e.g.:

GET /admin/members/?filter=email:'yourmember@address.com'&include=newsletters,labels

Or, if using the Admin API SDK

await api.members.browse({
    filter: `email:'yourmember@address.com'`,
    include: 'newsletters,labels'
})
2 Likes