{"id":27941052,"url":"https://github.com/eansearch/csharp-barcode-lookup","last_synced_at":"2025-05-07T10:36:21.895Z","repository":{"id":288566752,"uuid":"968508958","full_name":"eansearch/csharp-barcode-lookup","owner":"eansearch","description":"A C# class for GTIN, UPC, EAN and ISBN name lookup and validation","archived":false,"fork":false,"pushed_at":"2025-04-18T09:24:34.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-18T22:23:38.809Z","etag":null,"topics":["barcode","ean","gtin","isbn","isbn13","lookup","upc"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eansearch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-18T07:54:07.000Z","updated_at":"2025-04-18T09:24:38.000Z","dependencies_parsed_at":"2025-04-20T10:48:07.031Z","dependency_job_id":null,"html_url":"https://github.com/eansearch/csharp-barcode-lookup","commit_stats":null,"previous_names":["eansearch/csharp-barcode-lookup"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eansearch%2Fcsharp-barcode-lookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eansearch%2Fcsharp-barcode-lookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eansearch%2Fcsharp-barcode-lookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eansearch%2Fcsharp-barcode-lookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eansearch","download_url":"https://codeload.github.com/eansearch/csharp-barcode-lookup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252860583,"owners_count":21815537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barcode","ean","gtin","isbn","isbn13","lookup","upc"],"created_at":"2025-05-07T10:36:18.425Z","updated_at":"2025-05-07T10:36:21.874Z","avatar_url":"https://github.com/eansearch.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BarcodeLookup - A C# Library for GTIN, UPC, EAN and ISBN Lookup and Validation\n\nBarcodeLookup is a C# library for performing EAN and ISBN barcode lookups using the [EAN-Search.org](https://www.ean-search.org/) API. This library allows developers to seamlessly integrate product and book barcode lookups, checksum verification, and related operations into their applications.\n\n## Features\n\n- **EAN barcode lookup**: Retrieve product names or detailed product information using EAN barcodes.\n- **ISBN lookup**: Fetch book titles using ISBN-10 or ISBN-13 barcodes.\n- **Checksum verification**: Validate the checksum of EAN barcodes.\n- **Product search**: Search for products by name or find similar product names.\n- **Category search**: Look up products within specific categories.\n- **Barcode prefix search**: Search for products based on barcode prefixes.\n- **Issuing country lookup**: Identify the issuing country of an EAN barcode.\n- **Barcode image retrieval**: Get a barcode image for a given EAN.\n\n## Getting Started\n\n### Prerequisites\n\n- .NET 6.0 or later\n- An API token from [EAN-Search.org](https://www.ean-search.org/ean-database-api.html)\n\n### Installation\n\nThe library is available as a NuGet package. Install it using the .NET CLI:\n\n```bash\ndotnet add package BarcodeLookup\n```\n\n## Usage\n## Initialization\n\nTo use the library, create an instance of the BarcodeLookup class and provide your API token.\n\n```csharp\nusing BarcodeLookup;\n\nvar lookup = new BarcodeLookup(\"your-api-token\");\n```\n\n### GTIN / EAN Lookup\n\nRetrieve the product name for a given EAN barcode:\n\n```csharp\nstring productName = lookup.GTIN(\"1234567890123\");\nConsole.WriteLine(productName ?? \"Product not found\");\n```\n\n### ISBN Lookup\n\nFetch the book title for an ISBN:\n\n```csharp\nstring bookTitle = lookup.ISBN(\"9781234567897\");\nConsole.WriteLine(bookTitle ?? \"Book not found\");\n```\n\n### Verify Checksum\n\nCheck if an EAN barcode is valid:\n\n```csharp\nbool? isValid = lookup.VerifyChecksum(\"1234567890123\");\nConsole.WriteLine(isValid.HasValue \u0026\u0026 isValid.Value ? \"Valid\" : \"Invalid\");\n```\n\n### Product Search\n\nSearch for products by name:\n\n```csharp\nvar products = lookup.ProductSearch(\"Laptop\", 0, 1);\n\nforeach (var product in products)\n{\n    Console.WriteLine(product[\"name\"]);\n}\n```\n\n### Barcode Image Creation\n\nGet the image of a barcode:\n\n```csharp\nstring barcodeImage = lookup.BarcodeImage(\"1234567890123\");\nConsole.WriteLine(barcodeImage ?? \"Image not available\");\n```\n\nContributions are welcome! Feel free to submit a pull request or open an issue on our GitHub repository.\nLicense\n\nThis library is licensed under the MIT License. See the LICENSE file for details.\nAcknowledgments\n\nThis library uses the EAN-Search.org API. Please visit [EAN-Search.org](https://www.ean-search.org/) for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feansearch%2Fcsharp-barcode-lookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feansearch%2Fcsharp-barcode-lookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feansearch%2Fcsharp-barcode-lookup/lists"}