# ISBN Lookup API

> Validate ISBN-10 / ISBN-13, convert between them, hyphenate with the official ranges, find the registration group and get book details from Open Library.

- Endpoint: `GET | POST https://apibox.io.vn/v1/isbn-lookup`
- Category: Data & JSON
- HTML docs: https://apibox.io.vn/docs/isbn-lookup/ (Vietnamese: https://apibox.io.vn/vi/docs/isbn-lookup/)
- Online tool: https://apibox.io.vn/tools/isbn-lookup/
- Authentication: `Authorization: Bearer <API key>` or `X-API-Key: <API key>` (free key: https://apibox.io.vn/dashboard/#signup)

`isbn` (with or without hyphens, `ISBN-13:` prefix, X check digit) is checked (check digit, 978 / 979 prefix), converted (ISBN-10 ↔ ISBN-13; 979 ISBNs have no ISBN-10) and hyphenated using the ranges published by the International ISBN Agency: prefix, registration group with its agency (language area or country, e.g. 604 = Vietnam), registrant (publisher) element, publication element and check digit. `ranges_valid: false` means the number has a correct check digit but falls in a range that is not assigned yet. The range file is refreshed weekly.

With `metadata` (default on) the book is looked up in Open Library: title, subtitle, authors, publishers, publication date and place, pages, subjects, cover image URLs and the Open Library link (cached 7 days). Coverage of Vietnamese books is limited; `metadata.found: false` when unknown.

`isbns` checks up to 200 numbers at once (no metadata).

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `isbn` | query|path | string | yes |  | ISBN-10 or ISBN-13 (also /v1/isbn-lookup/{isbn}). |
| `metadata` | query | boolean | no | `true` | Look the book up in Open Library. |
| `isbns` | body|query | string | no |  | Batch: up to 200 ISBNs (array or comma / newline separated). |

## Example request

```bash
curl "https://apibox.io.vn/v1/isbn-lookup?isbn=0140328726" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Example response

```json
{
  "input": "0140328726",
  "valid": true,
  "format": "isbn10",
  "isbn13": "9780140328721",
  "isbn10": "0140328726",
  "prefix": "978",
  "group": {
    "code": "0",
    "agency": "English language"
  },
  "registrant": "14",
  "publication": "032872",
  "check_digit": "1",
  "hyphenated": {
    "isbn13": "978-0-14-032872-1",
    "isbn10": "0-14-032872-6"
  },
  "ranges_valid": true,
  "metadata": {
    "found": true,
    "title": "Fantastic Mr. Fox",
    "authors": [
      "Roald Dahl"
    ],
    "publishers": [
      "Puffin"
    ],
    "publish_date": "October 1, 1988",
    "publish_places": [],
    "pages": 96,
    "subjects": [
      "Animals",
      "Hunger",
      "Juvenile fiction",
      "Foxes",
      "…"
    ],
    "cover": {
      "small": "https://covers.openlibrary.org/b/id/15152634-S.jpg",
      "medium": "https://covers.openlibrary.org/b/id/15152634-M.jpg",
      "large": "https://covers.openlibrary.org/b/id/15152634-L.jpg"
    },
    "url": "http://openlibrary.org/books/OL7353617M/Fantastic_Mr._Fox",
    "identifiers": {
      "openlibrary": [
        "OL7353617M"
      ]
    },
    "source": "Open Library (openlibrary.org)"
  },
  "ranges": {
    "serial": "893e5b3e-dfd8-4518-9cfa-917bdf4c3623",
    "date": "Wed, 11 Nov 2026 10:31:07 UTC"
  }
}
```

## Use cases

- Validate ISBNs typed by staff in a library or bookshop system
- Print correctly hyphenated ISBN-13 on covers and catalogues
- Fill title, author and cover for a book from its barcode
- Convert old ISBN-10 lists to ISBN-13

## FAQ

### Where do book details come from?

From the Open Library API (Internet Archive), shown with attribution. Not every book is there, especially Vietnamese titles.

### What is the registration group?

The part after 978 / 979 that identifies a language area or country, e.g. 0 / 1 English, 3 German, 604 Vietnam.

### Does it check the barcode?

Yes: an ISBN-13 is also an EAN-13 barcode number; the check digit is the same.
