-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch all the book with subject Fiction Horror #8170
Comments
Hi @ladaniavadh ! That might take a little long to get through everything. If I'm understanding you correctly, you want:
And you want all fiction horror editions from open library, correct? Your approach will work, but will take a very long time :P I'd recommend something like this:
That should be a much faster/friendlier way to hit our APIs! Does that answer your question? |
@cdrini 2 - edition_key has a large number of arrays, is there any easy way to fetch all the details that you mentioned in your 2nd API? |
@cdrini @mekarpeles |
I'm not fully sure I understand your questions. Could you give me some more details about what you want to use this data for?
|
@cdrini |
|
@cdrini is there any update on the issue after 2weeks? |
Howdy! I still don't understand what you're looking for with 1. For 2, There's no convenient way to fetch the latest English edition for each of those works I'm afraid. There's no way to sort the edition results. But let me see if I can add an option for that real quick. Can you give me more information about what you're trying to do overall with this data? That might help me provide better guidance. |
This will largely give you what you want: https://testing.openlibrary.org/search?q=subject_key%3Afiction_horror+language%3Aeng+isbn%3A*+publish_year%3A*+-publisher%3A%22Independently+published%22&mode=everything&editions.sort=new Caveats:
What you're asking for is actually complicated, so understanding what you want to do overall would really help a ton! |
Ah those queries look a little off actually it seems to be not always sorting them correctly. I'll take a look when I get a chance. |
Ok those links should now work as expected |
@cdrini We're working primarily in the US market, so we would like to accomplish the following:
Knowing that, here's my question: If so, then we can also filter editions in English and use the ISBN associated with that. |
Yes, the last links I sent you meets all those requirements 👍 Apologies for the delay on this one! Note:
I believe all the requirements have been met here, so closing this; but feel free to re-open or open a new issue if you need help with anything else! |
Question
I need data of the books which have the Subject 'Fiction Horror' (around 11.5K books). Which APIs are best to fetch those details?
Additional context
I need below mentioned fields:
description
covers image
book title
authors
number of Pages
publishDate
ISBN number
Unique key that will be common across all the books edition
Issue resolution criteria
I planned to use below APIs:
https://openlibrary.org/subjects/horror.json > Use this API 12 times with offset and limit to collect all books data
from the above response, for each object
https://openlibrary.org/{key}.json > pass the value of the key from the object to fetch the book's description
https://openlibrary.org/works/{cover_edition_key}.json > pass the value of cover_edition_key from the object to fetch all other details
now my concern is above mentioned workflow is good to fetch the book's details or does any better solution exist.
The text was updated successfully, but these errors were encountered: