Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream Search API not returning results #399

Closed
BrianSipple opened this issue Jun 3, 2015 · 9 comments
Closed

Stream Search API not returning results #399

BrianSipple opened this issue Jun 3, 2015 · 9 comments

Comments

@BrianSipple
Copy link

I haven't been able to test the full API completely, so I don't know this issue's full breadth, but it appears that the Search API is currently broken for streams. The example listed directly in the docs...

https://api.twitch.tv/kraken/search/streams?q=starcraft

... returns an empty result array.

Channel search appears to be fine, as does games search, but I have an app that depends on using the stream search and every query that worked last night is now returning no results.

@ghost
Copy link

ghost commented Jun 3, 2015

@BrianSipple You should use the full game name, but /search/streams is not a valid url.

You want /channels?q=starcraft

If you want live channels, use
https://api.twitch.tv/kraken/streams?game=StarCraft+II%3A+Heart+of+the+Swarm

@BrianSipple
Copy link
Author

Okay, that works... but the example I pasted was directly from the current example in the docs

@ghost
Copy link

ghost commented Jun 3, 2015

Yep, that looks broken :P

Potential workaround:

https://api.twitch.tv/kraken/search/games?q=starcraft&type=suggest&live=true

This is probably related:
#398 (comment)

@BrianSipple
Copy link
Author

I'm seeing results again with the original example I posted. However, the some of the queries I was using previously don't appear to be returning identical results when the "limit" parameter is used.

For example, try https://api.twitch.tv/kraken/search/streams?q=starcraft&limit=6. It returns a results object that reports 170 total items and provides the necessary links for future api calls. However, the "streams" array that would normally hold 6 results after the first call only holds 4. Future requests with the provided links seem to return a similarly truncated "streams" array as well.

@cgwic
Copy link

cgwic commented Jun 3, 2015

currenly

get https://api.twitch.tv/kraken/search/streams?q=starcraft&limit=6

returns six for me

@BrianSipple
Copy link
Author

Nice -- same here now. As far as I can tell, everything is back to normal with /search/streams?although it might still be worth keeping this issue open for a bit. If whatever caused this was also related to #398, others might be experiencing similar quirks with different varieties of the query.

@Pyyric
Copy link

Pyyric commented Jun 5, 2015

I don't think /search/streams is returning top results anymore. Just calling it raw and searching for streams in the twitch.tv/directory it doesn't find them. Didn't it used to display 25 results by default and then show top viewers first? Ugh, it used to just work and I don't remember what the defaults were.

@BrianSipple
Copy link
Author

I've been using the queried route for some time now without noticing any particular issues. Seeing as though there haven't been any more identical cases mentioned here or linked elsewhere, I'm going to go ahead and close this.

@burakkurkcu
Copy link

This problem seems to exist still.

With _total parameter response shows there is ~100 streams as I search now, which is much more than I need to limit.

https://api.twitch.tv/kraken/search/streams?q=starcraft&limit=6 returns 6 streams.
https://api.twitch.tv/kraken/search/streams?q=starcraft&limit=7 returns 6 streams.
https://api.twitch.tv/kraken/search/streams?q=starcraft&limit=12 returns 9 streams.
https://api.twitch.tv/kraken/search/streams?q=starcraft&limit=16 returns 14 streams.
https://api.twitch.tv/kraken/search/streams?q=starcraft&limit=18 returns 16 streams.

I only managed to get the correct count of streams as a response to limit <= 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants