# 404 error - translating user names to user ids

**URL:** <https://discuss.dev.twitch.com/t/404-error-translating-user-names-to-user-ids/10593>\
**Category:** API\
**Created:** [June 4, 2017, 5:28pm UTC](https://discuss.dev.twitch.com/t/404-error-translating-user-names-to-user-ids/10593 "2017-06-04T17:28:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Rivera](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/patrick_rivera/32/2846_2.png) [@Patrick\_Rivera](https://discuss.dev.twitch.com/u/Patrick_Rivera)\
**Post date:** [June 4, 2017, 5:28pm UTC](https://discuss.dev.twitch.com/t/404-error-translating-user-names-to-user-ids/10593/1 "2017-06-04T17:28:16Z")

</div>

Hey everyone, I’m receiving a 404 error while trying to retrieve user ids. The streamUrl link is working but logoUrl isn’t. Any help is greatly appreciated. Here is my code:

```
$streamUrl = "https://api.twitch.tv/kraken/streams?client_id=" + $client_id + "&channel=";
$logoUrl = "https://api.twitch.tv/kraken/users?client_id=" + $client_id + "&login=";

var channels = ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"];

for (var i = 0; i < channels.length; i++) {
$streamUrl += channels[i] + ",";
$logoUrl += channels [i] + ",";
}; 

```

Thanks in advance 😃

---

<div class="post-metadata">

**Author:** ![george](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/george/32/120_2.png) [@george](https://discuss.dev.twitch.com/u/george)\
**Post date:** [June 4, 2017, 5:59pm UTC](https://discuss.dev.twitch.com/t/404-error-translating-user-names-to-user-ids/10593/2 "2017-06-04T17:59:20Z")

</div>

Are you sending the correct version header for /kraken/users?

`Accept: application/vnd.twitchtv.v5+json`

---

<div class="post-metadata">

**Author:** ![Patrick\_Rivera](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/patrick_rivera/32/2846_2.png) [@Patrick\_Rivera](https://discuss.dev.twitch.com/u/Patrick_Rivera)\
**Post date:** [June 4, 2017, 6:15pm UTC](https://discuss.dev.twitch.com/t/404-error-translating-user-names-to-user-ids/10593/3 "2017-06-04T18:15:08Z")

</div>

Got it - thank you!

---

<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:** [July 4, 2017, 6:23pm UTC](https://discuss.dev.twitch.com/t/404-error-translating-user-names-to-user-ids/10593/4 "2017-07-04T18:23:55Z")

</div>

Closed on July 4, 2017, 6:23pm UTC

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