
Barcode lookup
Barcode Nutrition API
Turn a barcode scan into a logged meal with a single request. The barcode nutrition API resolves UPC and EAN codes against a verified local catalog first, then falls back to Open Food Facts automatically, with one normalized response shape either way.
Every response is trimmed to what logging apps actually need: product name and brand, ingredients and allergens, serving metadata, macros per 100 g and per serving when available, and micronutrients when present.
Full parameters and response shapes live in the API documentation, and you can try every endpoint in the playground without signing up.
curl "https://calorieapiadmin.com/api/v1/search/barcode/3017620422003" \ -H "X-API-Key: your_api_key_here"
Capabilities
What the barcode nutrition api gives you
Scanner-agnostic
Works with any scanner library that yields raw digits; dashes are stripped automatically.
Two-source coverage
Verified local catalog first, automatic Open Food Facts fallback for the long tail of products.
Logging-ready payloads
No thousand-field raw dumps: only product, serving, and nutrition fields your app logs.
Allergen data
Ingredients text and allergen lists when the source provides them, for safety-aware apps.
Per-100g normalization
Macros are normalized per 100 g (and per serving when labeled), so portion math stays simple.
Graceful misses
Unknown barcodes return a clean 404 so your app can fall back to text search.
Barcode Nutrition API: frequently asked questions
Which barcode formats does the API support?
UPC and EAN barcodes. Pass the digits in the URL path; dashes are stripped automatically, so scanner output works as-is.
What happens when a product is not in the catalog?
The API automatically falls back to Open Food Facts with the same normalized response shape. If neither source knows the code, you get a 404 and can offer manual search.
Is the response shape different for fallback products?
No, local-catalog and Open Food Facts products return identical structures, so your client code never branches on data source.
Can I use barcode lookup in a commercial app?
Yes, on the Plus or Enterprise plan with the X-API-Usage-Type: commercial header. Development and personal projects can use the free tier.
Start building today
Create a free account, generate an API key, and make your first request in minutes.
