Youtube kids api - youtube

Do youtube-kids provides search api that will only return you-tube kids video?
Can I use existing you-tube api to list/search the you-tube kids video? Youtube-kids app only provides content that is child-friendliness. Can I use existing api to list/search these content?

Googled around for quite a while and found nothing specific as to a filter or Search API that is for Youtube Kids only. In regards to the Youtube Search: list API, there is the safeSearch optional parameter that I think you can use instead. As per the docs:
The safeSearch parameter indicates whether the search results should include restricted content as well as standard content.
There are 3 possible values: moderate, none, and strict. I'd suggest the Education Feed but it's already been deprecated, and I think safeSearch is the one they use to replace it.

Try using the safeSearch parameter as 'strict'. This is most likely what YouTube Kids uses.

Related

Localization in PlaylistItems YouTube API

I have an application that uses the YouTube API to display a list of playlists and videos from a particular YouTube Channel. The application supports multiple languages so I also used the localizations feature YouTube API offers and it works great with v3/videos and v3/playlists using the hl param, but the only problem I faced was with v3/playlistItems as it doesn't have support for localizations.
Please help me in adding localizations using v3/playlistItems so that all videos under a particular playlist displays localized title and description.
An ugly work around is to send two requests. First fetch the video-ids by using v3/playlistItems, then use v3/videos with the video-ids separated by comma, to get the translation with the available hl param.
There is currently no indicated way of doing this from the PlaylistItems docs. Try filing for a feature request here.

how to get youtube `search instead` feature in youtube api version 3?

In youtube interface if we search for a term with spelling mistake, Interface provides an option to "search instead" for a similar term. for example
poovin maarile search gives you results for poovin marile
but while using youtube api version 3, poovin maarile gives zero results and poovin marile gives 230+ results. But there is no way in the api to get this very closely related term.
I am aware of spelling suggestions feature in version 2 but since version 2 is deprecated I am not interested in using it. Is there something similar for youtube data api version 3?
I don't think there's an official API for this at the moment.
You probably shouldn't rely on this being available in the future, but I think the only alternative at the moment is querying the same URL that YouTube and other pages use.
From another question: Youtube API search auto-complete
A page detailing the query parameters: Google Autocomplete API

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

Manage YouTube annotations through YouTube API

Is there a way to manage (create, update) annotations using the YouTube API?
I have a few hundred videos on YouTube that I would like to add annotations to.
There's an existing feature request for API access to annotations tracked at https://code.google.com/p/gdata-issues/issues/detail?id=558
I'd recommend "star"ing that feature request to be notified of any updates.
Update: It is possible to update InVideo programming annotations, but only those types. See http://www.youtube.com/watch?v=rqtuSRe3QLo
No, this is not supported.
The YouTube Data API v3 does allow you to create Invideo programming annotations and watermarks.
Unless it's just come out, there isn't a documented way of doing anything with annotations via the API yet. I'd be surprised if that kind of support doesn't appear soon, though.
Some time Annotation makes irritate users but sometimes useful to instruct redirect to other topics.
Note: YouTube Discontinued Annotations because it's not working on mobile & second reason is that 70 % user watch YouTube videos on mobile so for better serve youtube took this type of decision.
Please Watch This Video for full clarity: https://youtu.be/Awl1TTUSY78

Youtube API 2.0 Checking if a video is age restricted

I would like to check and see if a youtube video is age restricted. There are not many videos that are, but some are. I have been digging around in the youtube api documents and on the internet, but can't seem to find a way to detect this.
I am using the Youtube API V2 and only looking for one video at a time.
To check whether a video is (age) restricted in a given region, you can take a look at the media:rating attribute of the video entry, which is documented at
https://developers.google.com/youtube/2.0/reference#youtube_data_api_tag_media:rating
If you want to do a search and filter out videos that are age restricted, you can use the safeSearch=strict parameter:
https://developers.google.com/youtube/2.0/reference#safeSearchsp
I agree to Greg Schechter. The actual question was like if we have a video id (eg: In the link http://www.youtube.com/watch?v=RyDY0hiMZy8 the video id is RyDY0hiMZy8), how can we get the age restriction details based on that?
There is an API provided by Youtube to get the details based on the video id. For the above example the API link is:
http://gdata.youtube.com/feeds/api/videos/RyDY0hiMZy8?v=2&alt=json
But there is no information about the age restriction in the response.
Update on the above post:
In the API response from http://gdata.youtube.com/feeds/api/videos/tA4wytG3uh0?v=2&alt=json
we have a media$rating content coming and the data coming there can be compared with the rules mentioned in the link https://developers.google.com/youtube/2.0/reference#youtube_data_api_tag_media:rating
For non restricted videos, the media$rating value is not coming in the response. eg: in the link http://gdata.youtube.com/feeds/api/videos/RyDY0hiMZy8?v=2&alt=json
Any updates are welcome.
Age gating is not supported for embedded playbacks; so it's not something that is returned in the YouTube data api.
You can un-restrict those videos by following this link:
https://www.quora.com/How-do-you-change-the-settings-of-the-the-age-restrictrincts-on-my-YouTube-videos/answer/Doyle-Lorraine
Then your iframes should be back to normal.

Resources