问题
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