# How to get subs' email

**URL:** <https://discuss.dev.twitch.com/t/how-to-get-subs-email/29940>\
**Category:** API\
**Created:** [January 14, 2021, 11:43pm UTC](https://discuss.dev.twitch.com/t/how-to-get-subs-email/29940 "2021-01-14T23:43:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TotoAfrica](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@TotoAfrica](https://discuss.dev.twitch.com/u/TotoAfrica)\
**Post date:** [January 14, 2021, 11:43pm UTC](https://discuss.dev.twitch.com/t/how-to-get-subs-email/29940/1 "2021-01-14T23:43:53Z")

</div>

I’m trying to build a bot with tmi.js. Can I get my subs’ email? How is it possible to do this via javascript?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [January 14, 2021, 11:51pm UTC](https://discuss.dev.twitch.com/t/how-to-get-subs-email/29940/2 "2021-01-14T23:51:06Z")

</div>

> [@TotoAfrica](#):
>
> I’m trying to build a bot with tmi.js

A bot can’t do this, simply put

> [@TotoAfrica](#):
>
> Can I get my subs’ email?

The short answer is you don’t

The long answer,

Is you build a portal (aka Webpage), and ask each subscriber to login with the `user_read` scope (or OIDC flows) that will grant you access to read the Twitch listed email address for the user.

But if you are doing that, you should just give users a field to input their email into. So you ask the user to provide an email to be contact on instead.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [February 13, 2021, 11:51pm UTC](https://discuss.dev.twitch.com/t/how-to-get-subs-email/29940/3 "2021-02-13T23:51:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
