How to find out if a channel is live using the API?

Nice, thanks. What exactly is the user_id though? if I get channel information I only get broadcaster_id