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 identifierone of: isbn, ean, upc, gtin, issn, isin, cusip, sedol, vin, imei, aba, npi
- valuequery · stringREQUIRED
- The identifier, separators allowede.g. 978-0-306-40615-7
REQUEST
curl "https://api.apialmanac.com/v1/validate/id?type=isbn&value=978-0-306-40615-7" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.apialmanac.com/v1/validate/id?type=isbn&value=978-0-306-40615-7", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.apialmanac.com/v1/validate/id?type=isbn&value=978-0-306-40615-7", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
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"
}