Help with helix/search/channel

Hi! I’m trying to get the current game/category information and is_live for a streamer. I successfully call to get the streamer’s ID.

I have the following:

“helix/search/channels?query=id%3D"+streamerId

It only returns empty results even if the streamer is online. Is this how you use the query params?

{ data: [], pagination: {} }

Thanks,
Zelda

If you already know the streamer you want to get data for then you don’t need to use the Search endpoint, as that’s for finding streamers with a query when you may not know the exact username/id.

You should use the Get Streams endpoint and use the user_id param, such as https://api.twitch.tv/helix/streams?user_id=12345

1 Like

Thanks so much, I have it returning data now! <3

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