12

So we have some training videos on youtube that are private. We want people that log into our system to be able to access those videos, but I don't want them to have to login with oauth.

I want our app to do the authentication to OUR account and when our app uses the api, I want it to return private videos. (I'm fine with using the API key and limiting the referral)

I've played around with the api, but the api key does not return private videos.

It always return an empty array of items.

How can I do this?

Senica Gonzalez
  • 7,996
  • 16
  • 66
  • 108

1 Answers1

8

You need to OAuth to your own account for that. Though you can do this without authenticating all the time. YouTube Data API: OAuth Authentication for services using V3 without user intervention

Community
  • 1
  • 1
Ibrahim Ulukaya
  • 12,767
  • 1
  • 33
  • 36
  • But oAuth does not meet my needs. oAuth requires some user interaction for authentication. I want my application to authenticate itself. From what I've read youtube does not support service apps which blows. Any other suggestions. – Senica Gonzalez Feb 19 '14 at 21:45
  • 3
    In the link above, it tells you how to do oauth without user intervention!!!! Service accounts are not supported in YT API yet. – Ibrahim Ulukaya Feb 20 '14 at 00:05
  • 4
    Calm down. and NO it does not. you still have to authenticate with a human being. There is no way around that. Also, as with all the other SO answers, you cannot do what I'm asking. – Senica Gonzalez Feb 20 '14 at 23:26
  • did you find a solution for this? i have the same problem – Mvram Apr 07 '17 at 22:29
  • I created access token, Please tell me how I use to play private video in android – hrca Jan 31 '19 at 13:16
  • Did found a way? –  Feb 05 '19 at 03:36
  • @SenicaGonzalez - Ibrahim's answer is exactly what you are asking for, and is widely used as the only work-around for the lack of service account support for OAuth2-protected API endpoints. – Lee Goddard Sep 28 '20 at 11:27