GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - openfoodfacts/openfoodfacts-go: Go Wrapper for Open Food Facts

BranchesTags
Open more actions menu

Latest commit

 

History

177 Commits
177 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
examples/simple-get-product
examples/simple-get-product
 
 
testdata/product
testdata/product
 
 
.deepsource.toml
.deepsource.toml
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
client.go
client.go
 
 
client_test.go
client_test.go
 
 
epoch_time.go
epoch_time.go
 
 
example_test.go
example_test.go
 
 
go.mod
go.mod
 
 
ingredient.go
ingredient.go
 
 
nutrient_level.go
nutrient_level.go
 
 
nutriment.go
nutriment.go
 
 
product.go
product.go
 
 
product_result.go
product_result.go
 
 
product_test.go
product_test.go
 
 
url.go
url.go
 
 

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

  • Feel free to open a PR to add your application in this list.
  • Please get in touch at [email protected]
  • We are very interested in learning what the Open Food Facts data is used for. It is not mandatory, but we would very much appreciate it if you tell us about your re-uses (https://forms.gle/hwaeqBfs8ywwhbTg8) so that we can share them with the Open Food Facts community. You can also fill this form to get a chance to get your app featured: https://forms.gle/hwaeqBfs8ywwhbTg8
  • Make sure you comply with the OdBL licence, mentioning the Source of your data, and ensuring to avoid combining non free data you can't release legally as open data. Another requirement is contributing back any product you add using this SDK.

About

Go Wrapper for Open Food Facts

Topics

foodgogolanghacktoberfestopenfoodfacts

Resources

Readme
MIT license

Security policy

Security policy
Activity
Custom properties

Stars

93 stars

Watchers

9 watching

Forks

29 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.