# Basic user info from access token

**URL:** <https://discuss.dev.twitch.com/t/basic-user-info-from-access-token/21189>\
**Category:** API\
**Created:** [May 16, 2019, 10:27am UTC](https://discuss.dev.twitch.com/t/basic-user-info-from-access-token/21189 "2019-05-16T10:27:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deni](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@deni](https://discuss.dev.twitch.com/u/deni)\
**Post date:** [May 16, 2019, 10:27am UTC](https://discuss.dev.twitch.com/t/basic-user-info-from-access-token/21189/1 "2019-05-16T10:27:51Z")

</div>

Hi,

I’ve managed to get an access token for a user using the helix API (the new API). How do I get basic user information from this? The kraken API is apparently deprecated and the new one seems partial with bad documentation.

My end goal would be to get the amount of followers that the logged in account has, but it seems that I would need to get the user id first.

Thanks in advance!

deni

---

<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:** [May 16, 2019, 10:37am UTC](https://discuss.dev.twitch.com/t/basic-user-info-from-access-token/21189/2 "2019-05-16T10:37:54Z")

</div>

Either

On the validation end point

> **[Authentication](https://dev.twitch.tv/docs/authentication/#validating-requests)**
>
> Authentication

or the users endpoint

> **[Reference](https://dev.twitch.tv/docs/api/reference/#get-users)**
>
> Twitch Developer tools and services to integrate Twitch into your development or create interactive experience on twitch.tv.

With just a Bearer token.

> If neither a user ID nor a login name is specified, the user is looked up by Bearer token.

---

<div class="post-metadata">

**Author:** ![deni](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@deni](https://discuss.dev.twitch.com/u/deni)\
**Post date:** [May 16, 2019, 10:56am UTC](https://discuss.dev.twitch.com/t/basic-user-info-from-access-token/21189/3 "2019-05-16T10:56:16Z")

</div>

I ended up calling:

> `https://api.twitch.tv/helix/users`

Authenticated with the bearer token

> `curl -H "Authorization: Bearer xxx" https://api.twitch.tv/helix/users`

Which gave me basic user information (including the user id which I can use to check follower count).

Thanks.

---

<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:** [June 15, 2019, 10:56am UTC](https://discuss.dev.twitch.com/t/basic-user-info-from-access-token/21189/4 "2019-06-15T10:56:20Z")

</div>

Closed on June 15, 2019, 10:56am UTC

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