Barcode API API Reference

Barcode APIs let you generate barcode images, and recognize values from images of barcodes.

Swagger OpenAPI Specification | .NET Framework Client | .NET Core Client | Java Client | Node.JS Client | Python Client | Drupal Client

API Endpoint
https://api.cloudmersive.com
Schemes: https
Version: v1

Authentication

Apikey

API Key Authentication

type
apiKey
name
Apikey
in
header

BarcodeLookup

Lookup EAN barcode value, return product data

POST /barcode/lookup/ean


Lookup an input EAN barcode and return key details about the product



Barcode value

Code Example:
Request Content-Types: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
Request Example
"string"
Response Content-Types: application/json, text/json, application/xml, text/xml
Response Example (200 OK)
{
  "Successful": "boolean",
  "Matches": [
    {
      "EAN": "string",
      "Title": "string"
    }
  ]
}

BarcodeScan

Scan and recognize an image of a barcode

POST /barcode/scan/image


Scan an image or photo of a barcode and return the result. Supported barcode types include AZTEC, CODABAR, CODE_39, CODE_93, CODE_128, DATA_MATRIX, EAN_8, EAN_13, ITF, MAXICODE, PDF_417, QR_CODE, RSS_14, RSS_EXPANDED, UPC_A, UPC_E, All_1D, UPC_EAN_EXTENSION, MSI, PLESSEY, IMB



imageFile: file
in formData

Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.

Code Example:

OK

Response Content-Types: application/json, text/json, application/xml, text/xml
Response Example (200 OK)
{
  "Successful": "boolean",
  "BarcodeType": "string",
  "RawText": "string"
}

GenerateBarcode

Generate a QR code barcode as PNG file

POST /barcode/generate/qrcode


Generate a QR code barcode as a PNG file, a type of 2D barcode which can encode free-form text information



QR code text to convert into the QR code barcode

Code Example:
Request Content-Types: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
Request Example
"string"
200 OK

OK

type
string (byte)
Response Content-Types: application/octet-stream
Response Example (200 OK)
"string (byte)"

Generate a UPC-A code barcode as PNG file

POST /barcode/generate/upc-a


Validate and generate a UPC-A barcode as a PNG file, a type of 1D barcode



UPC-A barcode value to generate from

Code Example:
Request Content-Types: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
Request Example
"string"
200 OK

OK

type
string (byte)
Response Content-Types: application/octet-stream
Response Example (200 OK)
"string (byte)"

Generate a UPC-E code barcode as PNG file

POST /barcode/generate/upc-e


Validates and generate a UPC-E barcode as a PNG file, a type of 1D barcode



UPC-E barcode value to generate from

Code Example:
Request Content-Types: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
Request Example
"string"
200 OK

OK

type
string (byte)
Response Content-Types: application/octet-stream
Response Example (200 OK)
"string (byte)"

Generate a EAN-13 code barcode as PNG file

POST /barcode/generate/ean-13


Validates and generate a EAN-13 barcode as a PNG file, a type of 1D barcode



Barcode value to generate from

Code Example:
Request Content-Types: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
Request Example
"string"
200 OK

OK

type
string (byte)
Response Content-Types: application/octet-stream
Response Example (200 OK)
"string (byte)"

Generate a EAN-8 code barcode as PNG file

POST /barcode/generate/ean-8


Validates and generate a EAN-8 barcode as a PNG file, a type of 1D barcode



Barcode value to generate from

Code Example:
Request Content-Types: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
Request Example
"string"
200 OK

OK

type
string (byte)
Response Content-Types: application/octet-stream
Response Example (200 OK)
"string (byte)"

Schema Definitions

BarcodeLookupResponse: object

Result of performing a barcode lookup

Successful: boolean

True if operation was successful, false otherwise

Matches: ProductMatch

Resulting product matches for the input barcode

ProductMatch
Example
{
  "Successful": "boolean",
  "Matches": [
    {
      "EAN": "string",
      "Title": "string"
    }
  ]
}

ProductMatch: object

Matching product for the input barcode

EAN: string

EAN code for the product

Title: string

Title of the product

Example
{
  "EAN": "string",
  "Title": "string"
}

BarcodeScanResult: object

Result of the barcode scan

Successful: boolean

True if the operation was successful, false otherwise

BarcodeType: string

The type of the barcode; possible values are AZTEC, CODABAR, CODE_39, CODE_93, CODE_128, DATA_MATRIX, EAN_8, EAN_13, ITF, MAXICODE, PDF_417, QR_CODE, RSS_14, RSS_EXPANDED, UPC_A, UPC_E, All_1D, UPC_EAN_EXTENSION, MSI, PLESSEY, IMB

RawText: string

The barcode text

Example
{
  "Successful": "boolean",
  "BarcodeType": "string",
  "RawText": "string"
}