I'm using the YouTube API to update YouTube video thumbnails via the data API. Randomly I'm getting the error "The caller does not have permission [403]" for certain videos.
Things I've checked
Confirmed I have access to the channel and the video is valid.
Video is valid
Thumbnail is valid
Does anyone else see this?
Related
I have a list of videos that I'm not their owner and I need to find their bitrate ladder. Please let me know how can I obtain the video bitrate ladder by using Youtube Data API?
I've tried the list.fileDetails but I got the 403 error with following message:
"The request is not properly authorized to access video file or processing information. Note that the fileDetails, processingDetails, and suggestions parts are only available to that video's owner."
Thanks in advance.
youtube api responses wrong video items of this kind of playlist:
https://www.youtube.com/playlist?list=OLAK5uy_lSUrVP8K-w63I5BQyJKXdoxZNkMvU1T6w
You guys can see the actual api response by this link
This is a video returned from the api:
https://www.youtube.com/watch?v=Vdq1DWaxrJ0
But it doesn't exists in the playlist above, moreover I can't play this video because The uploader has not made this video available in your country. It looks like a "special video" of YouTube Music, lets see it thumbnail: https://i.ytimg.com/vi/Fc3Mj63xmPo/maxresdefault.jpg
Anyone know what happened?
I have a link live stream from youtube: https://manifest.googlevideo.com/api/manifest/hls_variant/upn/V377i0zgS9U/id/iGTIK_8ydoI.1/itag/0/gcr/vn/pmbypass/yes/expire/1429081762/sver/3/keepalive/yes/playlist_type/LIVE/source/yt_live_broadcast/maudio/1/signature/648757B5224BB06A23DADA58D1D514F8465B5B01.BEA5B2EE61132AB1A1768E9852B12F6DD641322F/ip/192.168.1.1/key/yt5/ipbits/0/ratebypass/yes/fexp/3300112%2C3300133%2C3300137%2C3300161%2C3310698%2C3311881%2C900720%2C907263%2C916656%2C932627%2C932631%2C934954%2C938028%2C9405998%2C9407115%2C9408031%2C9408163%2C9408347%2C9408708%2C9408732%2C947233%2C947243%2C948124%2C948703%2C951703%2C952612%2C952626%2C952637%2C954815%2C957201%2C961404%2C961406/hfr/1/sparams/gcr%2Chfr%2Cid%2Cip%2Cipbits%2Citag%2Cmaudio%2Cplaylist_type%2Cpmbypass%2Cratebypass%2Csource%2Cexpire/file/index.m3u8
I got this link from page source, but when I cannot restream it with ffmpeg/ffplay, this is error message:
[tcp # 0000000004442220] Failed to resolve hostname manifest.googlevideo.com: Th
e name does not resolve for the supplied parameters
https://......the/above/link...index.m3u8: Input/Output error
Does anyone help me find exactly live streaming link from youtube?
YouTube as of now does not provide you the opportunity to get a direct URL to your live stream. I researched this for a long time as I wanted to put my LIVE Stream on ROKU a streaming device. YouTube however is on Roku well because they are YouTube. But do let me know if you find a way around this.
I am working in an android app which shows videos from a YouTube Channel.
I have the channel id and all other stuffs. But I need the video id to show the video in YouTube Player.
***eg. player.cueVideo("nCgQDjiotG0");***
When I go through the developer site again and again, I got this one -https://www.googleapis.com/youtube/v3/videos?part=id&chart=mostPopular&key={YOUR_API_KEY}
It is working perfectly returning the correct Video id to play. But I can't done it with my Channel id (There is no option for passing channel ID as parameter).
The only one url which accept the channel ID and returns snippet is this one -
https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCxUtHtpGzd0bA5rYRY7h4VQ&q=PIVideoLibrary&type=channel&key={YOUR_API_KEY}
But the id it returning is not compatible with the above method. When I run it in the device it shows "Invalid Request" Here is screen shot which is the response of the above search request.
So this is my question.
How can we get video id of a video from a YouTube channel to show that
vedio in a youtube player integrated in the android app using YouTube
api v3
Thank You.
Ya I found it.
Go to youtube developer, https://developers.google.com/youtube/v3/docs/activities/list .
You can find a "TRY IT" field at middle of the page, fill the fields, you have to enter "contentDetails in the 'part' field to obtain video id. Then enter your channel id in the respective field. Execute the query, you can find the video id in the XML result.
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.