Get the URL of a video in a Youtube Android app.

I am trying to develop an application for myself that will download an audio version of the video played in the Youtube application. I figured out just about everything else, all I want to do is get the URL of the video that plays in the Youtube app.

So, the question can be divided into two parts:

  1. Is it even possible to get the video URL without any special permission from YouTube (no, I don’t want to copy and paste the video every time, rather I like to do it with the code). There are other apps that do similar things, like the Fairbuy app, which automatically shows you options on other e-commerce sites for the same product. Therefore, it must somehow track the product URL from the parent application.

  2. Can Google stop my publishing of the application on the Play Store? how he downloads an audio version of a song. I searched, but there are no YouTube downloaders on the Play Store.

Thanks in advance :)

+8
android youtube-api youtube-data-api youtube-api-v3 android-youtube-api
source share
2 answers

Answer to query 1:

Yes , you can get the URL of the video played in the official YouTube app. You are trying to integrate your application with the YouTube application, and there is a standard way to achieve it in Android. You can get detailed information about the method here .

Currently, the problem is that the YouTube app is providing a URL that can be retrieved from other apps. This requires the concept of content providers ( here.) You can integrate any application with another application, but it is limited only by the data provided by the parent application. The YouTube app allows you to retrieve the metadata of the currently playing video.

This has more to do with Android than with the YouTube API, as you are trying to get information about the current state of the YouTube app.

Answer to query 2:

Yes , it will be illegal to develop such an application in accordance with YouTube’s terms and services. However, you are not allowed to publish your application on the Google PlayStore . To indicate YouTube’s terms and services:

"You must not download any Content unless you see the" download "or a similar link displayed by YouTube on the Service for this content. You must not copy, reproduce, make available via the Internet or electronically transmission, publication, adaptation, distribution , transfer, broadcast, display, sell, license or otherwise use any content for any other purpose without the prior written consent of YouTube or the respective licensees of the Content. YouTube and its licensors remain lyayut reserves all rights not expressly granted in the Service and Content. "

Read more about YouTube’s terms and services here .

Why do you still need to develop applications like app?

Although it would be illegal to obtain financial benefits from such an application, since it violates the terms and services of another application on which everything depends, it would still be legal to develop such an application for personal use only . After re-quoting the terms and services:

Content is provided to you as IS. You can access the Content for your information and personal use only in accordance with the provided functionality of the Service and permitted in accordance with these Terms of Service. You should not upload any Content until you see the “download” or similar link displayed by YouTube in the Service for that Content. You must not copy, reproduce, provide online or electronically the transmission, publication, adaptation, distribution, transmission, broadcast, display, sale, license, or other use of any Content for any other purpose without the prior written consent of YouTube or the relevant content licensors. YouTube and its licensors reserve all rights not expressly granted in the Service and Content.

The discussion point at this stage could be: Is YouTube a service or a content provider? You can argue on both sides.

+1
source share

Not only will they ban this application from GooglePlay, but if you post it on the Internet (or a third-party Android store), they can make a set of laws against it, as people found out in TubeNinja. Latly google starts working after YT downloader and YT mp3 converters.

0
source share

All Articles