Goodreads Developers discussion

26 views
questions > Series for a book on a shelf?

Comments Showing 1-2 of 2 (2 new)    post a comment »
dateUp arrow    newest »

message 1: by Tony (new)

Tony (glossus) | 1 comments For each book on a shelf, I'm trying to get a list of the series it's in. But the book ID returned from /review/list.xml doesn't seem to be the "work_id" that the series calls needs.

e.g. I get id: 68096, but I need to get to /work/439457/series, not /work/68096/series

Do I need to convert from the book id to its 'work_id' somehow (and if so, how? The documentation doesn't explain much about work_id at all), or is there a way of getting the series information from a book id instead? (Or, better still, telling the /review/list call that it should provide this as extra information, so that I only need to make one call, rather than N+1)


message 2: by Ettore (new)

Ettore Pasquini Some background: a Work is a way to group all editions of a given real world book into one item. E.g. Pride and Prejudice has hundreds of editions, each one with a different book_id, but the same work_id.

An easy way to get the work_id and series info is by using the book#show api. If the book is part of a series, the book#show api response will include series info at the end. In any case, from book#show you can get the work_id, and from there get series info.


back to top