List of all channels by game's name

How i can get whole list of channels by game’s name without duplicate??
I tried to take list of channels with max limit (100) changing offset value (with “/search/channels/…”) but seems that requests return duplicate values.

example request:

first request url:
https://api.twitch.tv/kraken/search/channels?q=ark&limit=100&offset=0

second request url:
https://api.twitch.tv/kraken/search/channels?q=ark&limit=100&offset=100

etc…

thnks.

Instead of using the search endpoint, use the streams endpoint: https://api.twitch.tv/kraken/streams?game=League%20of%20Legends

Thanks for reply, i tried to use streams endpoint but duplicate values persists when i try get more than 100 streams, furthermore not all streams are returned.

I tried to search streams by game with “League of legends”.

Example url:

  1. https://api.twitch.tv/kraken/streams?game=league+of+legends&limit=100&offset=0

  2. https://api.twitch.tv/kraken/streams?game=league+of+legends&limit=100&offset=100

etc…

Can someone help me??
Maybe i get duplicate entries because i perform multiple requests over time and to every request the streams change, is possible?

You cannot reliably get all streams due to caching and how streams can change their position while you’re making requests with different offsets.

Ok thanks dude, as i supposed.

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