Integrate barcode lookup and analysis directly into your applications.
This endpoint allows users to authenticate and retrieve an access token. The token is required to make subsequent API requests.
/api/auth/getToken
{
"userKey": "YOUR_USER_KEY",
"apiKey": "YOUR_API_KEY"
}
This endpoint allows you to fetch details about a specific barcode, including product name, pricing information, and availability.
/api/barcode
{
"barcode": "8690632994802"
}
[
{
"barcode": "8690...",
"text": "Product Name...",
"prices": []
}
]
Calories, fat, carbohydrate, protein, sugars, sodium, vitamins and minerals of a product, per 100 g (or 100 ml) and per serving, with ingredients. Data from USDA FoodData Central and Open Food Facts. Each call counts towards your daily quota, like a barcode lookup.
/api/nutrition
{
"barcode": "0016000275287"
}
usda-fdc or openfoodfacts. Open Food Facts data is under the ODbL: credit Open Food Facts where you show it.{
"barcode": "0016000275287",
"source": "usda-fdc",
"servingSize": 40.0,
"servingUnit": "g",
"householdServing": "1 cup (40 g)",
"packageWeight": "18 oz",
"category": "Cereal",
"ingredients": "Whole grain oats, sugar, ...",
"nutrients": [
{ "key": "energy", "unit": "kcal",
"per100": 375.0, "perServing": 150.0,
"dailyValue": null },
{ "key": "fat", "unit": "g",
"per100": 5.0, "perServing": 2.0,
"dailyValue": 3 },
{ "key": "sodium", "unit": "mg",
"per100": 475.0, "perServing": 190.0,
"dailyValue": 8 }
]
}
Nutrient keys: energy, fat, saturatedFat, transFat, cholesterol, sodium, carbohydrate, fiber, sugars, addedSugars, protein, vitaminD, calcium, iron, potassium (US label order; only those the product lists).
This endpoint analyzes the given barcode and provides details such as country of origin, manufacturer code, and product code.
/api/analysis