Decode GS1 DataMatrix, GS1-128, FNC1 barcodes, and GS1 Digital Link URIs into structured JSON in sub-5ms.
Official high-performance .NET client library for GS1 Barcode & Digital Link Decoder, built on the Stanza Micro-API Network. Fully compatible with .NET Standard 2.0, .NET 6.0, .NET 7.0, and .NET 8.0+.
- 🌐 Online Interactive Sandbox: Test your inputs live
- 📚 API Reference & Schemas: View documentation on Stanza
- ⚡ Platform Overview: Explore the Stanza Developer Network
dotnet add package StanzaApi.Gs1Decoderusing System;
using System.Threading.Tasks;
using StanzaApi.Gs1Decoder;
class Program
{
static async Task Main()
{
// Initialize client (reads STANZA_API_KEY from environment if not passed)
var client = new Gs1DecoderClient();
// Perform deterministic verification
string responseJson = await client.ValidateAsync("(01)00123456789012(21)12345");
Console.WriteLine(responseJson);
}
}{
"success": true,
"data": {
"gtin": "00123456789012",
"serial_number": "12345",
"ai_elements": [
{
"ai": "01",
"label": "GTIN",
"value": "00123456789012"
},
{
"ai": "21",
"label": "SERIAL",
"value": "12345"
}
]
}
}Pass options directly to the Gs1DecoderClient constructor:
var client = new Gs1DecoderClient(
apiKey: "your_api_key_here",
baseUrl: "https://api.stanzaapi.com/gs1-decoder"
);- GS1 Barcode & Digital Link Decoder Interactive Sandbox
- Stanza Developer Directory
- Source Code & Issue Tracker
MIT © Stanza — Powered by Stanza.