ballerinax/cloudmersive.barcode Ballerina library

2.0.0

Overview

The Cloudmersive Barcode connector provides programmatic access to the Cloudmersive Barcode API, which lets you generate barcode images and recognize values from images of barcodes. This connector supports version 1 of the API and lets Ballerina applications scan barcode images, look up product data for EAN codes, and generate QR, UPC, EAN and Code 128 barcodes with a few remote method calls.

Key features

  • Recognize the value and type of a barcode in an image, including advanced AI recognition of multiple barcodes and QR codes
  • Look up product details for an EAN barcode value
  • Generate QR, UPC-A, UPC-E, EAN-8, EAN-13 and Code 128 barcodes as PNG images
  • Submit QR code recognition as a batch job and poll its status
  • Authenticate with a single Cloudmersive API key

Setup guide

To use this connector you need a Cloudmersive API key.

  1. Sign up or log in at the Cloudmersive portal.
  2. Open the API Keys page of your account.
  3. Create a new API key, or copy an existing one.
  4. Supply the key as the apikey field when you initialize the client. Keep it out of source control, for example by reading it from Config.toml.

Quickstart

  1. Add the import:

    Copy
    import ballerinax/cloudmersive.barcode;
  2. Create a Config.toml with your API key:

    Copy
    apiKey = "<YOUR_API_KEY>"
  3. Declare the configurable for the API key:

    Copy
    configurable string apiKey = ?;
  4. Create the client and invoke an operation:

    Copy
    public function main() returns error? {
        barcode:Client barcodeClient = check new ({apikey: apiKey});
        barcode:BarcodeLookupResponse _ = check barcodeClient->lookupEanBarcode("5901234123457");
    }

Examples

The Cloudmersive Barcode connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:

Import

import ballerinax/cloudmersive.barcode;Copy

Other versions

See more...

Metadata

Released date: about 15 hours ago

Version: 2.0.0

License: Apache-2.0


Security

Direct vulnerabilities: No known direct vulnerabilities

Indirect vulnerabilities: 

Checked on 2026-11-20 via OSV.dev


Compatibility

Platform: any

Ballerina version: 2201.12.0

GraalVM compatible: Yes


Pull count

Total: 50

Current verison: 1


Weekly downloads


Source repository


Keywords

Vendor/Cloudmersive

Area/Developer Tools

Type/Connector


Contributors