Replies: 3 comments 3 replies
-
Did you mean to that it only accepts edition IDs? That would make more sense with the rest of your example and also fits with the fact that the other IDs like ISBN and OCLC are edition IDs (and works don't have covers). When I look at that work (https://openlibrary.org/works/OL82563W), OpenLibrary perversely picks a Chinese edition as the "best," despite my language being set to French, but the cover URLs for both the Chinese and French editions resolve correctly: https://openlibrary.org/books/OL39471692M |
Beta Was this translation helpful? Give feedback.
-
|
Actually, https://openlibrary.org/works/OL82563W.json has more than a dozen cover IDs listed, so, arguably, this could be a bug, but, in my opinion, you're better off choosing your own best / most representative edition and using it's cover. |
Beta Was this translation helpful? Give feedback.
-
|
If you have an open library work ID and want to get the "best" associated edition/cover, the search.json API is your best bet. Eg: Note you have to specify Here, best edition will try to choose:
Not sure your use case, but if you do end up using this, please don't fetch one work per request! That's a perf strain on our end. You can fetch them in batches, which is faster for both you and us. E.g. Does this meet your use case? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I can't decide if this is a documentation issue or a bug.
The Open Library Covers API is documented to accept "OLID" which in my understanding can be both a work and an edition ID but in practice it seems to only accept
workedition IDs.E.g. this returns a 404 https://covers.openlibrary.org/b/olid/OL82563W-S.jpg?default=false despite https://openlibrary.org/works/OL82563W has a cover.
Am I missing something? Or should the documentation page be updated to use "OpenLibrary edition ID" instead of "OLID"?
Beta Was this translation helpful? Give feedback.
All reactions