BarcodeLookup 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package BarcodeLookup --version 1.0.0
                    
NuGet\Install-Package BarcodeLookup -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BarcodeLookup" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BarcodeLookup" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BarcodeLookup" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BarcodeLookup --version 1.0.0
                    
#r "nuget: BarcodeLookup, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BarcodeLookup@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BarcodeLookup&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BarcodeLookup&version=1.0.0
                    
Install as a Cake Tool

BarcodeLookup - A C# Library for GTIN, UPC, EAN and ISBN Lookup and Validation

BarcodeLookup is a C# library for performing EAN and ISBN barcode lookups using the EAN-Search.org API. This library allows developers to seamlessly integrate product and book barcode lookups, checksum verification, and related operations into their applications.

Features

  • EAN barcode lookup: Retrieve product names or detailed product information using EAN barcodes.
  • ISBN lookup: Fetch book titles using ISBN-10 or ISBN-13 barcodes.
  • Checksum verification: Validate the checksum of EAN barcodes.
  • Product search: Search for products by name or find similar product names.
  • Category search: Look up products within specific categories.
  • Barcode prefix search: Search for products based on barcode prefixes.
  • Issuing country lookup: Identify the issuing country of an EAN barcode.
  • Barcode image retrieval: Get a barcode image for a given EAN.

Getting Started

Prerequisites

Installation

The library is available as a NuGet package. Install it using the .NET CLI:

dotnet add package BarcodeLookup

Usage

Initialization

To use the library, create an instance of the BarcodeLookup class and provide your API token.

using BarcodeLookup;

var lookup = new BarcodeLookup("your-api-token");

GTIN / EAN Lookup

Retrieve the product name for a given EAN barcode:

string productName = lookup.GTIN("1234567890123");
Console.WriteLine(productName ?? "Product not found");

ISBN Lookup

Fetch the book title for an ISBN:

string bookTitle = lookup.ISBN("9781234567897");
Console.WriteLine(bookTitle ?? "Book not found");

Verify Checksum

Check if an EAN barcode is valid:

bool? isValid = lookup.VerifyChecksum("1234567890123");
Console.WriteLine(isValid.HasValue && isValid.Value ? "Valid" : "Invalid");

Search for products by name:

var products = lookup.ProductSearch("Laptop", 0, 1);

foreach (var product in products)
{
    Console.WriteLine(product["name"]);
}

Barcode Image Creation

Get the image of a barcode:

string barcodeImage = lookup.BarcodeImage("1234567890123");
Console.WriteLine(barcodeImage ?? "Image not available");

Contributions are welcome! Feel free to submit a pull request or open an issue on our GitHub repository. License

This library is licensed under the MIT License. See the LICENSE file for details. Acknowledgments

This library uses the EAN-Search.org API. Please visit EAN-Search.org for more information.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 177 1/8/2026
2.0.0 261 12/22/2025
1.0.0 226 4/18/2025