Youtube 数据 API 错误 403:超出配额

问题描述 投票:0回答:0

我正在就调用 YouTube 数据 API 时遇到的问题与您联系。

我已经通过官方的Google OAuth 2.0 Playground获得了https://www.googleapis.com/auth/youtube.force-ssl的必要权限,并成功获得了access token。但是,当我尝试通过 Postman 调用 CommentThreads: insert 接口时,收到错误 403,提示已超出我的配额。

我查了谷歌后台有没有通话记录,也没查到,也不存在通话权限过高的问题。因此,我不确定我的电话问题出在哪里。

Google cloud API call record

我已经在我的代码中设置了正确的标头,包括密钥授权、内容类型和 x-api-key。但是,我仍然无法成功调用 API 并收到错误响应。

发布:https://www.googleapis.com/youtube/v3/commentThreads?part=id,snippet

{
  "snippet": {
      "topLevelComment":{
          "snippet":{
              "textOriginal":"Hello World!"
          }
      },
      "videoId":"yWOLNrYNhGY"
  }
}

这里是完整的错误信息:

{
  "error": {
    "message": "The request cannot be completed because you have exceeded your <a href=\"/youtube/v3/getting-started#quota\">quota</a>.", 
    "code": 403, 
    "errors": [
      {
        "reason": "quotaExceeded", 
        "message": "The request cannot be completed because you have exceeded your <a href=\"/youtube/v3/getting-started#quota\">quota</a>.", 
        "domain": "youtube.quota"
      }
    ]
  }
}

由于我的问题描述可能不够清楚,请告诉我如何提供更多信息和细节,以帮助您更好地理解我的问题和我的代码。

非常感谢您对此事的关注,期待您的回音。

youtube-data-api
© www.soinside.com 2019 - 2024. All rights reserved.