I have a Spotify API key and a YouTube Data V3 API key that I use in a software program. My software is free to use and open source, and I do not charge for usage. My application/program interacts with users in this way:
a user provides a Spotify url, playlist, or code
the item is looked up through Spotify's API service and returns the title and the author, or in the case of a playlist, returns the title and author for each song in the playlist
the software takes the list of title-artist pairs and uses the YouTube Data V3 API to search for the appropriate YouTube links for each title-artist pair
the YouTube url for those songs are provided to the user via the software
Is this a valid, legal use of the YouTube Data V3 API?
I have looked through the YouTube API Services Developer Policies at https://developers.google.com/youtube/terms/developer-policies and I have not seen anything that indicates that this usage would be against the policies but wanted to make sure.
Related
I am using youtube api and some videos, which I am fetching are for YouTube premium. How can I filter them from not fetching these videos?
As always YouTube Data API v3 doesn't provide a basic feature: is a given video a premium one?
I would recommend you to use my open-source YouTube operational API. Indeed by requesting https://yt.lemnoslife.com/videos?part=isPremium&id=VIDEO_ID you'll receive a JSON where item['isPremium'] is a boolean stating whether or not the given video is a premium one.
With that you will be able to filter premium videos in search results with an additional call to my API.
I'm currently using the YouTube Data API v3 for videos and I'd like to get pricing information from the API. I couldn't find anything regarding that in the API. Is there another API for this kind of information that I'm not aware of or some undocumented parameter?
Here's an example request to get information about a movie that can be rented and bought on YouTube:
https://www.googleapis.com/youtube/v3/videos?key=API_KEY_HERE&part=snippet&id=wz43PZMOrAM
There's a price visible on the site itself but no trace of it in the API:
https://www.youtube.com/watch?v=wz43PZMOrAM&app=desktop
Thanks!
This is beyond the Youtube Data API's scope. You can't fetch that information using the Youtube API yet.
We're working on an integration with youtube channels (using Youtube Data Api v3). We need to access the videos (private also) on our user's channels.
The flow is the following:
User authorizes his/her youtube account on our site using OAuth.
We show user the list of videos on user's youtube channel.
User selects some of them (they can be private) and sends us for processing.
We need to somehow access the actual video files which the user asks us to process.
The issue is that youtube does not give any streaming URLs or download links.
Looks like, the API provides only iframe embedded code, which works ONLY for the browser, where the user is actually logged into youtube.
How can we access(can we?!) the private video, if we have the OAuth access-token of the video owner?
The YouTube Data API lets you incorporate functions normally executed on the YouTube website into your own website or application. The lists below identify the different types of resources that you can retrieve using the API. The API also supports methods to insert, update, or delete many of these resources. This in a sense means that you can see most of what you can see on the YouTube website including uploading new videos.
Downloading Youtube videos is against their Terms of Service, so the API does not support that.
Page linked above refers to Youtube ToS that states:
You shall not download any Content unless you see a “download” or similar link displayed by YouTube on the Service for that Content.
YouTube partners may have access to this feature in their API (no idea i have never seen the api), if you have access to this i suggest you contact your manager directly they should be able to instruct you on how to access it assuming the feature exists.
Using the instructions here, I was able to get a list of all videos on a channel on except videos which are unlisted:
Youtube Api to fetch all videos on a Channel
The YouTube API documentation is not clear on whether I was able to retrieve unlisted channel using the playlistItems request, and this post seems to indicate that the behavior has changed multiple times:
Youtube API returning unlisted videos
Is there any solution on being able to retrieve a full list unlisted videos from the API from the channel? Also, for this specific channel, this API account is connected to the YouTube brand account as a Manager, and I'm not sure whether that changes the behavior of the API.
I would like to display a list of videos from a YouTube playlist in an intranet application.
Is it possible to get the list of videos from a YouTube playlist using the Data api (or any other way) without requiring the user to login?
Everything that I have read so far in the YouTube data api requires the user to be signed in to authenticate.
unfortunately, you can't access youtube data API with anonymously user.
Your application must have authorization credentials to be able to use the YouTube Data API.
The Developers Console associates your credentials with the APIs that you indicate that your application will use. Note that the Developers Console does not allow you to select the YouTube Data API (v2). However, authorization credentials for the v3 API will also work for the v2 API.
If possible, you should actually use YouTube Data API (v3) rather than the v2 API in your application. The YouTube API blog explains some of the benefits that the newer API offers, and we have added a year's worth of additional functionality to the API since that blog post!
related link : https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth2#OAuth2_Client_Side_Web_Applications_Flow