I came across an interesting API from OpenLibrary (part of the Internet Archive) that can return the cover image for any book given an ISBN code or other identifier:
https://openlibrary.org/dev/docs/api/covers
Here’s an example of a simple macro for displaying book covers:
\define openlibrary-cover-url(value,key:"isbn",size:"M") https://covers.openlibrary.org/b/$key$/$value$-$size$.jpg
<img src=<<openlibrary-cover-url value:"9780907563150" size:"L">>/>
- The key can be ISBN, OCLC, LCCN, OLID or ID (case-insensitive)
- The size can be one of S, M and L for small, medium and large