An wss://-based API to fetch YouTube livestream chat in real-time.
Base URL is located on
- https://wschat.falcxxdev.cyou (HTTP)
- wss://wschat.falcxxdev.cyou (WebSocket)
| Path | Protocol - Method | Body or Query |
|---|---|---|
/ |
HTTP - GET | - |
/ |
WebSocket | - |
/api/livechat |
WebSocket | ?channelId ?liveId ?simple |
| Query | Required? | Description |
|---|---|---|
?channelId |
yes | [Recommended] YouTube Channel ID. |
?liveId |
yes | YouTube Live ID. You can gather this from YouTube URL by copying ?v= value. |
?simple |
optional | Simplify the returned data. Only returns the message object. |
Note Choose one. If
?channelIdis specified,?liveIdin the current stream is automatically acquired, you don't need to specify?liveId. But if you are using?liveId, you don't need to specify?channelIdbecause it works without Channel ID.
Source code is distributed under MIT License. See LICENSE for more information.