# Get user email, emails.json seems not working

**URL:** https://meta.discourse.org/t/get-user-email-emails-json-seems-not-working/83477
**Category:** Development
**Tags:** rest-api
**Created:** [March 21, 2018, 1:07pm UTC](https://meta.discourse.org/t/get-user-email-emails-json-seems-not-working/83477 "2018-03-21T13:07:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![borgymanotoy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/borgymanotoy/32/120206_2.png) [@borgymanotoy](https://meta.discourse.org/u/borgymanotoy)
#### Post date: [March 21, 2018, 1:07pm UTC](https://meta.discourse.org/t/get-user-email-emails-json-seems-not-working/83477/1 "2018-03-21T13:07:50Z")

</div>

Hi, I am looking for a way to get the user email address.

Link for getting the user info:

`https://meta.discourse.org/u/USERNAME.json`

but it does not contain the email address.

I read from a post:  
[https://meta.discourse.org/t/possible-to-return-users-email-with-api-response/59032](https://meta.discourse.org/t/possible-to-return-users-email-with-api-response/59032)

Getting user email link:  
`https://meta.discourse.org/u/USERNAME/emails.json`

but I am always getting the response:  
{“failed”:“FAILED”}

Eventhough I am already logged in to Discourse.  
If it needs an api\_key or something.. where can I get it? I am thinking I do not have enough access/permission to do this… or I may be missing something here.

I would really want to extract the email address.

Thanks!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 21, 2018, 10:47pm UTC](https://meta.discourse.org/t/get-user-email-emails-json-seems-not-working/83477/2 "2018-03-21T22:47:56Z")

</div>

Looking at someone’s email is a protected action and will require a staff API key.
