Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
569 views
in Technique[技术] by (71.8m points)

Not All Live Chat Messages Are Returned With List - Youtube LiveStreaming API

I have been trying to retrieve live chat messages of my youtube live. But when I use the LiveChatMessages List endpoint it is only giving me the last 75 messages. If you look at the live chat image below, i have send 100 messages. ( 1 to 100 ).

enter image description here

and when i make the call to get all the messages, ( Google API Explorer Image Given Below )

enter image description here

i get only the latest 75 messages( Output image given below ).

enter image description here

There is no way i can access the old messages. ( in this example i get messages 24 to 100, so 1 to 24 is missing. ).

enter image description here enter image description here

if i make another request with the the next page token it will give me the future 75 messages if any. there is no way to page to older messages.

my usecase needs me to process every message in the live chat. but this behaviour makes it impossible to do that.

How can i retrive all the live chat messages.

question from:https://stackoverflow.com/questions/65951099/not-all-live-chat-messages-are-returned-with-list-youtube-livestreaming-api

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...