Home
Softono
openfoodfacts-csharp

openfoodfacts-csharp

Open source Apache-2.0 C#
33
Stars
7
Forks
2
Issues
7
Watchers
1 year
Last Commit

About openfoodfacts-csharp

openfoodfacts-csharp is a C package that provides access to the Open Food Facts API, a free database of over 2.9 million food products contributed by users worldwide. The library parses JSON responses from the API and transforms them into easy-to-use C objects, allowing developers to query detailed product information with minimal effort. The package supports core operations including searching and retrieving products by various parameters such as barcode, name, brand, and category. It also enables editing existing products or uploading new ones through a simple object structure, making data contributions straightforward. Most read operations do not require authentication, though setting a custom User-Agent is recommended to avoid being blocked. The package is distributed under the OdBL open data license, which encourages attribution and reciprocal contributions. Ideal use cases include building nutrition tracking apps, barcode scanning tools, dietary planning software, allergen detection systems, and any app

Platforms

Web Self-hosted Windows

Languages

C#

Open Food Facts - C

C# package for the Open Food Facts API. Free and Easy access to more than 2.9 million food products information from all around the world. Open Food Facts is powered by contributors from around the world and is constantly growing thanks to them.

General principles, how does it work ?

We use the ability of the Open Food Facts API to return products results in JSON, we then generate easily understandable objects structures to make it simple for you to use.

This plugin also allows you to edit a product or upload a new one to Open Food Facts. Using the same simple product structure you can create a product object or edit an existing one and send it to the API using a single function.

Usage

Installation

How to authenticate

For most queries no authentication is required! :) Though we recommend to set a User-Agent to not to be blocked by mistake.

Features

  • Please list current features here

Open Data License

The database in under the OdBL. This means attributing the source and also contributing back any additions (photos, data), which this package makes easy to do. You can check the terms of use here : Terms of use.

Useful recourses

Contribute to the package

If found a bug or missing features in this package, please open an issue for it.

  • Issue Tracker: github.com/openfoodfacts/openfoodfacts-csharp/issues
  • Source Code: github.com/openfoodfacts/openfoodfacts-csharp

Support

If you are having issues, that go beyond the scope of this package, please write to us on Slack or send us an email at [email protected]

Testing

Execute the following command from the root of the repository to run the tests:

Applications using this SDK

Authors

Thanks to for the initial creation of this package.

Contributors

Drag Racing