每天YouTube数据API的单位数限制为0

时间:2019-02-03 01:05:59

标签: youtube-data-api

我正在尝试在我的Python项目中实现YouTube Data API v3。但是似乎我总是在使用限制方面出错。 这是我看到的具体错误:

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

控制台显示配额为0(由于信誉不佳,我无法发布图片,但是查看配额时会显示此信息。)

我激活了免费试用版。

1 个答案:

答案 0 :(得分:0)

您首先需要转到GCP控制台并为您的项目激活YouTube数据API。您必须为每个项目中的每个API进行此操作。

https://console.cloud.google.com