GEO
GEO

Reputation: 41

YouTube Internal API (InnerTube) has not been used in project

I was playing youtube video on my application using youtubei api. One day videos got very slow. I figured api key [AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8] was overused. I tried to replace it with my own api key but it only responded with 403 Forbidden YouTube Internal API (InnerTube) has not been used in project. How do I setup my own key? What I tried:

  1. Enabled Youtube Data api V3, created credential
  2. Tried go to https://console.developers.google.com/apis/api/youtubei.googleapis.com/overview it failed to load

URL: https://www.youtube.com/youtubei/v1/player?key=[MY API key]

RESPONSE:

{
    "error": {
        "code": 403,
        "message": "YouTube Internal API (InnerTube) has not been used in project 910740975396 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtubei.googleapis.com/overview?project=910740975396 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
        "errors": [
            {
                "message": "YouTube Internal API (InnerTube) has not been used in project 910740975396 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtubei.googleapis.com/overview?project=910740975396 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
                "domain": "usageLimits",
                "reason": "accessNotConfigured",
                "extendedHelp": "https://console.developers.google.com"
            }
        ],
        "status": "PERMISSION_DENIED",
        "details": [
            {
                "@type": "type.googleapis.com/google.rpc.Help",
                "links": [
                    {
                        "description": "Google developers console API activation",
                        "url": "https://console.developers.google.com/apis/api/youtubei.googleapis.com/overview?project=[project id]"
                    }
                ]
            },
            {
                "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                "reason": "SERVICE_DISABLED",
                "domain": "googleapis.com",
                "metadata": {
                    "service": "youtubei.googleapis.com",
                    "consumer": "projects/[project id]"
                }
            }
        ]
    }
}

Upvotes: 0

Views: 3362

Answers (1)

4UPanElektryk
4UPanElektryk

Reputation: 1

My best guess is that you wanted to use v3 of the api but used v1 witch did not work maybe try using the v3 api like https://www.youtube.com/youtubei/v3/player?key=[MY API key]

Upvotes: 0

Related Questions