Is there a way to add comments through YouTube API v3? - 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?

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

To create a top-level comment, use the commentThreads.insert method.
https://developers.google.com/youtube/v3/docs/commentThreads/insert

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

Related

How to remove a video from feed using Youtube API?

Using the YouTube Data API v3, is there a way to remove a video from my feed?
Reading through the docs, I didn't see anything on the Video resource that could match what I'm looking for.
The reason you didn't find any is there's no support for this feature yet.

How to limit comments through youtube data api v3

Im looking for method of Youtube data Api V3 in: https://developers.google.com/youtube/v3/docs/videos
I want to prohibit comments on my youtube videos. But It seems to be no method like that. is there any way how to limit video comments?
Looks like disabling comments from YouTube Data API v3 doesn't work right. now and they removed the feature. There is a bug reported on it over here.

How to fetch featured videos using the YouTube API v3?

I use some standard feeds of YouTube API v2 like:
http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured
http://gdata.youtube.com/feeds/api/standardfeeds/most_viewed_Music?time=today&v=2
Now, I want to switch to API v3, I have read the doc here: https://developers.google.com/youtube/v3/docs/
There are many resources types and methods, but it seems none is correspond to the old v2 standard feeds, is there any solution for the job ?
You can use videoCategories and guideCategories for that.
Here's the full blog.
GDL video.

YouTube safe search and rating via API

YouTube API v2 allows you to a) search for safeSearch only and b) get the media rating (eg PG-13) https://developers.google.com/youtube/2.0/reference#youtube_data_api_tag_media:rating .
Is there a way to do this in the v3 API?
If not: Why was this omitted? Are there plans to remove it from v2?
In general, what's the best way using the API to tell if a video is safe?
You should be able to use the safeSearch parameter as described at the following link:
https://developers.google.com/youtube/v3/docs/search/list
I hope that answers the first half of your question.
Furthermore, you can find the getRating method at
https://developers.google.com/youtube/v3/docs/videos/getRating
under the list of video methods (this section also lists the various ratings such as pg13 etc):
https://developers.google.com/youtube/v3/docs/videos

Listing all comments for a video in YouTube API 3.0

Is it possible to get all comments for a video with the new (experimental) YouTube API v 3.0?
I only found how to get "activities" (in their terminology comment is a kind of activity) originating from a given account.
The api page says the api is not feature complete, so it is quite possible that functionality is not yet made available. Although I might've just missed it.
There's no support for retrieving comments using v3 of the API. We can't make any commitments to add in support for reading/writing comments at this time, so if your application depends on them, using v2 is required.

Resources