{"openapi":"3.1.0","info":{"title":"Barcode & Standard-Code Validator API","version":"1.0.0","description":"Validate and work with product and publication codes. Check the check digit of any EAN-8, UPC-A, EAN-13, GTIN-14, ISBN-10, ISBN-13 or ISSN code — the type is detected automatically and you get back whether it is valid plus the expected check digit. Compute the missing check digit for a partial code, and validate or convert ISBNs between the 10- and 13-digit forms. Hyphens and spaces are ignored, so you can paste codes straight from a label or catalogue. Pure local computation — no key, no third-party service, instant. Live. 4 endpoints. Built for retail and inventory systems, e-commerce catalogues, publishing, library tooling and data validation. Distinct from barcode image generation, payment-card (Luhn) and IBAN checks.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/barcodecheck-api","description":"oanor gateway"}],"tags":[{"name":"Validate"},{"name":"ISBN"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/checkdigit":{"get":{"operationId":"get_v1_checkdigit","tags":["Validate"],"summary":"Compute a check digit","description":"","parameters":[{"name":"code","in":"query","required":true,"description":"Code body without the check digit","schema":{"type":"string"},"example":"400638133393"},{"name":"type","in":"query","required":false,"description":"ISBN-10|ISSN (else GTIN family)","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"body":"400638133393","type":"EAN-13","full_code":"4006381333931","check_digit":"1"},"meta":{"timestamp":"2026-06-02T16:51:59.199Z","request_id":"ac74ae90-8a59-4e4f-ba04-4685742c0a23"},"status":"ok","message":"Compute a check digit","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/validate":{"get":{"operationId":"get_v1_validate","tags":["Validate"],"summary":"Validate a code check digit","description":"","parameters":[{"name":"code","in":"query","required":true,"description":"EAN/UPC/GTIN/ISBN/ISSN code","schema":{"type":"string"},"example":"4006381333931"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"also":[],"type":"EAN-13","input":"4006381333931","valid":true,"check_digit":"1","expected_check_digit":"1"},"meta":{"timestamp":"2026-06-02T16:51:59.307Z","request_id":"220c4921-bc64-4141-b404-7e19a3274f17"},"status":"ok","message":"Validate a code's check digit","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/isbn":{"get":{"operationId":"get_v1_isbn","tags":["ISBN"],"summary":"Validate + convert ISBN","description":"","parameters":[{"name":"code","in":"query","required":true,"description":"ISBN-10 or ISBN-13","schema":{"type":"string"},"example":"0306406152"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"input":"0306406152","isbn10":"0306406152","isbn13":"9780306406157","isbn10_valid":true},"meta":{"timestamp":"2026-06-02T16:51:59.452Z","request_id":"2b8f9040-3f73-41f0-8f31-5a200e9e6bf2"},"status":"ok","message":"Validate + convert ISBN","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"auth":"none upstream; this gateway requires x-api-key","name":"Barcode & Standard-Code Validator API","note":"Validate the check digit of EAN-8, UPC-A, EAN-13, GTIN-14, ISBN-10, ISBN-13 and ISSN codes (/v1/validate?code=), compute the check digit for a partial code (/v1/checkdigit?code=&type=), and validate + convert ISBN-10 <-> ISBN-13 (/v1/isbn?code=). Hyphens and spaces are ignored. Instant, nothing stored. Distinct from barcode image generation, card-Luhn and IBAN checks.","source":"Local check-digit validation — no key, no upstream","endpoints":4},"meta":{"timestamp":"2026-06-02T16:51:59.534Z","request_id":"8a0f7e57-b4e8-447e-9f30-6ecb462a042b"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":1500,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":680,"monthly_call_quota":28000,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2640,"monthly_call_quota":182000,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":6240,"monthly_call_quota":930000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/barcodecheck-api"}