【问题标题】:I got 429 when I requested to Google Custom Search当我请求 Google 自定义搜索时,我得到了 429
【发布时间】:2021-04-27 03:02:27
【问题描述】:

当我在“Try this API”上向 Google 自定义搜索 API 发送请求时,我收到 HTTP 错误代码“429”。

回复在这里:

{
  "error": {
    "code": 429,
    "message": "Quota exceeded for quota metric 'Queries' and limit 'Queries per day' of service 'customsearch.googleapis.com' for consumer 'project_number:xxxxxxxxxx'.",
    "errors": [
      {
        "message": "Quota exceeded for quota metric 'Queries' and limit 'Queries per day' of service 'customsearch.googleapis.com' for consumer 'project_number:xxxxxxxxxx'.",
        "domain": "global",
        "reason": "rateLimitExceeded"
      }
    ],
    "status": "RESOURCE_EXHAUSTED"
  }
}

我知道 API 的限制是每天 100 个查询。但我今天只发送了 12 个请求。 (您可以在下图中看到它。)

您知道如何在不支付任何费用的情况下解除对 API 的限制

【问题讨论】:

    标签: google-api google-custom-search


    【解决方案1】:

    指标日志不会实时更新。要在不付款的情况下解除限制,您需要等待 24 小时。

    【讨论】:

    • 我现在收到了 200 个状态码。谢谢。
    猜你喜欢
    • 1970-01-01
    • 2016-12-05
    • 2020-05-16
    • 2013-12-22
    • 2020-11-16
    • 2019-07-17
    • 2022-06-14
    • 2020-07-23
    • 1970-01-01
    相关资源
    最近更新 更多