Google books API and the neccesity of an API key

冷暖自知 提交于 2019-12-23 11:23:50

问题


So Google claims that in order to use their Google Books Api, you have to register and get an API key. But you can make a request without an api key.

e.g.:

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

Why would I register if I can make requests without a key? I don't get it.


回答1:


Along with the Terms of Use mentioned by Will, the biggest reason is that when you use an API key, the API request isn't throttled as much.

You'll get the following error much quicker without using the API key:

{
 "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:


Because it's within the user agreement towards that API. And you play by the Google rules.

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

and also: https://developers.google.com/terms/



来源:https://stackoverflow.com/questions/19548866/google-books-api-and-the-neccesity-of-an-api-key

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!