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

Thanks a lot mate you saved me a lot of time :+1: This is the most user un-friendly api I’ve ever used :smiley: