There is no way for me to use the YouTubeService_V3 API to read the chat messages from a live stream that does not belong to me.
I want to have a server receive chat messages from a live stream that I do not own. I am only intending to read this data and not write.
I can use YoutubeService/v3/search/list to find live streams if I set EventType to Live and Type to video, and this is pulling up valid live streams when I debug my code.
I can't seem to get the LiveChatID from these streams though in order to use with YouTubeService/v3/LiveChatMessages/List.
Any help with this would be really nice. The chat messages are already public, so I would assume there is no privacy issues.
At the end of the day, I want this server to take a broadcastID such as "pM4IfHZ5qcY" and be able to read in the chat messages, even if it isn't a channel or stream that I own.
I expect to have some way to use YouTubeService_V3 to look up a LiveChatID from a broadcastID, and then be able to use that broadcastID to read the messages from a live stream that I do not own
Are you looking for a way to read chat messages from a live stream that you don't own?
Even if you know liveChatId, you cannot get chat messages of a live stream that you do not own.
But there's only one way I know.
It's a tricky method, but you can call the chat on the web(url is https://www.youtube.com/live_chat?v=videoId ).
Then, you can get chat messages.
You have to first send a youtube/v3/search request with the channels ID. When you get the video ID that is live, then you have to send a youtube/v3/videos request with the videos ID, and you can then get the liveChatID... Here's an example in Python...
I wish there was a better way because just alone, 'search' takes up 100 points of your quota and google only gives you 10,000...