It looks like you're offline.
Open Library logo
additional options menu
Last edited by raybb
March 23, 2024 | History

Open Library Covers API

Our Covers API provides a programmatic method to access the book covers and author photos available in the Open Library Covers Repository.

Guidelines for Cover Use

  1. Please, do not crawl our cover API. If you do, we may decide to block your crawl. Our covers are available for download in bulk on (example), but, it's a bit of a jungle in there, and is updated regularly.
  2. If you want to display covers on public-facing pages, please use a src URL that points to For example, if you'd like to call a cover using an ISBN, you can do it like this:
    <img src="" />
  3. A courtesy link back to Open Library is appreciated, whether it be on each individual book's page (where you can link back to the book's page on Open Library, for example, using the same ISBN, or on your About page or in your footer.


How To

Book covers can be accessed using Cover ID (internal cover ID), OLID (Open Library ID), ISBN, OCLC, LCCN and other identifiers like librarything and goodreads.

The covers are available in 3 sizes:

  1. S: Small, suitable for use as a thumbnail on a lists section of a work on Open Library,
  2. M: Medium, suitable for display on a details page on Open Library and,
  3. L: Large

The URL pattern to access book covers is:$key/$value-$size.jpg


By default it returns a blank image if the cover cannot be found. If you append ?default=false to the end of the URL, then it returns a 404 instead.

The following example returns small sized cover image for book with ISBN 0385472579.

The same cover can be accessed in multiple ways using different keys:

Author Photos

Author photos can be accessed using OLID and ID.

The URL Pattern for accessing author photos is:$key/$value-$size.jpg

For example the following is the photograph of Donald E. Knuth from the Open Library.


Cover Size & API Access

You can add .json to end end of cover urls to return API information about the cover, e.g.

One can fetch the image off-screen and use it's width/height:

async function fetchImage(url) {
    const img = new Image();
    return new Promise((res, rej) => {
        img.onload = () => res(img);
        img.onerror = e => rej(e);
        img.src = url;
const img = await fetchImage('');
const w = img.width;
const h = img.height;

This one way one won't need to make two separate requests per image! The browser won't make a second request for the image if you set the src of your visible <img> element after fetching it in this way.

Rate Limiting

The cover access by ids other than CoverID and OLID are rate-limited. Currently only 100 requests/IP are allowed for every 5 minutes.

If any IP tries to access more that the allowed limit, the service will return "403 Forbidden" status.


Bulk Access

The covers API is intended for displaying covers on public facing websites and not for bulk download.

If you are interested to download the covers in bulk, please download them from:

Each of these items have 100 tar files, each containing 10K images in each. The names of these files are based on the cover ids. For example, s_covers_0005_32.tar file contains images for CoverIDs from 5320000 to 5329999.

The mapping from various IDs to CoverIDs is available at:

It has 4 columns ID-Name, ID-Value, OL-KEY and CoverID.


March 23, 2024 Edited by raybb update where to find small covers
January 27, 2022 Edited by Drini Fix formatting
January 27, 2022 Edited by Mek adding API example
October 20, 2021 Edited by Drini http -> https
October 27, 2008 Created by Anand Chitipothu covers api docs