Book Batch API

Book Batch API

Book Batch API Details

The Book Batch API looks up many books in one request, by ISBN-10 or ISBN-13. It suits barcode scanning and cataloging whole collections: one request instead of one per book.

Books come back in the order you asked for them, each once, with the same fields as the Book Data API. An ISBN that is not in the catalog is left out of the list, so match the results to your ISBNs by isbn13 and isbn10. If any ISBN in the request is not a valid ISBN, the whole request is refused with 400.

Each ISBN in a request counts as one call toward your daily limit, whether or not the book is found, so a request for 100 ISBNs uses 100 calls. The calls are counted when the request arrives: if your token has fewer calls left than the request has ISBNs, the request is refused with 400 and nothing is counted. See Pricing.

PlanISBNs per request
Standard25
Pro100
Business500

To try out the Book Batch API, see the API Documentation

To learn more about the API and how it works, see the API Information

API Documentation API Information

Endpoint

  • POST /api/batch/book — a JSON body with the ISBNs: {"isbns": ["9780765302304", "0765316889"]}.

Other editions are left out unless you ask for them

A batch sends otherEditions as null for every book by default, because a popular book can list thousands of editions and make a response very large. otherEditionsCount is always sent, so you can see which books have other editions.

If you need the editions, ask for them with "include": ["otherEditions"]: {"isbns": ["9780765302304"], "include": ["otherEditions"]}. Including them does not change how many calls a request uses, but responses can grow to tens of megabytes, so ask only when you use them. otherEditions needs a Pro or Business plan: on Standard it stays null either way. You can also look up one book's editions with the Other Editions API.

Book Batch API Request CURL Example

Request
curl -X 'POST' \
  'https://www.isbnlab.com/api/batch/book' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {API_TOKEN}' \
  -d '{"isbns": ["9780765302304", "0765316889"]}'

With each book's other editions:

Request
curl -X 'POST' \
  'https://www.isbnlab.com/api/batch/book' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {API_TOKEN}' \
  -d '{"isbns": ["9780765302304", "0765316889"], "include": ["otherEditions"]}'

Book Batch API Response Example

Each entry is a full Book Data API record, shortened here to a few fields.

Response · 200
[
    {
        "id": 15596406,
        "isbn10": "0765302306",
        "isbn13": "9780765302304",
        "title": "The Gathering Storm",
        "otherEditions": null,
        "otherEditionsCount": 2
    },
    {
        "id": 15934911,
        "isbn10": "0765316889",
        "isbn13": "9780765316882",
        "title": "Mistborn",
        "otherEditions": null,
        "otherEditionsCount": 5
    }
]

Book Batch API Errors

StatusWhen
400An ISBN is not valid, the body has no list of ISBNs, include names anything but otherEditions, the list is longer than your plan allows, or your token has fewer calls left today than the list has ISBNs.
403The token's plan does not include the Book Batch API.
429The per-second limit was reached, or the token has no calls left today.