← Back to DAGDA | Support | Source: https://github.com/openfoodfacts/openfoodfacts-go
Skip to content

About

Go Wrapper for Open Food Facts

Topics

Resources

Security policy

Stars

93 stars

Watchers

9 watching

Forks

Repository files navigation

openfoodfacts-go

Build Status

About

This library is for accessing Open Food Facts data for food product, ingredients and nutritional data from within your go application. You can also get the Nutri-Score and the Green-Score

Use of the Open Food Facts database is subject to the Open Food Facts Terms of Use, please read them before using this library in your application.

This library is copyright © 2019-2025 OpenFoodFacts. All rights reserved. Use of this library is governed by the MIT license which can be found in the LICENSE.txt file.

Documentation

Package documentation

OpenFoodFacts API details

Usage details

This is a very simple example how to use the library in you go program.

package main

import (
	"github.com/openfoodfacts/openfoodfacts-go"
)

func main() {
	api := openfoodfacts.NewClient("world", "", "")
	product, err := api.Product("0737628064502")
}

There are runnable examples in the examples subdirectory.

Authors

Ken Allan

Third party applications

About

Go Wrapper for Open Food Facts

Topics

Resources

Security policy

Stars

93 stars

Watchers

9 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages