Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to add comments through YouTube API v3?

Tags:

youtube-api

Couldn't find it anywhere in the docs.

Is there a way to add a comment to a video with YouTube API v3?

like image 969
user2491455 Avatar asked Jun 17 '13 13:06

user2491455


People also ask

How do you comment on API?

Comment API overview Generally speaking, only two functions you need to know to get comment API worked: Use comment::init to initialize Comment API. Use $comment->output to display comments.

Is YouTube Data API v3 free?

Yes, using the YouTube API does not incur any monetary cost for the entity calling the API. If you go over your quota an 403 Error will be returned by the API.


3 Answers

There is no support for comments in v3 of the Youtube API. If you wanna work with comments you need to use v2 of the API. Here is a guide on how to use comments with the V2 API: https://developers.google.com/youtube/2.0/developers_guide_protocol_comments

like image 70
Jan-Willem de Boer Avatar answered Sep 20 '22 11:09

Jan-Willem de Boer


To create a top-level comment, use the commentThreads.insert method.

https://developers.google.com/youtube/v3/docs/commentThreads/insert

like image 23
user5015764 Avatar answered Sep 22 '22 11:09

user5015764


According to the Youtube API blog, comments are only available on v2 at the moment, until a "modern" alternative comes along for v3: http://apiblog.youtube.com/2014/03/committing-to-youtube-data-api-v3.html

like image 44
Benjamin Robinson Avatar answered Sep 23 '22 11:09

Benjamin Robinson