I need to set the featured content video through API for
1. For returning subscribers
2. For new visitors
I am trying using C#. I was able to add video, create playlist etc. But unable to set the featured content video for the channel.
Channel Featured content
Related
I'm trying to use the YouTube Data API to get a channel's Trailer and Featured Video but can't find anything in the [API docs][1] or responses that might provide it. Ideally, there'd be something that would return the ID of whichever videos had been selected here: https://studio.youtube.com/channel/[CHANNEL_ID]/editing/sections
Maybe it's buried in an obscure endpoint. Maybe the API simply doesn't include this anywhere. Can anyone please point me in the right direction?
Update: I've found the channel trailer as unsubscribedTrailer under the channels:list endpoint with the brandingSettings part. However, for some reason Google has decided not to include the featured video with it.
One more time YouTube Data API v3 doesn't provide a basic feature.
As Video spotlight you can have:
Featured video for returning subscribers
Highlight a video for your subscribers to watch. This video won’t be shown again at the top of your page for subscribers who have watched it. Learn more
Source: https://studio.youtube.com/channel/CHANNEL_ID/editing/sections
For the featured video:
you first need to subscribe to the give YouTube channel. To do so in an automatic way, use YouTube Data API v3 Subscriptions: insert endpoint.
then open your web-browser Network developer tool tab (Ctrl + Shift + E on FireFox) and filter HTML requests, then visit https://www.youtube.com/channel/CHANNEL_ID and copy the initial request to CHANNEL_ID as cURL, that way you can re-execute this cURL request for any channel you are subscribed to by changing the URL in the cURL request to https://www.youtube.com/channel/ANOTHER_CHANNEL_ID. Furthermore you'll find the featured video id in the JavaScript variable ytInitialData in the JSON entry
contents/twoColumnBrowseResultsRenderer/tabs/0/tabRenderer/content/sectionListRenderer/contents/0/itemSectionRenderer/contents/0/channelFeaturedContentRenderer/items/0/videoRenderer/videoId.
The channel with id UCv_LqFI-0vMVYgNR3TeB3zQ have both a channel trailer (1RHxvM8mQS4) and a featured video (rFuip5CSWcA).
I have a Recipes Android app with the following flow:
a. User searches for a recipe or selects a playlist
b. The videos corresponding to search word or the videos of the playlist are displayed using YouTube API.
c. On selecting the video the user is displayed a page containing:
1. YouTube player
2. Buttons to share and save recipe
3. Recipe Ingredients & Details
4. Functionality to create shopping list based on ingredients
5. Suggested videos loaded using YouTube API
As per YouTube Api Terms of Service, can I display Interstitial Ad before loading the video page which contains the YouTube Player and other items mentioned above.
Take a look at creating an interstitial ad using AdMob with Firebase.
You should be aware that according to YouTube's Terms of Service, it's forbidden to do so on top of any data served using their API, as quoted here:
You and your API Clients must not, and must not encourage, enable, or require others to: [...]
c. sell advertising, sponsorships, or promotions that are placed on or within YouTube audiovisual content or the YouTube player without YouTube's prior written approval; or
d. sell advertising, sponsorships, or promotions on any page or screen that contains YouTube API Data unless other data, content, or material not obtained from YouTube appears on the same page and offers enough independent value to justify such sales if the YouTube API Data were removed.
I need to create a playlist on Youtube with highlights from a livestream; I thought I can add them via API and the startA`` andendA`` properties, but it seems as if Youtube removed that feature:
https://productforums.google.com/forum/m/#!topic/youtube/Gipu_cCDScI
If I add playlistitems via API and set both properties, the item is added in full length to the playlist.
Is there any possibility to add only a part of the livestream video to the playlist? Cropping manually or whatever, I just need to create a highlights-playlist...
This featured was deprecated with the v2 API without replacement int he v3 API. You will have to manually download the video of the Live Event, cut up the video with your favorite editor, re-upload the newly cut video, and add that to a playlist.
How do you display private videos from my YouTube channel to my own Website.
Thank you
Instead of setting the video to private, set it to unlisted. It won't appear in any listing on youtube, i.e. your channel, search results & related videos but you can link to it and embed it like a normal video.
I'm trying to feed videos from a YouTube channel to a website. I've been able to add the videos one by one but I would like to add the whole YouTube channel very interactively on the website. Any idea?
Using Data API v3, you can get a list of all playlists associated with your channel.
'https://developers.google.com/youtube/v3/docs/channels#properties' ->
'contentDetails.relatedPlaylists'
Iterating through these playlists, you can get video ids and feed them.
'https://developers.google.com/youtube/v3/docs/playlistItems#resource' ->
'contentDetails.videoId'
Or you can put the whole playlist as a player by,
going to playlists ->
'player.embedHtml'