Pomóż nam informować miliony konsumentów na całym świecie o tym, co jedzą

group photo donation 2024
open food facts logo

Prosimy o wsparcie naszej zbiórki funduszy w 2025 roku

Twoje datki finansują codzienną działalność naszej organizacji non-profit:

  • utrzymanie naszej bazy danych otwartej i dostępnej dla wszystkich,
    • infrastruktura techniczna (strona internetowa/aplikacja mobilna) oraz mały, stały zespół
  • pozostają niezależne od przemysłu spożywczego,

  • angażują społeczność oddanych obywateli,

  • wspierają rozwój badań nad zdrowiem publicznym.

Each donation counts! We appreciate your support in bringing further food transparency in the world.

Dane

Warunki ponownego wykorzystania

The Open Pet Food Facts database is available under the Open Database License.
The individual contents of the database are available under the Database Contents License.
Products images are available under the Creative Commons Attribution ShareAlike licence. They may contain graphical elements subject to copyright or other rights, that may in some cases be reproduced (quotation rights or fair use).

Please read Terms and conditions of use and re-use before re-using the data.

Powiedz nam o swoim projekcie

We are very interested in learning what the Open Pet 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 so that we can share them with the Open Pet Food Facts community. You can also fill this form to get a chance to get your app featured.

Open Pet Food Facts data exports

Zrzuty i eksporty baz danych są generowane co noc. The database is very big, so you can find different ways to use the data, depending on the export flavor.

Information on the different fields for the MongoDB dump and CSV exports is available at https://world.openpetfoodfacts.org/data/data-fields.txt

MongoDB dump

Dane dla wszystkich produktów są dostępne w zrzucie bazy danych MongoDB.

Link
https://static.openpetfoodfacts.org/data/openpetfoodfacts-mongodbdump.gz
sha256sum
https://static.openpetfoodfacts.org/data/gz-sha256sum
md5sum
https://static.openpetfoodfacts.org/data/gz-md5sum

Delta Export

Daily delta exports are provided for the previous 14 days. The list of currently available delta files can be found at https://static.openpetfoodfacts.org/data/delta/index.txt.

Each line represents a file that is available at https://static.openpetfoodfacts.org/data/delta/{filename}.

The filename contains UNIX timestamp of the first and the last change contained in the JSON file, so that the delta files can be imported (after extraction) with mongoimport in alphabetical order.

Please note that due to the nature of mongoexport, the delta files cannot tell you about deleted products. To remove deleted products from your database, you will need to import the full MongoDB dump.

Eksport danych JSONL

Cała baza danych jest również dostępna w formacie JSONL (nazywanym także LDJSON lub NDJSON), gdzie każda linia jest obiektem JSON. Reprezentuje te same dane, co eksport MongoDB. Plik jest skompresowany programem gzip.

Link
https://static.openpetfoodfacts.org/data/openpetfoodfacts-products.jsonl.gz

A suitable way to exploit the database is to use DuckDB, an in-processs analytical tool designed to process large amount of data in a fraction of seconds. You can read our blog post where we walk you through exploring and processing the Open Pet Food Facts database with DuckDB

Eksport danych CSV

Data for all products, or some of the products, can be downloaded in CSV format (readable with OpenOffice, Excel and many other software) through the advanced search form.

Links
The classic app for iOS has never been adapted nor deployed for pet food.

The file encoding is Unicode UTF-8. The character that separates fields is <tab> (tabulation).

RDF Data Export

The database is also available in the RDF format. Możesz przeczytać ogłoszenie po francusku.

Link
https://world.openpetfoodfacts.org/data/en.openpetfoodfacts.org.products.rdf.gz

Eksport danych obrazu

Wszystkie obrazy i wyniki OCR mogą być pobrane z naszego serwera lub z AWS (przez AWS Open Data Program). Sprawdź naszą dokumentację, aby dowiedzieć się więcej o tym, jak pobierać obrazy.

OpenAPI Documentation for the JSON API

API JSON jest też dostępne, aby odczytać dane produktu. This API is in particular used in the Open Pet Food Facts mobile app for iPhone and Android.

We improve the API over-time but we are careful to keep backwards compatibility. Please tell us if you use it, so that we can tell you about potential changes.

URL to read data for a product: https://world.openpetfoodfacts.org/api/v0/product/[barcode].json

Example: https://world.openpetfoodfacts.org/api/v0/product/3600550578041.json

Note that if the output is too overwhelming, you can filter it - as described in the API documentation.

OpenAPI help wanted

We're eager to finish the documentation of the API, add use-cases, and automate SDK generation. If you are an OpenAPI connoisseur, you are very welcome to help.

You are very welcome to use the API for production cases, as long as 1 API call = 1 real scan by a user. Any attempt to scrape the database using the API will very likely be blocked, as full daily exports are available on this very page.

Also, sending an HTTP header with your API call is a good way we can get in touch, should any issue arise.

If you are unsure about anything, or have any question (there is no silly question), feel free to ask it on the #api channel on Slack :-)

Experimental XML API

You can also get the result in XML by using .xml

API V2 - Comprehensive but not OpenAPI compliant - It contains uses cases for displaying a product, and letting your users add the data required to get the Nutri-Score, the NOVA classification, additives, and the Eco-Score.

This API is not actively maintained, and not officially documented.

Wrappers and SDKs

We probably have a wrapper for your favorite programming language. If we do, you can use it and improve it. If we don't, you can help create it.

They will let you consume data, as well as let your users contribute new data

General principles to make your users happy

  • You can search for information about products, including many useful computed values.
  • If you can't get the information on a specific product, you can get your user to send photos and data, that will then be processed by Open Pet Food Facts AI and contributors to get the computed result you want to show them.
  • You can also implement the complete flow so that they get immediately the result with some effort on their side.

If your users do not expect a result immediately (e.g. Inventory apps)

  • Submit photos (front/nutrition/ingredients): most painless thing for your users
  • The Open Pet Food Facts AI - Robotoff - will generate some derived data from the photos
  • Over time, other apps, and the Open Pet Food Facts community will fill the data gaps

If your users expect a result immediately (e.g. Nutrition or Allergy apps)

  • Submit ingredients + category > get Ingredient analysis, additives, allergens, normalized ingredients, vegan, vegetarian…
  • Submit labels for added value
  • Submit nutrition

Android and iPhone mobile app

The code for the current universal app called Open Food Facts is available on GitHub (Flutter. It can scan and add pet food. The legacy Open Pet Food Facts mobile app, still available for Android is built on Kotlin. The plan is to update it to a Open Pet Food Facts branded flavor of the Flutter app.

We look to turn the deprecated Kotlin and Swift codebases into Kotlin and Swift SDKs, help welcome :-)

Kotlin Android and Swift iOS

The app allows users to scan the barcode of products, to view the product information, and to take and submit pictures and data for missing products.

Możesz wykorzystać nasz kod (licencja Open source), pomóż nam go ulepszyć, dla wszystkich, na każdej planecie.

SDK

Discussing data, API and exports

You can look at common FAQ questions about the API and Data Exports and common Open Food Facts questions

You can join the Open Pet Food Facts Slack chatroom which is the preferred way to ask questions and discuss the API. Please ask your questions in the #api channel

You can open a thread on our API documentation repository

For any question regarding the data, you can contact us at reuse@openfoodfacts.org