Twitch Chat API

To display live chat you can use the Twitch Embed Embedding Twitch | Twitch Developers

To get current viewer count you can use the Get Streams endpoint, but keep in mind that it’s not realtime, all API data is cached so you should poll the API no faster than once per minute.