I
I
Ilya Magdenko2017-04-12 22:02:20
Google
Ilya Magdenko, 2017-04-12 22:02:20

Where to find and select casting parameters in Google books api?

I am getting data in JSON format from Google Books. But the problem is that I can't find how to specify all the parameters that I need.

Now the request looks like this:

var randomz = Math.floor((Math.random() * 100) + 1);
$.ajax({
url: "https://www.googleapis.com/books/v1/volumes?q=subject:" + search + "&startIndex=" + randomz,
                    dataType: "json",


Those. he takes a book, starts with a random index and genre, which is in the search variable. I need the language of the books to be only English and so on. Either I'm a fool or I can't find how to enter these query parameters correctly. Just adding doesn't seem to work. The request now looks like this:
+ "&language=en",
https://www.googleapis.com/books/v1/volumes?q=subject:drama&startIndex=5

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question