Closed Guitarhub786 closed 3 years ago
As reading the doc I think that it might be better to have an API key in order to have full services access provided by google (for example if we want to create a bookshelf for a user..)
If we want to retrieve public bookshelve we don't need api key: Retrieving a list of volumes on a public bookshelf But if we want to retrieve books on "my library" then we obviously need an api key to authenticate: Retrieving a list of my bookshelves
Using an API key allows to make more requests before getting rate limited, even for simple search queries. As we need to make more complex requests, an API key may be required anyway.
I have tested the google Api with and without a Google Api Key.
// A) Works without API key https://www.googleapis.com/books/v1/volumes?q=javascript
// B) Using with api https://www.googleapis.com/books/v1/volumes?q=javascript&key=AIzaSyD5zj2Y3Dqa17Yc7dADMXaF7BM7I9takjU
It seems that they both return the same results. Issue is: Can we get away with just using option A which would allow app to work out the box if people clone it in our repo. As option B would mean we would need to use .env variables in (Netlify).