Check the check digit of an EAN-13, EAN-8, UPC-A, ISBN-10/13 or ISSN

Checks whether a barcode number (EAN, UPC, ISBN…) has a valid check digit, and detects its type.

Request

GEThttps://barcode-generator.p.apihiver.com/v1/validate?value=9780141036144
*
String. The barcode or ISBN number.
String. ean13, ean8, upca, isbn, issn (default ean13).
Language
Client
1curl --request GET \
2  --url 'https://barcode-generator.p.apihiver.com/v1/validate?value=9780141036144&type=%7Btype%7D' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Check the check digit of an EAN-13, EAN-8, UPC-A, ISBN-10/13 or ISSN: Barcode Generator & Reader API reference

Checks whether a barcode number (EAN, UPC, ISBN…) has a valid check digit, and detects its type. This endpoint is part of the Barcode Generator & Reader API: Generate EAN-13, UPC, Code 128, ISBN and other barcodes as PNG or SVG, read barcodes from images, and validate check digits.

Example response (200, application/json)

Success.

1{
2  "type": "ean13",
3  "valid": true,
4  "value": "9780141036144"
5}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "value: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.