API returns links without images (member-uploaded covers only)

SnakBug Collectors

Bliv bruger af LibraryThing, hvis du vil skrive et indlæg

API returns links without images (member-uploaded covers only)

1owensco
dec 29, 2020, 2:22 pm

Greetings,

I am fetching my book collections using the API, which returns all of my books and metadata correctly, except for links to the book's cover.

If I select a member-uploaded cover for one of my books, the image link, while accessible, does not return the selected image.

Here's an example:
https://www.librarything.com/work/9191913/covers/194082916

For member-uploaded covers, the API returns an image link like this:
http://pics.cdn.librarything.com/picsizes/83/29/8329246e3efdaf85969386c676741414...

But if I select an Amazon cover for the same book, the API returns a valid image:
http://ecx.images-amazon.com/images/P/1595586431.01._SCLZZZZZZZ_.jpg

Obviously, the former image is hosted by LT and served via CDN, while the latter is an Amazon-provided image.

Could this be because the covers API is currently down, as I noticed here (scroll down to comments)?
https://blog.librarything.com/main/2008/08/a-million-free-covers-from-librarythi...

I apologize if this question is redundant; any insight would be greatly appreciated!

P.S. I can use Amazon covers for all my books; I don't mind. It's just that some of the member-uploaded covers are higher resolution, and I would prefer to use them! Also, I assume uploading my own covers would result in the same issue, plus it kind of defeats the point of an open-source solution!

2MarthaJeanne
dec 29, 2020, 2:27 pm

Be aware that Amazon covers can change without notification. It is usually better not to use Amazon covers.

3owensco
dec 29, 2020, 2:31 pm

>2 MarthaJeanne:

Thanks for the heads up! All the more reason to use member-uploaded ones :)

4gilroy
dec 29, 2020, 4:19 pm

Please also realize that most of the API have been shut off during the upgrades from LT 1.0 to LT 2.0

5kristilabrie
jan 4, 2021, 10:05 am

>1 owensco: As >4 gilroy: states, our APIs have been disabled so I wouldn't expect anything until we re-enable them. Closing, but please follow this thread for updates: https://www.librarything.com/topic/325722. Thanks for your patience!

6owensco
Redigeret: jan 4, 2021, 3:53 pm

>5 kristilabrie:

Thank you for the replies--I will do so!