caffeinewriter / twitch-search

Retired - A search for twitch channels
https://searchstream.live/
MIT License
4 stars 2 forks source link

Twitch only returning a max of 100 results, not searching properly #17

Open bohabjames opened 2 years ago

bohabjames commented 2 years ago

when a 1st used this i remember going above (could jut be dumb) 100 but know it well only show 100

caffeinewriter commented 2 years ago

Hey there, I've been made aware of this, and I haven't had a chance to dig into it yet. Something changed with Twitch's v5 Search API in the last few weeks, and I'm not sure if there's any way to get back to the old search results. I'm going to try and update SearchTwitch to the latest API this weekend, but it may take a while since it's going to require adding an actual backend. Thankfully, Vercel allows serverless functions, which will let me at least get something going.

Also, in the coming days, I'll be switching SearchTwitch over to a new domain to ensure I'm complying with the latest Twitch branding policies.

caffeinewriter commented 2 years ago

So, at present, I may be stuck, and I'm not sure if there is a way to replicate the search experience as it existed before. Before, the v5 Twitch API searched stream titles, as well as channel descriptions, names, and others. However, now, it seems that Twitch either broke the title searching functionality, or silently removed it.

As of now, the API endpoint description reads as follows:

Searches for streams based on a specified query parameter. A stream is returned if the query parameter is matched entirely or partially, in the channel description or game name.

And the Helix (new) Twitch API description is the same. Whether that's an oversight, a deliberate choice, or a bug, it's unclear, and unfortunately I'm not sure if I'll ever be able to make the search behave in a meaningful way without some clear communication from Twitch.

Hopefully the ability to search by title returns at some point in the near future, but only time will tell.

For context, here's some info from the Twitch dev forums and uservoice:

https://discuss.dev.twitch.tv/t/search-by-title-not-possible/33868 https://twitch.uservoice.com/forums/310213-developers/suggestions/43079766-stream-title-searching

caffeinewriter commented 2 years ago

For reference, this appears to be a bug on Twitch's side. I've created an issue on the dev issue tracker here: twitchdev/issues#515

Hopefully the functionality will return. Regardless, once it's fixed on Helix, that will be my next primary objective in order to get ahead of the shutdown of the v5 API.