Open Food Facts API

Open Food Facts API

Open Food Facts is a free food product database you can use to make better food choices. The database has over 1.3 million products listed at the time of writing, including food information such as ingredients, allergens, nutrition facts, and other miscellaneous information found on product labels.

The developers of Open Food Facts have an API library for Laravel, which provides a convenient wrapper to the Open Food Facts API.

A few examples of how you can use this API include a barcode lookup:

OpenFoodFacts::barcode('20203467');

And finding products that match a search term:

$collection = OpenFoodFacts::find('Coca Cola Zero');

Learn More

You can learn more about this package, get full installation instructions, and view the source code on GitHub at openfoodfacts-laravel.

Open Food Facts also has an API Wiki with more information on API usage.

The Open Food Facts organization has quite a few integrations and SDKs available on GitHub such as an iOS app, android app, and API wrappers.

Filed in: News / packages
Laravel News Partners

Laravel Jobs

Senior Full Stack Engineer - Laravel
Remote
Givebutter
Laravel partner seeks Lead Developer
Remote
Kirschbaum Development Group
Senior Programmer **Immediate Opening** (send resume to daniel@sbgcorp.com)
Remote
SBG Corp
Web Developer - Laravel
Grand Forks, North Dakota
Center for Rural Health
Senior Full-Stack Laravel Developer
Berlin, Germany
felmo.de

Newsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.