Search code examples
youtube-apiyoutube-data-apiyoutube-livestreaming-api

Youtube Livechat API is not finding the live chat


So I was trying to use the LiveChat API from youtube, At the end I got into using this post:

https://www.googleapis.com/youtube/v3/liveChat/messages?access_token=MYACCESSTOKENHERE&part=snippet&messageText=lalala&liveChatId=0bksQfFVZW4

Now it tells me that it can't find the liveChatId, Any reason why?


Solution

  • liveChatId property is associated with liveBroadcast. So try making calls to any of the liveBroadcast methods . A successful response includes the liveChatId property. Don't forget to specify 'snippet' as the 'part' parameter. Also, you'll be required to use OAuth Authorization when calling these methods.