Enabling and disabling comments on youtube video through api - youtube-api

How do you enable/disable comments on a video using the YouTube api? Basically what's the api way of doing this:

As stated in this thread, disabling comments and ratings on a video is not supported by the v3 API at this time.
There is a known issue where if you disable comments on your videos in your channel preferences and then upload a video through the v3 API, comments are still allowed on the video (note that this bug was reported internally, but it does not appear to have been fixed). YouTube is still working out these features for v3.

Related

youtube related video and on Pause more videos

Dears,
is there anyway to disable the related videos sent by youtube API through any player, as i am using WordPress and h5p for built LMS courses.
i am trying to disable the related videos at the end in the video and also there is more videos when you Pause the video.
hope the disable this as this is LMS and learning portal for users and they are confusing a lot from this videos.
best regards,
H5P needs to use YouTube's API for iframe embeds. That API does not provide an option to disable the related videos, and given that the API uses an iframe to provide the videos, there's no way to modify the video appearance. Guess you cannot get free video hosting and full control at the same time.

Does YouTube Data API V3 work with YouTube Music?

I would like to extract playlist data from Youtube Music, as well as metadata related to the songs in the said playlist. Is this possible with the Youtube Data V3 API, or YouTube Analytics API?
If so, where can I find documentation about calls and available metadata; I am not finding what I need on the YouTube Data API page. I am currently referencing PlaylistItems and Playlists in the reference Docs, but it seems that is geared to videos. Is that by design because you can toggle between video and audio in YT Music?
If possible is there an official Rust Crate?
Thank you in advance for the help.
Indeed, this feature is missing from YouTube Data API and quite a few other API users expressed the same need as yours.
The official Google staff account says the following:
This type of information is not available in the API. We have already raised a feature request for this but I can't guarantee that this feature will be implemented.
That is it: they may well implement this feature at some point, but, unfortunately, cannot tell when that'll happen.

YouTube API v3: Disliking a video in android

As per current documentation liking a video can be done by adding video into likes playlist.
Is there any way to dislike a video with Youtube data api v3.0.
There's no way to dislike (equivalent to the "thumbs down" UI option on the watch page) using the YouTube Data API v3 at this time.

youtube metadata on windows phone

I am planning to develop an app for the windows phone.
In this app actually, I need some metadata from youtube for each user, especially the videos they like and their playlists on youtube.
But, as I started to google for it, I came across this news that youtube apis are not fully supported on windows phone.
http://www.infoworld.com/t/windows-phone/in-blocking-windows-phone-access-youtube-google-delivers-rough-justice-210116
So, I wanted to know whether this feature can be implemented in windows phone app or not?
GData APIs work just fine on WP7/WP8 AFAIK. IANAL but it works fine and I haven't seen any official disclaimer saying it won't/shouldn't work. I believe this article has more to do about streaming video APIs then GData APIs.
You can see a sample of those APIs and how to use them in the official docs and in this previous answer of mine # Possible to play Youtube video in a wp7 app?
You can get the user metadata using YouTube Data API v3.
https://developers.google.com/youtube/v3/docs/playlists
from the documentation:
YouTube also uses playlists to identify special collections of videos
for a channel, such as:
uploaded videos
favorite videos
positively rated (liked) videos
watch history
watch later
The API can be consumed from any client, if you use any JSON library and OAUTH2 authentication.
This project shows how to do it;
https://yt-topic-explorer.googlecode.com/git/dist/index.html

Youtube API - Video is not available

Is there any way to detect if a video was removed or unavailable?
We need to have ability to remove it from the video listing if it has been removed from youtube server.
Hung BUI if you are using youtube API there is a way to filter the video which has been removed or not availble in your locality.
Kindly watch this video and seek it to 2m:03s, The tutor will say how to filter the unavailable and restricted video,..
Youtube Video on YOUTUBE search API
Use a parameter format and restriction along with the youtube api endpoint
https://gdata.youtube.com/feeds/api/videos?q=GoogleDevelopers&max-results=1&v=2.1&alt=jsonc&format=5&restriction=DE
If you hit this endpoint of youtube you can get a set of youtube videos which can be embedded as well as we can check whether the video is restricted in our locality.

Resources