Get product
get_productRetrieve current product data from Open Food Facts by barcode. Direct database access ensures up-to-date nutrition and ingredient information.
Instructions
Get product information from Open Food Facts by barcode. Reads the primary database directly (no sync lag), so this is always current even when search_products returns stale results. Prefer this over search whenever you have a barcode. If this returns "product not found", the product genuinely isn't in the database — you can add it with add_or_edit_product.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Fields to return. By default ALL fields are returned — nothing is omitted, so a field is never misleadingly null/absent just because it wasn't requested (e.g. `images` is always populated when the product has images). Pass an explicit list only to narrow the otherwise-verbose response. | |
| barcode | Yes | Product barcode (EAN-13, UPC-A, etc.) | |
| language | No | Language code for language-dependent fields (product_name, generic_name, ingredients_text). Defaults to "en". When a product has a different primary language, the unsuffixed field names return that language's data — this param ensures you get the language you want. | en |