RTSP Link Available on Youtube But missing in Data API - youtube-api

I am using the Youtube Data API version 2.
I am noticing that all of a sudden the RTSP links that were available using the Youtube Data API via the GData feeds are now unavailable in some cases. It is not that these videos in question are not available for mobile devices. These videos definitely have the rtsp links on the youtube website.
I can't find any updates to version 2 pertaining to this sudden change.
An example for the gdata feed that I am using is as below:
http://gdata.youtube.com/feeds/api/videos?q=Some_Query&author=Some_Author&v=2&orderby=published
Is there something wrong/missing in the above url? Is there any provision in version 3 to make sure that rtsp links are returned as long as they are available on the youtube website?

Related

How can we Download Youtube videos to a random Android/ios device through Rest APIs?

I want to write an API using which I can download selected videos to n number of devices.
Is there any API from youtube as such?
Downloading YouTube videos using the API is against their Terms of Service.
However, based from this comment, try the youtube-dl that is written in Python which you may use for downloading a YouTube video given its URL.
Here's another reference:
Youtube API for video download
Downloading videos from YouTube is against the YouTube EULA.
You can use third part apps clive, it is a command line tool. Hope it helps you.
You can also use ffmpeg in addition to convert different format from flv or mp4 that you download from youtube.

How to use YouTube Data API v3 to retrieve video url links?

My product is a media player box without a browser supports. Our YouTube application on the box used to use v2 to retrieve videos's url links with mp4 formats to make a playback:
http://gdata.youtube.com/feeds/api/videos/VIDEO_ID?format=3
Recently, all video links using this method direct me to a warning video, saying that I need to migrate to v3.
I study the v3 but cannot find a way to retrieve the video links.
How can I supposed to play YouTube videos without a browser on my box?
Are there any official ways?

Is there an API for sending Youtube links to the Youtube applications on Tivo/Smart TVs?

I'm having trouble finding documentation on Youtube's developer website whether there is an API for "Youtube for Devices" to send videos to set top boxes like the newer Tivos and similar players.
There is a feature in the Android app that allows a Youtube video to be played via the Tivo when you hit a button, similar to Chromecast.
I thought it might share an API with Chromecast in some way, but I tried the Chromecast extension on Google Chrome for Windows and it failed to detect the Tivo.
Is there an API for this, or is it a proprietary feature of the Youtube app?

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

How To Access URLs Of Videos Uploaded Via Youtube Direct Lite

I am planning on integrating YouTube into my web app where users will be able to upload videos to YouTube. I will need to programmatically access the URLs for all uploaded videos, the user IDs of the users who uploaded the videos, and record them in my database.
How can I do this using YouTube Direct Lite?
Is it possible to...
have YouTube Direct Lite callback my app when the download has been completed?
save parameters along with the uploaded video?
You have two options. You can retrieve a feed of videos that have been submitted to your playlist using the Data API, just like YouTube Direct Lite does behind the scenes. The relevant API call is something like
https://gdata.youtube.com/feeds/api/videos?v=2&orderby=published&category=%7Bhttp%3A%2F%2Fgdata.youtube.com%2Fschemas%2F2007%2Fkeywords.cat%7DytdlPLAYLISTID
where PLAYLISTID is the id of the playlist you're using to solicit videos (omit the PL prefix).
You can periodically make this query from your own app to get a feed of videos that are being submitted.
Alternatively, you can use YouTube Direct instead of YouTube Direct Lite. YouTube Direct is a full Java App Engine web application, and has its own datastore that gets updated whenever a submission happens. You can use that data however you'd like. It's a lot more work to get up and running with YouTube Direct, though.

Resources