You need to use the Get Streams endpoint to check if channels are live or not.
As you have no backend and are making the requests client-side, this also means that you need the user to login to your site with the Implicit Grant flow so that you have an OAuth token to use with the request.