Programatically adding annotations to YouTube videos - youtube-api

I have a project which is using the YouTube API to upload videos to YouTube.
One of the requirements is to be able to add annotations to the video, either at the time of upload, or afterwards. The annotation will contain some text to display, and a link to a URL.
Does anybody know if this is possible using the YouTube API, or some other method.
If it is possible, please provide links with details of how to do this.
Thanks
Gavin

No, this was answered already here:
Manage YouTube annotations through YouTube API
If you want to do it, you'd have to do it via a browser plug-in or other tricky way such as how YouTubeAnnotations.com does it.

Related

Is it possible to use the YouTube API to automatically create a comment when a new YouTube video is uploaded?

I am working on a personal program to use with my Google account. I don't have a custom website or domain to use. Basically, the idea of my request was to create a personal bot that would comment "First" on a video as a joke between my friends. I looked into the YouTube API a bit, but I got differing answers on the capabilities of the v3 data API. I found the commentThread page but am also confused about its usage. If anyone could give me a basic idea on if this project is possible, I would love to hear it.
welcome to Stack Overflow!
As you said, you want to create a comment when a video uploaded. YouTube has provide the webhooks for this.
You can see the docs push_notifications. I think that is what you want. :)

Search YouTube API without login in

I'm creating an app where i would like to display video result from the YouTube site.
However, i do not want the user to register for this.
After i registered my app, and allowed "YouTube Data Api", Still when i'm calling from my app:
https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=3&order=relevance&q=test&regionCode=AR&type=video&key={MyKey}
I'm getting back "forbidden (403)"
This issue suppose to be really simple, but i'm really straggling to get this to work, i'm thinking maybe it has something to do with the new API version 3.0, that you can not search without authentication?
Any help would be much appreciated thanks.
You can use below URL for searching of youtube videos using version3
https://www.googleapis.com/youtube/v3/search?part=snippet&q=nokialumia&key=#"API _KEY"&maxResults=20&pageToken=0
For suggestions of you tube videos you can use below link. It will gives you the data in XML format. You can parse and get results.
http://suggestqueries.google.com/complete/search?output=toolbar&ds=yt&q=nokialumia
If you want to use Version 2 use below link
Youtube Search using version 2.0
Hope it helps you...!
What kind of results do you want to see? Views, comments, share, likes? I think that you are not able to see any results by Youtube Data Api or Youtube Analytics API V3 without a valid key. You can find all error codes and their meanings from this link.
I hope it helps.

Setting first three recommended videos in youtube

I would like to know if there is anyway I can set the first three videos to be shown as recommended videos for a particular video feed using youtube api.
That's not something that you can control using the YouTube API. There are no plans that I'm aware of to add in that functionality.

Why the link get from youtube get_video_info doesn't work for download?

I test with browser with the link I get from "http://www.youtube.com/get_video_info?&video_id=xx" to see if it is be able to download.
After remove some parameters from original link, some works but some still don't.
I read some post here but most of are pretty old. A lot of change since then.
I wonder if there are somebody working on this recently.
The purpose I need this is because my youtube view program need a better quality video to display.
This is link doesn't work:
http://r17---sn-tt17rn7e.c.youtube.com/videoplayback?fexp=902529%2C932000%2C906383%2C902000%2C919512%2C929903%2C931202%2C900821%2C900823%2C931203%2C931401%2C908529%2C919373%2C930803%2C906836%2C920201%2C929602%2C930101%2C930603%2C900824%2C910223&ipbits=8&expire=1364854787&sver=3&mt=1364829200&newshard=yes&id=26c94a41dba396f5&key=yt1&upn=GrcnDUPfreQ&cp=U0hVSVhQUl9NUUNONV9QSlZIOm9BbnVkMTJzOXE5&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&ip=173.248.214.165&itag=34&ms=au&source=youtube&mv=m&signature=9593596F58B377FAA4C8F5A4516C7F53CE473340.507CA2EA250CEED2E2B2377FD70EE1A0478EE322&type=video/mp4; codecs="avc1.42001E, mp4a.40.2"&itag=18&
What wrong with it? I removed fallback_path and replace sig with signature.
The working link is for webm. This is for h264. Both have the same kind of parameters.
And this is working now.
http://r17---sn-tt17rn7e.c.youtube.com/videoplayback?fexp=909708%2C912514%2C930802%2C932400%2C916624%2C931009%2C932000%2C906383%2C902000%2C919512%2C929903%2C931202%2C900821%2C900823%2C931203%2C931401%2C908529%2C930807%2C919373%2C906836%2C920201%2C929602%2C930101%2C930603%2C900824%2C910223&ms=au&itag=44&mt=1364825784&ipbits=8&cp=U0hVSVhQT19NUUNONV9QSlNCOlp5ZGoyMXJ3emlq&ip=173.248.214.165&upn=ohH0s8EjPyo&newshard=yes&source=youtube&ratebypass=yes&mv=m&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&id=26c94a41dba396f5&expire=1364851187&key=yt1&sver=3&signature=798EED35782B846D2B0EA190A17E837A0DBA18EA.AD56BCF6365AAD974C18F09F352F9422084C50AC&type=video/webm; codecs="vp8.0, vorbis"&quality=large,itag=35&
That's not a supported method of interacting with YouTube. You need to use one of the official YouTube Player mechanisms to display YouTube videos.
Please familiarize yourself with the YouTube API Terms of Service if you have any more questions.

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

Resources