Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Youtube "channels" API don't return "contentOwnerDetails" data?

Tags:

youtube-api

I'm trying to make this call to Youtube channels API but the response is without contentOwnerDetails. What is the problem?

GET https://www.googleapis.com/youtube/v3/channels?part=id%2CcontentDetails%2CcontentOwnerDetails&mine=true&key={YOUR_API_KEY}
like image 329
micobg Avatar asked Jul 07 '16 11:07

micobg


People also ask

How often is YouTube API updated?

Standard feeds are updated periodically, with the update frequency varying from feed to feed. Many feeds are updated every 30 to 40 minutes but other feeds such as those that capture daily, weekly or monthly results – may only be updated hourly or even daily. Check the link above for more information.


1 Answers

It looks like it needs onBehalfOfContentOwner parameter. My request was

GET https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentOwnerDetails&id=CHANNEL_ID&onBehalfOfContentOwner=NETWORK_ID

And I was able to get

"contentOwnerDetails": { "contentOwner": NETWORK_ID, "timeLinked": "2015-07-23T15:21:25.000Z" }

like image 175
kangkyu Avatar answered Nov 15 '22 10:11

kangkyu