How to get asset ids claimed in specific video via YouTube Partner API? - youtube-api

Given specific video id (not owned by me), how can i get list of assets claimed in that video? I can do that via https://cms.youtube.com/manual_claim, but is there a way to do this via youtube partner api?

There is no way to check other people's ownership or management rights on a video or channel. YouTube deliberately avoids that. There is claimSearch->list method in Partner API but with that you can only search "your" claims.

Related

YouTube Content ID API Manual Claims

I’ve been doing some research on the YouTube Content ID api and researching about making claims, there is a “manual claim” property, but it’s noted as restricted with semi-minimal information about it.
params.isManualClaim - restricted
https://gist.github.com/esvit/27bc8f26c09c7a3a0c18
My question is, what does restricted actually mean? Is it restricted to only partners that have access to perform manual claims, or is it restricted to everyone and only available to internal YouTube processes?
Anyone have any ideas?
Thank you!
Here is the reason from the documentation.
Note: The YouTube Content ID API is intended for use by YouTube
content partners and is not accessible to all developers or to all
YouTube users. If you do not see the YouTube Content ID API as one of
the services listed in the Google Developers Console, see
www.youtube.com/partner to learn more about the YouTube Partner
Program.
The YouTube Content ID API lets developers build applications that
interact directly with YouTube's rights management system. The system,
which has an online interface at www.youtube.com/content_id ,
enables content owners and administrators to provide YouTube with
metadata, ownership information, and policy information for their
assets.
As a YouTube partner, you can use the API to create new assets and
manage existing assets. You can also retrieve information about your
Content Manager account, including a list of saved policies that you
can apply to your claimed content.
In addition, by combining the YouTube Content ID API with the YouTube
Data API and YouTube Player APIs, you can enable your application to
also upload, manage, and play YouTube videos.

Permissions to access someone's private videos on YouTube

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.

Is there a Youtube API endpoint to set sharing on a video within an organization?

I'm working on an app that uploads private videos to Youtube to be viewed by everyone at our organization. Luckily, Google and Youtube have an awesome company-wide permission for this, which allows for anyone with an email address within the company to view these videos.
Youtube has 3 options for video privacy status: Public, Unlisted and Private. I'd usually just go with Unlisted and call it a day, but due to the nature of these videos, I'd prefer for them to Private, then manually grant access to the video and share it with everyone at the organization. When done through the Youtube Video Manager page, here is the dialog box I'm looking for an API endpoint for:
Manual Approach
We can go through each video and check this box in each video, but that's not something that scales well. I'd love to find documentation on a Youtube API endpoint that handles this. There's a clear status.privacyStatus attribute for videos that can be set to private, public or unlisted, but nothing for this.
Does anyone know of a Youtube API andpoint to control this permission for private videos on Youtube?
I can back up the assumption from my comment that private video sharing is not possible through the Data API v3 with this article I found on the topic.
The author of the article even provides a workaround to this problem, although I strongly discourage using it, since it requires parsing sensitive account information (password) in PHP. Apart from that, the code is from 2010 and will most likely not work anymore because it is from before YouTube channels were linked to Google+ pages.

Upload video to specific channel

is there a way to upload videos through the Youtube API to a specific channel that I'm administrating.
https://developers.google.com/youtube/v3/docs/videos/insert
From what I see in the documentation the parameters onBehalfOfContentOwnerChannel is reserved to Youtube partners. Does this mean that I can only upload videos to my personal channel and not to one of my pages?
Thanks
As per documentation, you are correct. onBehalfOfContentOwnerChannel is only available for Youtube Partner only. If there is a way to be authorized that is when you do a transfer of ownership of the account but this should be done by the owner himself.
Reference related SO questions:
YouTube API - how to specify which channel to upload to
YouTube v3 API upload to channel
Hope this helps.

Is it possible to upload videos on specific channel through youtube API?

Is it possible to upload videos on a specific channel through Youtube API?
I am just able to upload videos on main account. We have created some channels using business names. But, I could not find any way to upload videos on those channels so far using API.
On main account, the profile is using a human name. We need to use business name and the channels have been created using business names under the main youtube account. I uploaded a video manually too. But, we need to upload the videos using API on those business channels.
Can anyone help here?
If you get authorized for that account, you can upload to that account too.
If you are using Google+ to manage all those accounts, you can read here. (This is also suggested way to manage multiple channels with one login name.)
If you are a content owner that is managing all these channels, then you can use Content ID API.

Resources