# How to put Client-ID in url

**URL:** <https://discuss.dev.twitch.com/t/how-to-put-client-id-in-url/23021>\
**Category:** API\
**Created:** [November 2, 2019, 12:17pm UTC](https://discuss.dev.twitch.com/t/how-to-put-client-id-in-url/23021 "2019-11-02T12:17:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![William](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/william/32/7300_2.png) [@William](https://discuss.dev.twitch.com/u/William)\
**Post date:** [November 2, 2019, 12:17pm UTC](https://discuss.dev.twitch.com/t/how-to-put-client-id-in-url/23021/1 "2019-11-02T12:17:28Z")

</div>

Sorry I am a bit of a noob, I’m not sure what I am doing wrong.

When I type this into browser:  
[https://api.twitch.tv/helix/streams?client\_id=XXXX](https://api.twitch.tv/helix/streams?client_id=XXXX)

comes back with “Must provide a valid Client-ID or OAuth token”

---

<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:** [November 2, 2019, 12:25pm UTC](https://discuss.dev.twitch.com/t/how-to-put-client-id-in-url/23021/2 "2019-11-02T12:25:42Z")

</div>

As per the docs:

> **[Twitch API](https://dev.twitch.tv/docs/api/)**
>
> Twitch API

The docs request that the ClientID is to be applied as a header, not as a query string argument

---

<div class="post-metadata">

**Author:** ![rob](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rob](https://discuss.dev.twitch.com/u/rob)\
**Post date:** [November 4, 2019, 7:16am UTC](https://discuss.dev.twitch.com/t/how-to-put-client-id-in-url/23021/3 "2019-11-04T07:16:48Z")

</div>

Hello, you should read this thread and it will help you to solve your problem[.](https://apkpassion.com/spotify-premium-apk/) Thanks

> [@How to put client id on url](https://discuss.dev.twitch.com/t/how-to-put-client-id-on-url/13830):
>
> Hello, i m very noob on programming and this api. I just need just this game’s viewer count.But i dont know where i put client id on this query.I have an id with localhost. [https://api.twitch.tv/kraken/streams/?game=Overwatch/](https://api.twitch.tv/kraken/streams/?game=Overwatch/) Soryy for this noob question.I didnt found on google.I found only via php,js but not direct link.

---

<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:** [November 4, 2019, 10:49am UTC](https://discuss.dev.twitch.com/t/how-to-put-client-id-in-url/23021/4 "2019-11-04T10:49:54Z")

</div>

@rob The information you provided is for the V5/Old API not for Helix/New API

---

<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:** [December 4, 2019, 10:49am UTC](https://discuss.dev.twitch.com/t/how-to-put-client-id-in-url/23021/5 "2019-12-04T10:49:59Z")

</div>

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