x402

Barcode Lookup (x402)

Look up product information by UPC/EAN barcode. Uses Open Food Facts and UPC ItemDB. Returns product name, brand, nutrition, images.

get/x402/v2/barcode-lookup

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/barcode-lookup
  • Auth: none required

Query parameters

barcodestring required

Response

Success

brandstring
foundboolean
barcodestring
nutritionobject
product_namestring

Example response

{
  "brand": "Nutella",
  "found": true,
  "source": "open_food_facts",
  "barcode": "3017620422003",
  "quantity": "400 g",
  "allergens": "en:milk,en:nuts,en:soybeans",
  "countries": "Belgique,France,Allemagne,Inde,Italie,Luxembourg,Maroc,Pays-Bas,Philippines,Pologne,Roumanie,Espagne,Suisse,Turquie,Royaume-Uni,États-Unis",
  "image_url": "https://images.openfoodfacts.org/images/products/301/762/042/2003/front_en.820.400.jpg",
  "nutrition": {
    "fat_g": 30.9,
    "salt_g": 0.107,
    "carbs_g": 57.5,
    "sugar_g": 56.3,
    "protein_g": 6.3,
    "energy_kcal": 539
  },
  "categories": "Pâtes à tartiner au chocolat",
  "nova_group": 4,
  "ingredients": "Sucre, huile de palme, NOISETTES 13%, cacao maigre 7,4%, LAIT écrémé en poudre 6,6%, LACTOSERUM en poudre, émulsifiants: lécithines [SOJA), vanilline. Sans gluten.",
  "product_name": "Nutella",
  "ecoscore_grade": "unknown",
  "nutriscore_grade": "e"
}

Changes

No recorded changes to this operation across all 1 revision of this API.