The Best Nutrition & Food Database APIs (2026)
Updated July 8, 2026
If you just need authoritative nutrient data for free, start with the USDA FoodData Central API (U.S. government, public domain) or, for global packaged-product and barcode data, Open Food Facts (open data, no key). If you need conversational meal logging or curated restaurant coverage, that is where the commercial APIs — Nutritionix, Edamam, and Spoonacular — earn their keep. This page compares all five so you can match the data model to what you are actually building.
What to look for in a nutrition API
Nutrition APIs are not interchangeable. Four things decide which one fits:
- Data model fit. Are you looking up a nutrient reference (USDA), scanning barcodes on packaged products (Open Food Facts, Nutritionix, Edamam, Spoonacular), parsing a free-text meal someone typed (Nutritionix, Edamam), or building around recipes and ingredients (Spoonacular, Edamam)? These are genuinely different jobs.
- Licensing and cost model. Two of these are free and open (USDA is public domain / CC0; Open Food Facts is open data under ODbL). The other three are proprietary and freemium — free or low-cost entry tiers that gate volume, commercial use, and full features behind paid plans.
- Access friction. USDA needs a free data.gov key. Open Food Facts needs no key at all (just a required custom
User-Agent). Nutritionix, Edamam, and Spoonacular each issue their own API keys. - Coverage type. Whole-food lab values, branded grocery items, restaurant/chain menus, and recipes are curated differently by each provider. Match coverage to your users' meals.
Nutrition API comparison (2026)
Volatile cells — pricing, quotas, database counts — change often. Treat every one as "as of 2026, verify in the docs."
| API | Best for | Access model | Pricing model | Watch out |
|---|---|---|---|---|
| USDA FoodData Central | Authoritative free nutrient reference | Free data.gov key | Free (public domain / CC0) | No NLP parsing, no restaurant menus; modest hourly rate limit |
| Open Food Facts | Barcode / global packaged products | No key (custom User-Agent required) | Free (open data, ODbL) | Crowdsourced accuracy; share-alike license obligations |
| Nutritionix | Natural-language logging + restaurants | x-app-id + x-app-key | Commercial / freemium (sources conflict) | Reports disagree on whether a free tier still exists — verify |
| Edamam | Food DB + NLP analysis + recipes together | app_id + app_key per API | Freemium (attribution on lower tiers) | Three APIs keyed and licensed separately |
| Spoonacular | Recipe / ingredient / meal-planning apps | apiKey or RapidAPI key | Freemium (daily "points" quota) | Point-per-call cost; free quota reported inconsistently |
The five options
USDA FoodData Central
The USDA FoodData Central API is the go-to free source for authoritative, lab-grade nutrient values. It is a U.S. government REST API serving several curated datasets — Foundation Foods, SR Legacy, Survey (FNDDS) foods as consumed, and Branded Foods (label data with GTIN/UPC fields). Its standout property is licensing: the data is public domain, published under CC0 1.0, so there is no copyright and no license fee — USDA requests but does not require attribution. You need only a free data.gov API key (a shared DEMO_KEY exists for initial exploration). Watch out: it is a nutrient-reference database, not a food-logging engine — there is no natural-language meal parsing, no restaurant-menu product, and no consumer barcode-lookup product, and the per-key rate limit is modest (reported around 1,000 requests per hour as of 2026, verify). You build the logging UX and fill coverage gaps yourself.
Open Food Facts
Open Food Facts is the go-to free source for global packaged-product and barcode data. It is a crowdsourced open database queryable by barcode or search — the core call returns ingredients, nutrition facts, Nutri-Score, allergens, labels, categories, and images for a product code. It is free and open: the database is under the Open Database License (ODbL), contents under DbCL, and images under CC-BY-SA. There is no API key — read requests are open but must send a custom User-Agent identifying your app (the project has said it intends to keep the API free and add no keys). Watch out: data is volunteer-contributed with no accuracy or completeness guarantee, and the ODbL share-alike obligation can require you to publish any derived database as open data — review both your data-quality needs and the license before relying on it.
Nutritionix
Nutritionix is designed for conversational and voice food logging with strong U.S. branded-grocery and chain-restaurant coverage. Its core feature is natural-language food parsing: free-text meal descriptions (for example, "1 cup rice and 2 eggs") are turned into structured nutrient data through a single endpoint. It also offers barcode/UPC lookup, instant-search autocomplete, and geolocation-based restaurant endpoints against a large curated catalog of grocery and restaurant items. It uses two headers, x-app-id and x-app-key, issued after you create an API application. Watch out: it is a paid, closed database, and as of 2026 sources conflict on whether a usable free tier still exists — some describe a free entry tier plus paid plans, others say public free/non-commercial trials were discontinued. Confirm the current access terms and pricing directly before you build.
Edamam
Edamam is a good fit when you want one vendor covering food lookup, natural-language nutrition analysis, and recipe search together. It is a family of three APIs sharing a curated dataset: a Food Database API (basic, packaged, and restaurant items, with UPC/barcode and NLP inputs), a Nutrition Analysis API (free-text recipes and ingredient lists parsed into a full nutrient profile), and a Recipe Search API (searchable recipes with diet and health filters). Each API uses an app_id and app_key pair. Watch out: the three APIs are provisioned, keyed, and licensed separately, and lower tiers carry attribution requirements (a link and logo next to nutrition facts) plus rate caps — scope which API and tier you actually need, and verify current pricing as of 2026.
Spoonacular
Spoonacular is oriented around recipes, ingredients, meal planning, and cost/nutrition computation. Alongside a large searchable recipe corpus with diet, cuisine, and intolerance filters, it covers store-bought packaged products and chain-restaurant menu items, and offers recipe nutrition and cost estimation, ingredient parsing and conversion, meal-plan generation, and product/UPC lookup. Its focus differs from Nutritionix and Edamam: it is built around recipes and ingredients rather than free-text "meal you ate" logging. Access is via an apiKey in the request URL when you subscribe directly, or a RapidAPI key; sign-up is free with no card required for the on-site free plan. Watch out: pricing runs on a daily "points" quota where each call costs points, so real cost depends on result-heavy calls, and the exact free quota is reported inconsistently (figures like roughly 50 calls or 150 points per day appear, but sources conflict) — meter your call patterns and verify the current quota as of 2026.
Which should you pick?
There is no single winner — pick by the job:
- You need free, authoritative nutrient values (whole and branded foods) and can build your own logging UX → USDA FoodData Central.
- You are building a barcode scanner for packaged products, want global coverage, and no key or fee → Open Food Facts (and mind the share-alike license).
- You need users to type or speak a meal and get nutrients back, with strong U.S. restaurant and grocery coverage → Nutritionix.
- You want food lookup, NLP nutrition analysis, and recipes from one vendor → Edamam.
- You are building a recipe, meal-planning, or ingredient-cost app → Spoonacular.
- On a tight budget? Combine the two free sources: USDA for authoritative whole-food nutrients plus Open Food Facts for barcode/packaged coverage often covers a surprising amount before you pay anyone.
Watch the fine print
Every commercial vendor here has changed its tiers, quotas, and limits historically, and reports even conflict on whether Nutritionix still has a free tier and on Spoonacular's exact free quota. Before you commit, confirm current pricing, rate limits, attribution requirements, and commercial-use terms against each provider's own documentation — and, for the open datasets, read the license (CC0 for USDA, ODbL for Open Food Facts) so you understand your obligations.
Frequently asked questions
- What is the best free nutrition API?
- The USDA FoodData Central API is the best free source for authoritative nutrient data — it is public domain (CC0) and needs only a free data.gov key. For barcode and packaged-product data, Open Food Facts is free open data with no API key required (just a custom User-Agent header).
- Which nutrition API can parse a meal from plain text?
- Nutritionix and Edamam both parse free-text meal descriptions like "1 cup rice and 2 eggs" into structured nutrient data. USDA FoodData Central and Open Food Facts do not offer natural-language meal parsing, and Spoonacular focuses on recipes and ingredients rather than free-text meal logging.
- Does Nutritionix have a free tier?
- As of 2026, sources conflict — some describe a free entry tier plus paid plans, while others say public free or non-commercial trials were discontinued. Confirm the current access terms and pricing directly with Nutritionix before building.
- Which nutrition API supports barcode lookup?
- Nutritionix, Edamam, Spoonacular, and Open Food Facts all support barcode or UPC lookup. Open Food Facts makes it the core call and is free with no key. USDA FoodData Central includes GTIN/UPC fields in its Branded Foods dataset but is oriented around its own food IDs rather than a consumer barcode-lookup product.
- Is Open Food Facts free to use commercially?
- Yes, Open Food Facts data can be used for any purpose including commercial use, but it is licensed under the ODbL with a share-alike obligation — derived databases combining its data may have to be released as open data. Attribution is also required, and the data is crowdsourced with no accuracy guarantee.
Keep reading
Independent comparison, last reviewed July 8, 2026. Pricing, rate limits, and feature availability change often — confirm current details in each provider’s official documentation before you commit. Product and company names are trademarks of their respective owners; AIFitnessAPI is not affiliated with, endorsed by, or sponsored by any product listed here.
← All fitness apis · by AIFitnessAPI