Foodprint
Foodprint API gives you the carbon footprint of food products. It can help you with you next food apps, in order to give extra information about the products.
Foodprint endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET |
getGroups /api/foodprint/getGroups |
Gives all the existing Groups in order to help you make the right calls. |
| GET |
getCategories /api/foodprint/getCategories |
Gives all the existing categories in order to help you make the right calls. |
| GET |
getProductByName /api/foodprint/name/{name} |
For valid response try to write the name of the product you want to get. You can write, for example, milk to get milk, almond milk, baby milk, etc. If the string you entered… |
| GET |
getProductByFrenchName /api/foodprint/french_name/{french_name} |
For valid response try to write the french name of the product you want to get. You can write, for example, lait to get lait, lait d'amande, lait pour nourrissons, etc. If the… |
| GET |
getAll /api/foodprint |
Get all the available products. No parameter expected. |
| GET |
getProductsByGroup /api/foodprint/group/{group} |
Get all the products of a given group. you can write. For example, enter drinks to get all the available information about drinks. You don't need to enter the exact group name,… |
| GET |
getProductsByCategory /api/foodprint/category/{category} |
For valid response try to write the name of the category you want to get products from. You can write, for example, waters to get all the waters which are inside the drinks group… |
| GET |
getProductByRatingQuality /api/foodprint/rating_quality/{rating_quality} |
For valid response try to enter a parameter between 1 (excluded) and 5 (excluded) . The quality rating is a float between 1 (great confidence in the rating) and 5 (lots of… |
| GET |
getProductByFootprint /api/foodprint/footprint/{footprint} |
For valid response try to enter a float value. The footprint value is a float number which gives you the kg of CO2 eq/kg of product. That means if the footprint is 0.8, then it… |
| GET |
getBestProductByGroup /api/foodprint/bestProductByGroup/{group} |
For valid response try to write the name of the group you want to get the ranking from. You can write, for example, drinks to get the ranking of the drinks group (from best to… |
| GET |
firstBestProductByGroup /api/foodprint/firstBestProductByGroup/{group}/{qty} |
Gives the "x" best products (with the lowest footprint) of a given group. For example, you can write drinks and 10 to get the first 10 drinks with the best footprint. |
| GET |
getRandomProduct /api/foodprint/randomProduct |
Get a random product. No parameter expected. |
Foodprint pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO Recommended | $1.99 / month | — |
|
| ULTRA | $4.99 / month | — |
|