The Get Streams endpoint returns data on channels that are online, so if you want to see if a specific channel is live you’d specify that channel in the params and if a stream object is returned then they are live, otherwise they’re offline.
Alternatively you could use EventSub, and subscribe to the stream.online type for the channel and receive a notification from Twitch when that channel goes live.