Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3722

How to get latest comments from YouTube Data API?

$
0
0

YouTube Data API allows you to get latest comment THREADs and replies to that thread via comments/list endpoint but you cannot seem to get a flattened list of comments (thread & replies merged) or latest comment replies. Maybe I'm missing something.

My requirement is I want to check the latest comments, but in order to do this, I need to scan every comment thread and compare against a local store to see what is "new" and not been seen before.

This means calling comment/threads, then looks at all replies, then repeat. You cannot run this process in parallel and each page of results requires the previous token.

Thus for a big channel with 100s of 1000s of comments it taking forever to do a basic diff of what is a new comment. This seems a little crazy to me.

Again, maybe I'm missing something. Can anyone share with the YouTube Data API how to get the latest replies/threads quickly?


Viewing all articles
Browse latest Browse all 3722

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>