如何解决Youtube Data API错误

时间:2019-11-21 07:57:07

标签: youtube-api

当前,我们的Youtube数据API v3已启用。

Image 3 Image 4 但是,我们在调用此API时发现了一些错误。

Image 3

屏幕显示如下:

Google_Service_Exception : {
    "error": {
        "errors": [
            {
                "domain": "usageLimits",
                "reason": "accessNotConfigured",
                "message": "Access Not Configured. YouTube Data API has not been used in project 10xxxxxxxxx29 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=10xxxxxxxxx29 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", 
                "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=10xxxxxxxxx29"
            }
        ],
        "code": 403,
        "message": "Access Not Configured. YouTube Data API has not been used in project 10xxxxxxxxx29 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=10xxxxxxxxx29 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
    }
}

我们尝试创建一个新的O Auth 2.0 ID,但问题仍然出现相同的错误。 有什么办法可以解决这个问题?

谢谢

1 个答案:

答案 0 :(得分:0)

Google允许每个用户每月/每个用户50000个请求。因此,您的网站访问量似乎很高。您可以从其他gmail获取另一个API密钥,然后将其放入API设置。希望此帮助。