【问题标题】:Google books API and the neccesity of an API keyGoogle 图书 API 和 API 密钥的必要性
【发布时间】:2013-10-23 17:50:24
【问题描述】:

因此,Google 声称要使用他们的 Google Books Api,您必须注册并获得 API 密钥。但是您可以在没有 api 密钥的情况下发出请求。

例如:

https://www.googleapis.com/books/v1/volumes?q=isbn:9780553819229

如果我可以在没有密钥的情况下提出请求,我为什么要注册?没看懂。

【问题讨论】:

    标签: google-api


    【解决方案1】:

    除了 Will 提到的使用条款外,最大的原因是当您使用 API 密钥时,API 请求不会受到太多限制。

    如果不使用 API 密钥,您会更快地收到以下错误:

    {
     "error": {
      "errors": [
       {
        "domain": "usageLimits",
        "reason": "userRateLimitExceededUnreg",
        "message": "User Rate Limit Exceeded. Please sign up",
        "extendedHelp": "https://code.google.com/apis/console"
       }
      ],
      "code": 403,
      "message": "User Rate Limit Exceeded. Please sign up"
     }
    }
    

    【讨论】:

      【解决方案2】:

      因为它在针对该 API 的用户协议范围内。而且你要遵守 Google 的规则。

      见:https://developers.google.com/books/terms

      还有:https://developers.google.com/terms/

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-09-09
        • 2014-01-25
        • 1970-01-01
        • 1970-01-01
        • 2011-07-04
        • 2011-05-10
        • 2012-03-18
        • 2017-08-28
        相关资源
        最近更新 更多