I am using the Youtube data API and I needed to know if there is any way of finding that the youtube channel is a Verified one.
相关问题
- YouTube API refresh token revoked with 400 code “i
- YouTube Data API v3 allowed referers for browser a
- Auto Upload of Videos to my account, using youtube
- handling errors in youtube data api in javascript
- YouTube API v3.0: How do you determine if a video
相关文章
- How to get the last 24 hours worth of videos from
- How can I get a list of the most viewed Youtube vi
- YouTube API 3 GET last videos from specific User
- youtube-upload runs from terminal but not cron cal
- Our application uploads hundreds of videos per day
- Youtube iframe api check if video exists
- Play YouTube playlist automatically
- Can I schedule YouTube videos for release via the
On verified channels, the class "has-badge" is present.
Work in 2018:
RE: mpgn's solution, note that there's a distinction between whether the G+ account is Verified and whether one or more of the accounts YouTube channels are Verified. It's possible for an account to have more than one channel, and each of those channels are verified independently, and for channels to be unverified even though the associated G+ account is verified.
As @Paul Blakely suggests, the current best way to do this is to check the status.longUploadStatus flag, per https://developers.google.com/youtube/v3/docs/channels
A proper solution, you need to do this in two step :
STEP 1, Using the YouTube Data API v3 and the
ressource channel.list
with the parameters :This is the output :
More at : https://developers.google.com/youtube/v3/docs/channels/list
STEP 2 with the Google Plus API, get the
googlePlusUserId
from the previous request and use the resourceplus.people.get
with the parameter:The result will show :
The verified field is what you want !
More : https://developers.google.com/+/web/api/rest/latest/people/get
just ran into this today, and while the channelBranding of the V3 youtube API looks promising, I couldn't get it to return if the account/channel user id was verified or not
so I threw up a pretty lame php script that uses DOM model searching to examine the html directly. to return true if the following element is present.
As of today (9/8/2014) a verified user will return true..
Bye for now!
If may be possible to check infer the verified status of a youtube channel via the status.longUploadsStatus flag being either allowed or eligible, as currently this feature requires the associated youtube account to be verified.
source : https://developers.google.com/youtube/v3/docs/channels