Open Food Facts

Retrieve product information, ingredients, and nutritional data from packaged foods.

1 endpoint11 calls1/1 passing
Get API key

Get product details by barcode.

GET/v1/…openfoodfacts/product
passing · 0.8s5m cache

Try it

Checking your keys…

Parameters

barcode

string · query · required

Product barcode (EAN/UPC), 8-13 digits.

Example response

{"project":"food:openfoodfacts",  "data": {"ok":true,    "product": {"name":"Nutella","brands":"Nutella","labels":"Sans gluten, Triman, en:Sans colorants, en:Sans conservateurs, en:Sans gluten, en:Sans matière grasse hydrogénée, en:Végétarien","barcode":"3017620422003","quantity":"","allergens":"lait, fruits à coque, soja","countries":"France, Italie, Luxembourg, Philippines, en:Allemagne, en:Belgique, en:Espagne, en:Inde, en:Maroc, en:Pays-Bas, en:Pologne, en:Roumanie, en:Royaume-Uni, en:Suisse, en:Turquie, en:États-Unis","image_url":"https://images.openfoodfacts.org/images/products/301/762/042/2003/front_en.820.400.jpg","categories":"en:Petit-déjeuners, en:Produits à tartiner, en:Produits à tartiner sucrés, en:Pâtes à tartiner",      "nutriments": {"fat_100g":30.9,"salt_100g":0.107,"sugars_100g":56.3,"proteins_100g":6.3,"energy_kcal_100g":539,"carbohydrates_100g":57.5      },"ecoscore_grade":"unknown","ingredients_text":"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.","nutriscore_grade":"e"    }  },"timestamp":"2026-05-27T13:26:59Z"}

Errors

  • 401Missing or invalid x-api-key
  • 404Not found or private
  • 429Rate limit or monthly quota reached

Code

const data = await client.run(  "food:openfoodfacts",  "product",  { barcode: "3017620422003" });