This seemed to work for me:
https://gist.github.com/JacobWeisenburger/f43f4635be7bfb8328823103bfaf3e5f
/**
CORS blocks this request from the browser, so you will need to run this code on the server.
*/
export async function checkIfYouTubeChannelIsLive ( channelId: string ) {
const liveCheck = `https://www.youtube.com/embed/live_stream?channel=${ channelId }`
const responseText = await fetch( liveCheck ).then( res => res.text() )
const isLive = responseText.indexOf( 'This video is unavailable' ) < 0
return isLive
}