API Almanac
API reference › Validate

Check an identifier's check digit and format: ISBN, EAN/UPC/GTIN, ISSN, ISIN, CUSIP, SEDOL, VIN, IMEI, ABA routing, NPI, VAT number, Luhn

GET/v1/validate/id

GET/v1/validate/id

Check an identifier's check digit and format: ISBN, EAN/UPC/GTIN, ISSN, ISIN, CUSIP, SEDOL, VIN, IMEI, ABA routing, NPI, VAT number, Luhn

PARAMETERS
typequery · enumREQUIRED
Which identifier
one of: isbn, ean, upc, gtin, issn, isin, cusip, sedol, vin, imei, aba, npi
valuequery · stringREQUIRED
The identifier, separators allowed
e.g. 978-0-306-40615-7
In the full reference
REQUEST
curl "https://api.apialmanac.com/v1/validate/id?type=isbn&value=978-0-306-40615-7" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "type": "isbn",
  "input": "978-0-306-40615-7",
  "normalized": "9780306406157",
  "valid": true,
  "reason": null,
  "format": "ISBN-13",
  "isbn10": "0306406152",
  "isbn13": "9780306406157",
  "prefix": "978"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.