Menu

How to Get YouTube Comments in Python and Node
📰

How to Get YouTube Comments in Python and Node

DEV Community: node·Anurag Kumar·about 6 hours ago
#F0OBpNE9
#devtonodejs#devto#dev#comments#call
Long article (3456 words) — no AI summary yet.
Reading 0:00
15s threshold

I run Serpent, the API used in the examples below.

To get YouTube comments in Python or Node, send one GET request with the video link, then follow the cursor for the next page. Google's official Data API does the same job with a Google Cloud API key and a default quota of 10,000 units a day. Both routes are shown below.

Short answer: If you are happy to set up a Google Cloud project and keep an eye on a daily quota, YouTube's Data API is free and returns exact dates and like counts, so use it. If you would rather make one call with one key and no project to set up, a comments API like the one below is less to wire up. One call returns one page of comments (20 in each answer saved for this post), not one comment, and sort=newest is the order to use when you need a walk you can run again.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.