# ChannelID from Auth not working with Channel API

**URL:** <https://discuss.dev.twitch.com/t/channelid-from-auth-not-working-with-channel-api/16819>\
**Category:** Extensions\
**Created:** [July 27, 2018, 5:01pm UTC](https://discuss.dev.twitch.com/t/channelid-from-auth-not-working-with-channel-api/16819 "2018-07-27T17:01:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![outpost\_hypnos\_nick](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@outpost\_hypnos\_nick](https://discuss.dev.twitch.com/u/outpost_hypnos_nick)\
**Post date:** [July 27, 2018, 5:01pm UTC](https://discuss.dev.twitch.com/t/channelid-from-auth-not-working-with-channel-api/16819/1 "2018-07-27T17:01:39Z")

</div>

I’m just starting out with Twitch Extensions.  
In my 1st extension, I’m getting data from the Twitch Auth callback with a ChannelID '240173824 and a userID ‘U240173824’. However, when I try to fetch [https://api.twitch.tv/kraken/channels/240173824](https://api.twitch.tv/kraken/channels/240173824), I get a 400 response and no channel object. Is the channelID incorrect? Do I need additional information to the fetch call?

Thanks!

---

<div class="post-metadata">

**Author:** ![matt\_thomas](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/matt_thomas/32/710_2.png) [@matt\_thomas](https://discuss.dev.twitch.com/u/matt_thomas)\
**Post date:** [July 27, 2018, 9:55pm UTC](https://discuss.dev.twitch.com/t/channelid-from-auth-not-working-with-channel-api/16819/2 "2018-07-27T21:55:48Z")

</div>

For kraken you should make sure you are requesting Version 5 when using an ID - Add api\_version=5 to a URL or better yet, use the version and client ID in the header

a cURL header example can be seen at [https://dev.twitch.tv/docs/v5/#translating-from-user-names-to-user-ids](https://dev.twitch.tv/docs/v5/#translating-from-user-names-to-user-ids)
