ISBN basics
ISBN vs ASIN vs EAN vs LCCN vs OCLC: Book Identifiers Explained
A clear comparison of the identifiers you meet in book data: ISBN, EAN/GTIN, UPC, ASIN, ISSN, LCCN, OCLC numbers, DOI, ISNI and Wikidata, with advice on which to store.
By The Books API TeamPublished 7 min read
Book data is full of identifiers. A single library record can carry an ISBN, an LCCN, an OCLC number and a Dewey class; a retail listing adds an ASIN or a UPC; a community knowledge base adds its own keys. They look similar, they are often stored in the same column by mistake, and mixing them up causes duplicate records, failed lookups and wrong covers.
In this post we'll look at the identifiers you are most likely to encounter, who issues each one, what exactly it identifies, and which ones you should keep in your own database.
The big picture: what is being identified?
Before comparing formats, it helps to ask what level an identifier points to. Book data usually has at least three levels:
| Level | Question it answers | Typical identifiers |
|---|---|---|
| Work | Which story or text is this? | ISTC, Wikidata item, Open Library work key, catalogue work IDs |
| Edition / product | Which published version and format? | ISBN, EAN/GTIN, ASIN, UPC |
| Record | Which catalogue entry describes it? | LCCN, OCLC number, national bibliography numbers |
And separately, identifiers for people and organisations (ISNI, VIAF, ORCID) and for serials and articles (ISSN, DOI).
Most bugs come from comparing identifiers across levels, for example treating a library record number as if it were a product code.
ISBN
Issued by: national ISBN agencies, coordinated by the International ISBN Agency. Identifies: one edition of a book in one format. Format: 13 digits since 2007 (978 or 979 prefix), 10 characters for older numbers, with a check digit.
The ISBN is the backbone of the book trade. Distributors, retailers and libraries all use it to order and match products. It is the best key for "which edition is this?" but not for "which work is this?" because every format and translation gets its own number. See What Is an ISBN? for the structure and check-digit maths.
EAN-13 / GTIN-13 and UPC
Issued by: GS1, the global barcode standards organisation, through national member organisations. Identifies: a trade item (any product sold at retail). Format: EAN-13 (now called GTIN-13) has 13 digits; the North American UPC-A (GTIN-12) has 12.
For books, the relationship is simple: an ISBN-13 is an EAN-13. The prefixes 978 and 979 were reserved within the GS1 system for books (often called "Bookland"), so the number under the barcode on a book is its ISBN-13.
Things get messy with non-book products sold in bookshops (calendars, games, stationery), which carry ordinary GTINs, and with some North American mass-market paperbacks, which may have a UPC on the cover in addition to the ISBN. If you run a bookshop system, keep a generic gtin field for products and an isbn13 field for books, and do not assume every 13-digit barcode is a book.
ASIN
Issued by: Amazon. Identifies: a product listing in Amazon's catalogue. Format: 10 alphanumeric characters.
For printed books that have an ISBN-10, Amazon has historically used the ISBN-10 as the ASIN, which is why an ASIN sometimes looks exactly like an ISBN. Products without an ISBN-10, including Kindle editions and many newer listings, get an ASIN that typically starts with "B0".
The ASIN is useful for linking to Amazon or reconciling Amazon sales reports, but it is a proprietary, store-specific identifier. Don't use it as the primary key of a catalogue, and don't try to validate it with an ISBN checksum; an ASIN that starts with B0 will fail, and that is expected.
ISSN
Issued by: the ISSN International Centre and its national centres. Identifies: a serial publication as a whole, such as a journal, magazine, newspaper or book series. Format: 8 characters written as two groups of four (NNNN-NNNC), with a modulus-11 check character that can be X.
A book in a numbered series can have both an ISBN (for the volume) and an ISSN (for the series). Printed periodicals use the 977 GS1 prefix on their barcodes.
LCCN
Issued by: the Library of Congress.
Identifies: a bibliographic or authority record in the Library of Congress system.
Format: a year followed by a serial number. Since 2001 the normalised form is a 4-digit year plus a 6-digit serial (for example 2001012345); older numbers use a 2-digit year and may carry an alphabetic prefix.
LCCNs are often assigned before publication through the Library of Congress's Cataloging in Publication (CIP) and Preassigned Control Number (PCN) programmes, which is why you can find them printed on copyright pages of US books. An LCCN identifies a catalogue record, not a product, so different formats may share one LCCN or have separate ones depending on cataloguing practice.
OCLC number
Issued by: OCLC, for records in WorldCat.
Identifies: a bibliographic record in WorldCat, the union catalogue shared by thousands of libraries.
Format: an integer, often shown with a prefix such as ocm, ocn or on in MARC data, or as (OCoLC)123456789.
Because so many libraries share WorldCat records, the OCLC number is a very common way to match a book across library systems. Like the LCCN, it identifies a record, and occasionally duplicate records exist for the same edition.
DOI
Issued by: registration agencies of the DOI Foundation, such as Crossref and DataCite.
Identifies: a digital object, most often a journal article, a book chapter or a scholarly book.
Format: a prefix and suffix separated by a slash, for example 10.1000/xyz123.
Academic publishers frequently assign DOIs to books and individual chapters alongside ISBNs. A DOI is designed to be resolvable: https://doi.org/ followed by the DOI takes you to the current location of the object.
ISNI, VIAF and other name identifiers
Authors and publishers are entities too, and names are notoriously ambiguous. ISNI (International Standard Name Identifier, ISO 27729) gives a 16-character identifier to people and organisations involved in creative works. VIAF (Virtual International Authority File) clusters authority records from national libraries so that "García Márquez, Gabriel" in one catalogue links to the same person in another. Researchers also use ORCID iDs.
If you build author pages, storing one of these identifiers prevents merging two different people who share a name.
Wikidata and Open Library keys
Community-maintained knowledge bases add their own identifiers:
- Wikidata items (QIDs such as
Qfollowed by digits) can represent works, editions, authors and publishers, and they link out to many of the identifiers above. - Open Library keys distinguish works (
/works/OL…W), editions (/books/OL…M) and authors (/authors/OL…A).
These are valuable because they are free, public and connected. A Wikidata item for an author, for instance, often lists that person's ISNI, VIAF and Library of Congress authority IDs in one place.
Side-by-side comparison
| Identifier | Issuer | Level | Length / shape | Check digit |
|---|---|---|---|---|
| ISBN-13 | ISBN agencies | Edition | 13 digits, 978/979 | Mod 10 |
| ISBN-10 | ISBN agencies | Edition (legacy) | 10 characters | Mod 11, can be X |
| EAN-13 / GTIN-13 | GS1 | Trade item | 13 digits | Mod 10 |
| UPC-A | GS1 | Trade item | 12 digits | Mod 10 |
| ASIN | Amazon | Store listing | 10 alphanumeric | No public check |
| ISSN | ISSN centres | Serial | 8 characters | Mod 11, can be X |
| LCCN | Library of Congress | Catalogue record | Year + serial | No |
| OCLC number | OCLC | Catalogue record | Integer | No |
| DOI | DOI agencies | Digital object | prefix/suffix | No |
| ISNI | ISNI agency | Person or organisation | 16 characters | Mod 11-2, can be X |
| Wikidata QID | Wikimedia | Any entity | Q + digits | No |
Which identifiers should you store?
There is no single answer, but this pattern works for most catalogues, shops and reading apps:
- ISBN-13 as the edition key. Normalise ISBN-10 input to ISBN-13 on import. Keep the ISBN-10 only as a display value.
- A work identifier on top. Group editions into works so that reviews, ratings and "other editions" features don't fragment. Your own UUID is fine, as long as you also store external work IDs when you have them.
- External IDs in a separate table. A simple
identifiers(edition_id, scheme, value)table lets you keep ASINs, OCLC numbers, LCCNs and Wikidata QIDs without adding a column for every scheme. - Never compare across schemes. An ASIN that happens to equal an ISBN-10 is a coincidence of history, not a rule you can rely on for every product.
- Validate what has a checksum. ISBN, EAN, ISSN and ISNI can all be checked locally before you make a network request.
The Books API follows this model: editions are keyed by isbn13, each edition can point to a work_id, and additional identifiers are returned in an identifiers list where the sources provide them, so you don't have to guess which number belongs to which scheme.
Final thoughts
Identifiers are the glue of book data. ISBNs and EANs identify what is sold, LCCNs and OCLC numbers identify what is catalogued, ASINs identify what a single store lists, and work-level and name identifiers tie everything together. Keep each in its own field, normalise the ones with check digits, and you'll avoid most of the matching problems that plague book databases.
If you're curious about how these identifiers travel between publishers, retailers and libraries, continue with How Book Metadata Works: ONIX, MARC and Dublin Core.
Where an ISBN, a work id and the other identifiers sit in one record is set out in the API documentation. The plans are on the pricing page.
Tagsisbnasineanlccnoclcidentifierswikidata