google-books

Google books api returns missing parameters

ⅰ亾dé卋堺 提交于 2021-02-11 12:46:31
问题 I am making a react app that searches for a book by title and returns the results. It's mostly working fine, but for some titles searched (such as "hello") it can't get the results because the parameters are missing. Specially, the "amount" value is missing, and it can get me e-books that are not for sale even if I add the filter=paid-ebooks param while fetching the api. Using projection=full doesn't help either. For example, when I call the api with https://www.googleapis.com/books/v1

Google Books API: “Cannot determine user location for geographically restricted operation.”

☆樱花仙子☆ 提交于 2020-06-17 02:08:05
问题 Since three days I get the above mentioned error message when trying to access google books api, although my IP didn't change. I can reproduce that on the command line with a simple curl "https://www.googleapis.com/books/v1/volumes?q=frankenstein" So it's not my code. It can be fixed adding a country code: curl "https://www.googleapis.com/books/v1/volumes?q=frankenstein&country=DE" Now how do I do that in the PHP client? I tried adding country as an optional Parameter: $client = new Google

Google Books API: “Cannot determine user location for geographically restricted operation.”

社会主义新天地 提交于 2020-06-17 02:07:28
问题 Since three days I get the above mentioned error message when trying to access google books api, although my IP didn't change. I can reproduce that on the command line with a simple curl "https://www.googleapis.com/books/v1/volumes?q=frankenstein" So it's not my code. It can be fixed adding a country code: curl "https://www.googleapis.com/books/v1/volumes?q=frankenstein&country=DE" Now how do I do that in the PHP client? I tried adding country as an optional Parameter: $client = new Google

403 status from Firebase Cloud Function -> Google Books API

醉酒当歌 提交于 2020-06-01 05:41:21
问题 I'm currently working on creating a Firebase Cloud Function that retrieve a list of books from the NYTimes API and grabs some additional information from the Google Books API. By using the following URL : "https://www.googleapis.com/books/v1/volumes?q=isbn:&key=" I'm able to retrieve books' details based on an ISBN. My FREE quota for Google Books API is 1000 request per day and 100 request every 100 seconds per user. I'm only sending 15 requests and my current quota is below 200. My key is

403 status from Firebase Cloud Function -> Google Books API

南楼画角 提交于 2020-06-01 05:40:05
问题 I'm currently working on creating a Firebase Cloud Function that retrieve a list of books from the NYTimes API and grabs some additional information from the Google Books API. By using the following URL : "https://www.googleapis.com/books/v1/volumes?q=isbn:&key=" I'm able to retrieve books' details based on an ISBN. My FREE quota for Google Books API is 1000 request per day and 100 request every 100 seconds per user. I'm only sending 15 requests and my current quota is below 200. My key is

Android Retrofit - GoogleBooksAPI - JSON return issue

耗尽温柔 提交于 2020-01-06 06:58:45
问题 I'm trying to make my android app to return book info using the google book API. Here's the url I'm pinging I'm using retrofit to grab the info and bring it back to me however it's coming back like this and I'm not sure how to resolve it: D/MainActivity2: onResponse: Success onResponse: success body: models.Book2@ae8dded onResponse: success response: Response{protocol=h2, code=200, message=, url=https://www.googleapis.com/books/v1/volumes?q=enders+game} onResponse: success raw: Response

Android Retrofit - GoogleBooksAPI - JSON return issue

╄→尐↘猪︶ㄣ 提交于 2020-01-06 06:58:18
问题 I'm trying to make my android app to return book info using the google book API. Here's the url I'm pinging I'm using retrofit to grab the info and bring it back to me however it's coming back like this and I'm not sure how to resolve it: D/MainActivity2: onResponse: Success onResponse: success body: models.Book2@ae8dded onResponse: success response: Response{protocol=h2, code=200, message=, url=https://www.googleapis.com/books/v1/volumes?q=enders+game} onResponse: success raw: Response

Google Books API for Android - Access Not Configured

本秂侑毒 提交于 2020-01-06 03:21:12
问题 I am using google books API KEY for android to load book data via my android application. But I am getting error listed below. However, - The query works if I delete certificates from my API CONSOLE (e.g. make API KEY acceptable for all Applications). Though my {SHA1};{package name} information that I put is correct. - This works if I use API KEY for browser instead. Hence, what I can understand, I can't send KEY as a part of url in httpclient method. May be I need to send via header or

Google Books API - Book Details not Returned

别说谁变了你拦得住时间么 提交于 2020-01-05 04:14:14
问题 So I started using the Google Books API for an application that I am building and I am fairly happy with the results. But I have noticed a strange behaviour sometimes. Some ISBNs do not return any book details even though the book exists in the database. For example, if I give: https://www.googleapis.com/books/v1/volumes?q=isbn:0262527359, I get the following response: { "kind": "books#volumes", "totalItems": 0 } I digged around the internet regarding this problem and found this link: https:/

create string from JSON values in jQuery

强颜欢笑 提交于 2019-12-24 09:58:41
问题 I'd like to create a string of ISBNs from a JSON object to search multiple books in Google Books. I can get the ISBNs by parsing Google Books' JSON with this path: volumeInfo.industryIdentifiers[0].identifier (Here I'm doing that to get a simple book list: jsfiddle.net/LyNfX ) How do I string together each value in order to get this query structure, where each ISBN is preceded by "isbn:", and after the first one they are separated by "OR" https://www.google.com/search?btnG=Search+Books&tbm