Skills/Nutrition/Product by barcode

Product by barcode

0.1 credits / lookup

Looks up a packaged product by its EAN or UPC barcode and returns the product name, brand, quantity, ingredient list, allergens, nutrition facts per 100 g and per serving, a nutrition grade, and a processing-level score. Covers a global catalog of packaged products.

Use when

You have a scanned or known barcode (EAN or UPC) for a packaged product.

Not for

Searching by product name (search the food name instead) or a generic unbranded food.

Cost

0.1 credits / lookup

What it accepts

Set these inside the intent when you run it.

barcoderequired

The product barcode digits in EAN or UPC format.

What you get back

Product name, brand, quantity, ingredients, allergens, per-100g and per-serving nutrition facts, a nutrition grade (A-E), and a processing-level score (1-4).

Run it

Run this sub-skill directly: pin it with operation and pass its inputs in the intent. (Omit operation and the Nutrition skill will route from your intent instead.)

curl -X POST "https://skill.askfaro.com/skills/nutrition/run" \
  -H "Authorization: Bearer $FARO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"intent":{"operation":"product_by_barcode","barcode":"3017620422003"}}'

Example requests

  • What are the ingredients and nutrition facts for barcode 3017620422003?
  • Scan this product barcode and tell me its nutrition grade
  • What allergens are in this packaged product?