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:
1OpenFoodFacts::barcode('20203467');
And finding products that match a search term:
1$collection = OpenFoodFacts::find('Coca Cola Zero');
0 comments:
Post a Comment
Thanks