# /users/:user returns v2 object when v3 is requested

**URL:** <https://discuss.dev.twitch.com/t/users-user-returns-v2-object-when-v3-is-requested/4223>\
**Category:** API\
**Created:** [December 23, 2015, 1:04pm UTC](https://discuss.dev.twitch.com/t/users-user-returns-v2-object-when-v3-is-requested/4223 "2015-12-23T13:04:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qntm](https://avatars.discourse-cdn.com/v4/letter/q/5fc32e/32.png) [@Qntm](https://discuss.dev.twitch.com/u/Qntm)\
**Post date:** [December 23, 2015, 1:04pm UTC](https://discuss.dev.twitch.com/t/users-user-returns-v2-object-when-v3-is-requested/4223/1 "2015-12-23T13:04:12Z")

</div>

The `/users/:user` endpoint seems to return a v2 object for some users, even when v3 is requested explicitly through the querystring.

The two following requests both return the exact same object for me, but `X-API-Version` in the response is set correctly to either `2` or `3`.

- [https://api.twitch.tv/kraken/users/l1ke\_a\_boss?api\_version=3](https://api.twitch.tv/kraken/users/l1ke_a_boss?api_version=3)
- [https://api.twitch.tv/kraken/users/l1ke\_a\_boss?api\_version=2](https://api.twitch.tv/kraken/users/l1ke_a_boss?api_version=2)

```auto
{
    "display_name": "L1KE_A_BOSS",
    "_id": 29113058,
    "name": "l1ke_a_boss",
    "staff": false,
    "created_at": "2012-03-18T20:16:22Z",
    "updated_at": "2015-12-23T09:57:23Z",
    "logo": "http://static-cdn.jtvnw.net/jtv_user_pictures/l1ke_a_boss-profile_image-e03ca0049aefd060-300x300.png",
    "_links": {
        "self": "https://api.twitch.tv/kraken/users/l1ke_a_boss"
    }
}

```

When querying _test\_user1_ I get different results for v2 and v3 as expected.

- [https://api.twitch.tv/kraken/users/test\_user1?api\_version=3](https://api.twitch.tv/kraken/users/test_user1?api_version=3)

```auto
{
    "display_name": "Test_user1",
    "_id": 22747064,
    "name": "test_user1",
    "type": "user",
    "bio": null,
    "created_at": "2011-06-02T20:04:03Z",
    "updated_at": "2015-11-22T16:17:22Z",
    "logo": "http://static-cdn.jtvnw.net/jtv_user_pictures/test_user1-profile_image-ac0a2f0d39dda770-300x300.jpeg",
    "_links": {
        "self": "https://api.twitch.tv/kraken/users/test_user1"
    }
}

```

- [https://api.twitch.tv/kraken/users/test\_user1?api\_version=2](https://api.twitch.tv/kraken/users/test_user1?api_version=2)

```auto
{
    "display_name": "Test_user1",
    "_id": 22747064,
    "name": "test_user1",
    "staff": false,
    "created_at": "2011-06-02T20:04:03Z",
    "updated_at": "2015-11-22T16:17:22Z",
    "logo": "http://static-cdn.jtvnw.net/jtv_user_pictures/test_user1-profile_image-ac0a2f0d39dda770-300x300.jpeg",
    "_links": {
        "self": "https://api.twitch.tv/kraken/users/test_user1"
    }
}

```

I checked various users: some work as expected, some don’t.  
Is this a known bug? Maybe a caching problem?

---

<div class="post-metadata">

**Author:** ![livewhiletrue](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/livewhiletrue/32/348_2.png) [@livewhiletrue](https://discuss.dev.twitch.com/u/livewhiletrue)\
**Post date:** [December 23, 2015, 2:49pm UTC](https://discuss.dev.twitch.com/t/users-user-returns-v2-object-when-v3-is-requested/4223/2 "2015-12-23T14:49:24Z")

</div>

This is a known issue

> [@Currently Known Kraken API Issues](https://discuss.dev.twitch.com/t/currently-known-kraken-api-issues/2177):
>
> Twitch isn’t maintaining a list of API bugs, and the Github Issues isn’t organized. Someone mentioned there wasn’t a list of known API issues, so here’s a list to the best of my knowledge. I’ll try to keep it updated, and if I’m missing something let me know. Wrong API version being served If you request version 3 of /users/:user, for some users you might be served version 2. This is confirmed to be a caching issue with no known ETA on a fix. Wrong channel subdocument served inside a stream…

---

<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:** [December 23, 2015, 10:02pm UTC](https://discuss.dev.twitch.com/t/users-user-returns-v2-object-when-v3-is-requested/4223/3 "2015-12-23T22:02:34Z")

</div>

This issue appeared to have been fixed a few weeks ago but recently it’s come back with a vengeance and is occurring a lot more frequently than before.

---

<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:** [January 22, 2016, 10:02pm UTC](https://discuss.dev.twitch.com/t/users-user-returns-v2-object-when-v3-is-requested/4223/4 "2016-01-22T22:02:36Z")

</div>

Closed on January 22, 2016, 10:02pm UTC

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