# Is the /search/streams/ part of the api broken?

**URL:** <https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385>\
**Category:** API\
**Created:** [June 2, 2015, 10:29pm UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385 "2015-06-02T22:29:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pyyric](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Pyyric](https://staging-discuss.dev.twitch.com/u/Pyyric)\
**Post date:** [June 2, 2015, 10:29pm UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/1 "2015-06-02T22:29:53Z")

</div>

Searching for any game seems to have random results. This has been working for the past year or so, but within the last week at some point it broke.

[api.twitch.tv/kraken/search/streams?q=Ultra%20Street%20Fighter%20IV](http://api.twitch.tv/kraken/search/streams?q=Ultra%20Street%20Fighter%20IV) - This one resolves correctly, it only returns that game.

[api.twitch.tv/kraken/search/streams?q=Tekken%20Tag%20Tournament%202](http://api.twitch.tv/kraken/search/streams?q=Tekken%20Tag%20Tournament%202) This one brings back some of the correct result, but also some streams that aren’t related at all including FIFA and Hearthstone.

It gets even crazier, because some channels (currently [twitch.tv/capcomfighters](http://twitch.tv/capcomfighters) and [twitch.tv/crosscountertv](http://twitch.tv/crosscountertv) are being returned for multiple games.

Here is my output: [http://www.reddit.com/r/Fighters](http://www.reddit.com/r/Fighters) (in the right-hand sidebar)

Here is a copy of part of the api call at the time that I’m making this topic

url: [https://api.twitch.tv/kraken/search/streams?q=Soul%20Calibur%20V](https://api.twitch.tv/kraken/search/streams?q=Soul%20Calibur%20V)

```
{"_total":1320,"_links":{"self":"https://api.twitch.tv/kraken/search/streams?limit=10&offset=0&q=Soul+Calibur+V","next":"https://api.twitch.tv/kraken/search/streams?limit=10&offset=10&q=Soul+Calibur+V"},"streams":[{"_id":14690224560,"game":"Diablo III: Reaper of Souls","viewers":1117,"video_height":1080,"average_fps":59.9826803812,"created_at":"2015-06-02T15:09:01Z","preview":{"small":"http://static-cdn.jtvnw.net/previews-ttv/live_user_quin69-80x45.jpg","medium":"http://static-cdn.jtvnw.net/previews-ttv/live_user_quin69-320x180.jpg","large":"http://static-cdn.jtvnw.net/previews-ttv/live_user_quin69-640x360.jpg","template":"http://static-cdn.jtvnw.net/previews-ttv/live_user_quin69-{width}x{height}.jpg"},"_links":{"self":"https://api.twitch.tv/kraken/streams/quin69"},"channel":{"mature":false,"status":"Quin69 | Gabymode Activate | Day 242/365","broadcaster_language":"en","display_name":"Quin69","game":"Diablo III: Reaper of Souls","delay":0,"language":"en","_id":56649026,"name":"quin69","created_at":"2014-02-12T11:14:23Z","updated_at":"2015-06-02T22:16:03Z","logo":"http://static-cdn.jtvnw.net/jtv_user_pictures/quin69-profile_image-fce4f8cf92aeff8b-300x300.png","banner":null,"video_banner":"http://static-cdn.jtvnw.net/jtv_user_pictures/quin69-channel_offline_image-bb8e5ad71ad164df-640x360.png","background":null,"profile_banner":"http://static-cdn.jtvnw.net/jtv_user_pictures/quin69-profile_banner-45692790912f6ddd-480.png","profile_banner_background_color":"#000000","partner":true,"url":"http://www.twitch.tv/quin69","views":3158464,"followers":54699,"_links":{"self":"https://api.twitch.tv/kraken/channels/quin69","follows":"https://api.twitch.tv/kraken/channels/quin69/follows","commercial":"https://api.twitch.tv/kraken/channels/quin69/commercial","stream_key":"https://api.twitch.tv/kraken/channels/quin69/stream_key","chat":"https://api.twitch.tv/kraken/chat/quin69","features":"https://api.twitch.tv/kraken/channels/quin69/features","subscriptions":"https://api.twitch.tv/kraken/channels/quin69/subscriptions","editors":"https://api.twitch.tv/kraken/channels/quin69/editors","teams":"https://api.twitch.tv/kraken/channels/quin69/teams","videos":"https://api.twitch.tv/kraken/channels/quin69/videos"}}}
```

---

<div class="post-metadata">

**Author:** ![george](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/george/32/120_2.png) [@george](https://staging-discuss.dev.twitch.com/u/george)\
**Post date:** [June 2, 2015, 10:35pm UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/2 "2015-06-02T22:35:01Z")

</div>

If your goal is to only display live streams than you will want to use `/streams` with the `game` parameter instead: [https://api.twitch.tv/kraken/streams?game=Ultra%20Street%20Fighter%20IV](https://api.twitch.tv/kraken/streams?game=Ultra%20Street%20Fighter%20IV)

---

<div class="post-metadata">

**Author:** ![Pyyric](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Pyyric](https://staging-discuss.dev.twitch.com/u/Pyyric)\
**Post date:** [June 2, 2015, 10:38pm UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/3 "2015-06-02T22:38:00Z")

</div>

For my output I need viewer counts as well. game search doesn’t seem to have that unless there’s another parameter I can add?

oh wait, I’m wrong. it is returning viewers. pheww.

---

<div class="post-metadata">

**Author:** ![josephcricket](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/josephcricket/32/4488_2.png) [@josephcricket](https://staging-discuss.dev.twitch.com/u/josephcricket)\
**Post date:** [June 3, 2015, 11:30am UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/4 "2015-06-03T11:30:06Z")

</div>

I posted an issue on GitHub, maybe yours it’s the same problem i’m describing:

[Link to post](https://github.com/justintv/Twitch-API/issues/398)

---

<div class="post-metadata">

**Author:** ![Pyyric](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Pyyric](https://staging-discuss.dev.twitch.com/u/Pyyric)\
**Post date:** [June 3, 2015, 3:37pm UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/5 "2015-06-03T15:37:46Z")

</div>

Yup, that’s exactly it. Thanks for having more details =)

---

<div class="post-metadata">

**Author:** ![Pyyric](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Pyyric](https://staging-discuss.dev.twitch.com/u/Pyyric)\
**Post date:** [June 5, 2015, 8:06pm UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/6 "2015-06-05T20:06:23Z")

</div>

Current status of the problem with /search/streams

```
      Not returning random streams for whatever reason. 

```

Currently streaming for the game Ultra Street Fighter IV:

2,117 viewers on FrameTrapTV

109 viewers on Rayoux

93 viewers on MDZ\_jimmY

23 viewers on SinPhawks

17 viewers on classicfgctv

14 viewers on Xanoz\_Ichimonji

8 viewers on AZAZEL\_87

6 viewers on Xladyvalentinex

6 viewers on Akkirulez

But when you look for

[api.twitch.tv/kraken/search/streams?q=FrameTrapTV](http://api.twitch.tv/kraken/search/streams?q=FrameTrapTV)

you get {"\_total":0 …

whereas

[api.twitch.tv/kraken/search/streams?q=MDZ\_jimmY](http://api.twitch.tv/kraken/search/streams?q=MDZ_jimmY)

you get {"\_total":1 …

and it shows the info.

So of the list of current top USF4 streams in the directory (I  
refreshed again to make sure they are still live and they are) There are  
only 4 showing. MDZ\_jimmY, classicfgctv, xladyvalentine, akkirulez.

This happens for pretty much every game I’m searching for.

Using the api call

[api.twitch.tv/kraken/search/streams?limit=100&q=Ultra%20Street%20Fighter%20IV](http://api.twitch.tv/kraken/search/streams?limit=100&q=Ultra%20Street%20Fighter%20IV)

The streams that can’t be searched by themselves also don’t show up in the game name search.

---

<div class="post-metadata">

**Author:** ![Pyyric](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Pyyric](https://staging-discuss.dev.twitch.com/u/Pyyric)\
**Post date:** [June 7, 2015, 3:28am UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/7 "2015-06-07T03:28:14Z")

</div>

haven’t done full testing, but seems much better now from just looking at the results and remembering what I saw before. I’ll do more conclusive testing tomorrow.

---

<div class="post-metadata">

**Author:** ![Pyyric](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Pyyric](https://staging-discuss.dev.twitch.com/u/Pyyric)\
**Post date:** [June 8, 2015, 11:21am UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/8 "2015-06-08T11:21:32Z")

</div>

Still broke. Inconsistent results too. Sometimes it’s working fine, sometimes not.

---

<div class="post-metadata">

**Author:** ![josephcricket](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/josephcricket/32/4488_2.png) [@josephcricket](https://staging-discuss.dev.twitch.com/u/josephcricket)\
**Post date:** [June 8, 2015, 11:50am UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/9 "2015-06-08T11:50:49Z")

</div>

Yeah, it would be great if someone with some internal insight on the issue could give us a heads up about where is the search API heading and when will it be stable.

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [July 8, 2015, 11:51am UTC](https://staging-discuss.dev.twitch.com/t/is-the-search-streams-part-of-the-api-broken/2385/10 "2015-07-08T11:51:12Z")

</div>

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