Directory API Not working?

Been using the directory API for a while and haven’t had any issues until last night. When using the API to get the streams from a game directory, it seems that the first 8-16 streams are not being listed therefore cannot get the top streams for the game.

Exampe: https://api.twitch.tv/kraken/search/streams?q=StarCraft%20II:%20Heart%20of%20the%20Swarm&limit=32
First object is the 12th stream in the directory.

This seems to be the case with all games I’ve tried and seems random as to which stream the return object starts with.

Has something changed with the API or is there an issue at the moment?

When searching for streams streaming a specific game you should be using GET /streams instead of GET /search. Search can return “interesting” results some times.

Ex: https://api.twitch.tv/kraken/streams?game=StarCraft%20II:%20Heart%20of%20the%20Swarm&limit=32

Hmm, okay.

I will give this a go for a while. Thank you for the quick reply and solution!