Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google books API and the neccesity of an API key

Tags:

google-api

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.

like image 481
user1924391 Avatar asked Oct 23 '13 17:10

user1924391


People also ask

Is Google Books API free to use?

If you are looking for building a book library app and you want to load a huge data of books then for adding this feature, you have to use a simple API which is provided by Google, and of course, it's free.

What does Google Books API do?

Google Books is our effort to make book content more discoverable on the Web. Using the Google Books API, your application can perform full-text searches and retrieve book information, viewability and eBook availability. You can also manage your personal bookshelves.

How do I connect Google Books API?

Use the GET https://www.googleapis.com/books/v1/volumes?q={search terms} endpoint. You need to enter the exact service URL in the wizard page and select the appropriate HTTP request method. Since you will be using an API key, no authentication type is required at this point.


1 Answers

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"
 }
}
like image 187
Anonsage Avatar answered Oct 02 '22 15:10

Anonsage