Goodreads Developers discussion

questions > author.books method - pages/# of results

Comments Showing 1-3 of 3 (3 new)    post a comment »
dateDown arrow    newest »

message 1: by Noel (new)

Noel | 2 comments Hi everyone,

I'm not very familiar with APIs or developing, so although my question is basic, I'd appreciate any assistance as I'm having trouble finding a solution for it myself. I'm trying to return a list of all an author's works and am having trouble with the limit of 30 results per request. I'm trying to make this list in Google Sheets with the following:

=importXML("", "//GoodreadsResponse/author/books/*/title")

and get the first 30 results. I know I can add "&page=2" to the end to get the next page, but is there a way to either:

1) return a higher number than 30 results, or
2) reference the total number of books in the XPath query to get the number of pages needed from there?

Any help would be appreciated.

Thank you.

message 2: by Oleg (new)

Oleg Linkin (maledictus) | 60 comments Try to add: per_page=50 key to url - in some requests it is working

message 3: by Noel (new)

Noel | 2 comments Oleg wrote: "Try to add: per_page=50 key to url - in some requests it is working"

Thanks Oleg!

back to top