Food data API · JP · US · SG
Scan a barcode.
Know what's inside.
One call returns nutrition per 100 g, declared allergens, ingredients, Nutri-Score, labels and a pack photo, with an allergen check built in. Made for allergy, diet, halal, travel and grocery apps.
Try it live
Docs
| Endpoint | Returns |
|---|---|
GET /v1/product?barcode=… | Full product record, or 404 with found:false |
&avoid=gluten,milk,egg | Adds check.verdict: contains / not_declared / unknown and the flagged terms |
Authenticate with header x-api-key (or ?key=). Key demo works for testing.
curl -H "x-api-key: YOUR_KEY" "https://labellens-api.pages.dev/v1/product?barcode=4901002075422&avoid=gluten"
Fields: barcode, country, markets, name, name_ja, brand, category, quantity, serving_size, nutriscore, nova_group, kcal / fat / sat_fat / carbs / sugars / fiber / protein / salt per 100 g, allergens[], labels[], ingredients, price, currency, image_url, source_url.
Pricing
Starter
10,000 lookups a month. Allergen check. Email support.
Growth
100,000 lookups a month. Priority support. Monthly data refresh.
Bulk licence
The full database as CSV, JSONL and SQLite, with a year of updates.
Honest notes
Data comes from Open Food Facts and Open Prices (ODbL 1.0). Credit to Open Food Facts is included in every response contract, and bulk copies stay under ODbL. Allergen results reflect what the maker declared on the pack; always tell end users to read the label. not_declared is not a safety guarantee.