Why don't Youtube APIs return "contentOwnerDetails" data?

I am trying to make this call for Youtube feeds API, but the answer is missing contentOwnerDetails . What is the problem?

GET https://www.googleapis.com/youtube/v3/channels?part=id%2CcontentDetails%2CcontentOwnerDetails&mine=true&key={YOUR_API_KEY}
+4
source share
2 answers

For your URI GET

https://www.googleapis.com/youtube/v3/channels?part=id%2CcontentDetails%2CcontentOwnerDetails&mine=true&key={YOUR_API_KEY}

JSON response is as follows

{
  "error": {
    "errors": [
      {
        "domain": "youtube.parameter",
        "reason": "authorizationRequired",
        "message": "The request uses the <code>mine</code> parameter but is not properly authorized.",
        "locationType": "parameter",
        "location": "mine"
      }
    ],
    "code": 401,
    "message": "The request uses the <code>mine</code> parameter but is not properly authorized."
  }
}

According to YouTube Data API - Errors

401 (unauthorized) - authorizationRequired - the request uses the mine, but is not allowed.

Parameter value

mine must be set to true to instruct the API only to return channels belonging to the authenticated user. (Boolean)

: , .. YouTube, , .

. channelId URI? , , .

0

, API contentOwnerDetails. mine=true, OAuth, API contentOwnerDetails. . https://developers.google.com/youtube/v3/guides/authentication

0

All Articles