🏆 #3 Product of the Day on Product Hunt
The Food & Nutrition Database API
Ingredient lists, serving sizes, nutrients, allergens, and trace ingredients for more than 850,000 packaged foods. Look a product up by barcode, search by name, filter by allergen, ingredient, or nutrient, or pull nutrition for raw ingredients.
Plans start at $0 a month plus $0.01 per request. New Standard and Premium subscriptions start with a 5-day free trial. A card is required.
Top 300
Innovation Award
by API World
Top 10
Best Food APIs
Programmable Web
850,000+
Products
Branded products re-checked twice a month
One call, one record
A real product as the API returns it, shortened. The barcode lookup page shows the full record, every field included.
GET /api/v2/food/branded/barcode.php?api_key=YOUR_KEY&code=0762111036537
{
"items": [
{
"barcode": "0762111036537",
"name": "Bar, Cranberry Bliss",
"brand": "Starbucks Coffee Company",
"serving": { "size": 69, "measurement_unit": "g", "size_fulltext": "1 BAR" },
"ingredients": "ENRICHED FLOUR (WHEAT FLOUR, MALTED BARLEY FLOUR,
NIACIN, IRON, THIAMIN MONONITRATE, RIBOFLAVIN, FOLIC ACID),
BROWN SUGAR, WHITE CONFECTIONERY COATING (SUGAR, PALM KERNEL
AND PALM OILS, WHEY, NONFAT MILK, SOY LECITHIN, …), …",
"nutrients": [ // 6 of 14 shown, per 100 g
{ "name": "Energy", "per_100g": 493, "measurement_unit": "KCAL" },
{ "name": "Protein", "per_100g": 4.35, "measurement_unit": "G" },
{ "name": "Total lipid (fat)", "per_100g": 27.54, "measurement_unit": "G" },
{ "name": "Carbohydrate, by difference", "per_100g": 56.52, "measurement_unit": "G" },
{ "name": "Sugars, total including NLEA", "per_100g": 40.58, "measurement_unit": "G" },
{ "name": "Sodium, Na", "per_100g": 275, "measurement_unit": "MG" }
],
"allergens": ["Milk"]
}
]
}
In every branded record
- IngredientsThe statement as printed, plus a parsed list
- Serving sizesSize, unit, and the wording on the pack
- NutrientsCalories, macros, vitamins, and minerals per 100 g
- AllergensAs declared on the label, in their own field
- TracesMay-contain statements, separate from allergens
Allergens and traces from another real record: Kellogg's Baked Twists, 9310055598430
"allergens": ["Gluten", "Milk", "Soybeans", "Sulphur Dioxide And Sulphites"], "traces": ["Nuts", "Peanuts"]
Also in the record: categories, countries of sale, palm oil ingredients, packaging photos where available, and Vegan, Vegetarian, and Gluten-Free labels.
Four ways to find a product
Every endpoint returns the same kind of record, with ingredients and nutrition. They differ in how you find it.
Barcode lookup
Send a UPC or EAN and get the full record back. This is the scanner endpoint, and the only one on the Limited plan.
Barcode lookup reference Building a scannerSearch by name
Keyword or brand search across branded products. The term doesn't need to match exactly.
Search by name referenceAdvanced branded search
Combine at least two of twelve filters, such as allergen, trace, ingredient, nutrient, and brand, to narrow the catalog to the products you need.
Advanced search reference Catalog searchIngredient search
Nutrition for raw and generic ingredients, up to ten terms in one call.
Ingredient search referencePricing
Every plan reads the same catalog. Limited is barcode lookup only. Standard and Premium add name, advanced, and ingredient search.
New Standard and Premium subscriptions start with a 5-day free trial. A card is required, and usage during the trial is billed on your first invoice if the trial converts.
Limited
$0 / mo + $0.01 / request
- EndpointsBarcode lookup only
- Rate limit30 / minute
- Search paceNo search endpoints
- CachingNot allowed
- Free trialNot included
Standard
$25 / mo + $0.001 / request
- EndpointsAll four
- Rate limit100 / minute
- Search pace1 per 10 seconds
- CachingUnder 24 hours
- Free trial5 days
The search pace applies to each search endpoint (name, advanced, ingredient). Barcode lookups aren't affected.
Start 5-day free trialPremium
$299 / mo + $0.001 / user
- EndpointsAll four
- Rate limitNone
- Search paceNone
- CachingUnder 24 hours
- Free trial5 days, up to 5,000 calls
No per-request fees. The $0.001 per-user fee applies to monthly active users and drops past 2.5 million. For example, 10,000 users cost $10, so $309 for the month. See the tiers
Start 5-day free trialCheck the data before you pay
The docs, the guides, and a sample of the catalog are public. To call the live API, start the free trial on Standard or Premium.
Documentation
Every endpoint, parameter, and response field, with a Try It form on each endpoint page.
Open the docs Browse the guidesSample files and catalog search
The sample file holds 11 complete records, with the same fields the API returns. For a match-rate test against your own barcodes, get the larger sample, or search the catalog by name to see whether a product is in it.
Download the sample file Get the larger sample Search the catalogLicense, SLA, and status
The Terms & License cover how you may use the data. The SLA commits to 99.9% monthly uptime, with service credits if we miss it.
Terms & License SLA Live status pageBuying for a company
Purchase orders, security basics, and a data-processing agreement on request. Need the data as files? Ask about the annual data license.
Enterprise Data licensingWhere the data comes from
The catalog is built from USDA FoodData Central and Open Food Facts. Those sources overlap and disagree: the same product turns up under different names and barcodes, and ingredient lists and nutrient values arrive in different formats, some missing.
Chomp merges duplicate products, reconciles barcodes, maps ingredients and nutrients to consistent names, and checks each record before it joins the catalog. Branded products are re-checked about twice a month, and a record is validated before it is overwritten. Diet labels (Vegan, Vegetarian, Gluten-Free) are worked out from each product's ingredient list. The knowledge base article Data Sources and Quality has more.
Used at institutions like
Common questions
How does the free trial work?
New Standard and Premium subscriptions start with a 5-day free trial. Starting one takes a card. Cancel before the trial ends and you pay nothing. If it converts, usage during the trial is billed on your first invoice. A Premium trial includes up to 5,000 calls. Limited has no trial.
Can I cache responses?
On Standard and Premium, for under 24 hours. Limited doesn't allow caching. To keep the data longer or use it offline, ask about the annual data license.
What uptime do you commit to?
The SLA commits to 99.9% monthly uptime. If we miss it, you receive a service credit of 10%, 25%, or 75% of that month's charges, depending on how far uptime fell. Credits under $10 aren't issued. Current status and history are on the live status page.