Use the streams endpoint https://dev.twitch.tv/docs/api/reference#get-streams
If the user is live then there will be a corresponding stream object in the data array, if the user is offline then they wont appear in the array at all.
Use the streams endpoint https://dev.twitch.tv/docs/api/reference#get-streams
If the user is live then there will be a corresponding stream object in the data array, if the user is offline then they wont appear in the array at all.