Barcode Lookup
Scan or type a barcode, get the product. Resolve any EAN-13 or UPC code to a food record — brand, category, Nutri-Score, and a nutrition summary — in a single request. Built for scanner-based apps.
curl -H "X-API-Key: food_•••" \
"https://foodbase.dev/v1/foods/barcode/5449000000996"
{
"name_default": "Coca-Cola",
"brand": "Coca-Cola",
"barcode": "5449000000996",
"nutriscore": "e",
"nutrition_summary": {
"energy_kcal": 42,
"sugars_g": 10.6,
"proteins_g": 0,
"fat_g": 0
}
} Prefer to click around? Try the product explorer or the photo playground.
What you get back
name_default / brand
Product name and brand for the scanned code.
name / lang
Full multilingual name set where the label carries several languages; add ?lang= (en, fr, es, de, it, bg) for localized category and allergen fields.
barcode
The normalized EAN-13 / UPC value.
nutriscore
Nutri-Score grade (a–e) when available.
nutrition_summary
Headline macros: energy, sugars, protein, fat.
image_url
Product image when available.
Included on the free plan — 100 requests/day, no credit card required. See plans →
Build with it
Barcode scanners
Turn a phone camera scan into instant product + nutrition data.
Pantry & grocery apps
Let users add items by scanning the package barcode.
Retail & checkout
Enrich a basket with food attributes keyed off the barcode.
Explore more endpoints
Food Image Recognition
Turn a photo into food data. Four vision endpoints cover the whole camera flow: decode a barcode, identify a product from its front, read the nutrition label and ingredients, or analyze a plate of food with portion estimates — matched against 6.1M products, in six languages including Cyrillic.
Learn more →Nutrition data
Go beyond the headline macros. Pull a detailed breakdown of 40+ nutrients per product — energy, protein, carbs, fats, sugars, fiber, sodium, vitamins, and minerals — all per 100g, for any food by ID.
Learn more →Food Search
Full-text search across 6.1 million food products by name, brand, or category — relevance-ranked, paginated, and fast. Search in any language the label was printed in (Cyrillic included), and pass lang=en|fr|es|de|it|bg for localized names, categories and allergens. One GET request returns clean JSON your app can render immediately.
Learn more →Start building with the Barcode Lookup API
Free to start. No credit card required.
Get API key Go to Dashboard