# Best Nutrition API for Indie Developers (2026 Prices)

> Best nutrition and food database APIs for a calorie app in 2026: USDA, Open Food Facts, FatSecret, Edamam, Spoonacular and Passio, with caching rules.

- Canonical: https://zeroraised.com/blog/best-nutrition-api-for-indie-developers
- Published: 2026-11-24T07:15:00Z
- Author: ZeroRaised Team (https://zeroraised.com/blog/authors/zeroraised)
- Publisher: ZeroRaised (https://zeroraised.com/)
- Section: Building
- Tags: api, developer-tools, mobile, comparison

**Short answer:** For a bootstrapped calorie or diet app, build on data you are allowed to keep: [USDA FoodData Central](https://fdc.nal.usda.gov/api-guide/) for generic foods (public domain, free) and [Open Food Facts](https://openfoodfacts.github.io/openfoodfacts-server/api/) for barcode scans (free, ODbL). Add [FatSecret](https://platform.fatsecret.com/api-editions) if you qualify for its free Premier tier, or [Edamam](https://developer.edamam.com/food-database-api) from $14/mo if natural-language logging is your core feature.

Every price, limit and term below comes from each vendor's own page, checked on 24 Nov 2026. We left Nutritionix out because its pricing page would not load for us today. The advice in between is ours and is marked as such.

## TL;DR

- **USDA FoodData Central:** free, CC0 public domain, 1,000 requests per hour per IP.
- **Open Food Facts:** free, ODbL, the best free barcode source; 15 product reads per minute per IP.
- **FatSecret:** Basic is free with 5,000 calls per day (US only, no barcode). Premier Free adds unlimited calls and barcode for small startups.
- **Edamam:** from $14/mo prepaid for 100,000 calls, with natural-language parsing, attribution required and strict caching.
- **Spoonacular:** free at 50 points per day with a backlink, paid from $29/mo, best for recipes.
- **Passio:** photo recognition SDKs from $99/mo for 1M tokens.

**Disclosure:** ZeroRaised publishes this comparison and is a launch site for bootstrapped products. ZeroRaised has no commercial relationship with any provider listed and earns nothing if you sign up. Facts come from the linked sources as checked on 24 Nov 2026. Nothing here is medical, dietary or legal advice.

## What a calorie app needs from an API

A food tracker has four jobs: search a generic food ("banana"), scan a barcode, parse a typed meal ("two eggs and toast") and estimate a photo of a plate. Our read: the first two are the core of almost every tracker, and you can cover both with free data you are allowed to keep. Natural language and photos are where paid APIs earn their price, and where storage restrictions start to bite.

Storage matters because a food log is data you show again tomorrow and next month. If a provider forbids storing its nutrient values, you have to re-query the API whenever a user opens their history. That shapes your schema, your offline mode and your bill.

## The nutrition APIs at a glance

| API | Free option | Entry paid price | Barcode | Natural language | Photo |
|---|---|---|---|---|---|
| USDA FoodData Central | Free, 1,000 req/hour | Free | No dedicated endpoint | No | No |
| Open Food Facts | Free, 15 product reads/min | Free | Yes | No | No |
| FatSecret | Basic 5,000 calls/day; Premier Free if eligible | Premier on request | Premier tiers | Paid add-on | Paid add-on |
| Edamam Food Database | 30-day trial on Basic | $14/mo prepaid | Yes | Yes | Vision API |
| Spoonacular | 50 points/day, backlink | $29/mo | UPC search | Parse ingredients | Image classification |
| Passio Nutrition AI | Not checked | $99/mo | Yes | Not listed | Yes |

## 1. USDA FoodData Central: the free foundation

The best feature of the USDA's database is the licence. The [FDC API guide](https://fdc.nal.usda.gov/api-guide/) says the data "are in the public domain and they are not copyrighted", under CC0 1.0. You can query it, store it and ship it.

- **Price:** free, with an API key from the FDC signup page.
- **Limits:** 1,000 requests per hour per IP by default. If you go over, the key is blocked for 1 hour and you get HTTP 429. `DEMO_KEY` allows 30 requests per hour and 50 per day.
- **Endpoints:** `/food/{fdcId}`, `/foods`, `/foods/search` and `/foods/list` under `https://api.nal.usda.gov/fdc/v1/`. The data types are Foundation, SR Legacy, Survey (FNDDS), Experimental and Branded Foods.
- **Attribution:** USDA asks you to list FoodData Central as the source.

```bash
curl "https://api.nal.usda.gov/fdc/v1/foods/search?query=banana&pageSize=5&api_key=YOUR_KEY"
```

Our read: USDA is the right backbone for generic foods, but it is a reference database and not a consumer search engine. Because it is public domain, copy the foods your users log into your own database and serve them locally.

## 2. Open Food Facts: free barcode lookups

Open Food Facts is an open, collaborative database of packaged products, and the most practical free answer to "scan it, get the label" ([OFF API docs](https://openfoodfacts.github.io/openfoodfacts-server/api/)).

- **Price:** free. The docs ask for a custom User-Agent in the form `AppName/Version (ContactEmail)`.
- **Limits:** "15 req/min/IP address for all read product queries" and "10 req/min/IP address for all search queries". The docs say not to use search for a search-as-you-type feature.
- **Bulk data:** for large volumes, use the CSV, JSONL, MongoDB or Parquet exports instead of the API; dumps and exports are generated nightly ([OFF data](https://world.openfoodfacts.org/data)).
- **Licence:** the database is under the ODbL, its contents under the DbCL and its images under CC BY-SA. The OFF data page gives this example attribution: "Contains data from Open Food Facts, available under the Open Database License". Check the terms of use for what applies to you.

```bash
curl -H "User-Agent: MyCalorieApp/1.0 (you@example.com)" \
  "https://world.openfoodfacts.org/api/v3.6/product/3274080005003.json"
```

The docs' example uses the staging server (`world.openfoodfacts.net`, basic auth `off`/`off`) for testing.

Our read: 15 reads per minute is fine when each phone calls OFF directly, and too tight if every scan goes through your one server. Either call it from the client or mirror the export. Read the ODbL itself before you merge OFF data into your own product database, and let users fix missing products.

## 3. FatSecret Platform API: the best free tier if you qualify

FatSecret says it has "more than 2.3 million unique foods and products" across more than 62 countries ([FatSecret Platform](https://platform.fatsecret.com/api)). Its editions ([FatSecret editions](https://platform.fatsecret.com/api-editions)):

| Edition | Price | Calls | Data | Barcode | Attribution |
|---|---|---|---|---|---|
| Basic | Free, self sign-up | 5,000 per day | US only | No | Required |
| Premier Free | Free, verification required | Unlimited | US only | Yes | Required |
| Premier | Upon request | Unlimited | 62+ countries | Yes | Not required |

Premier Free is for startups with under US$1 million in annual revenue and under US$1 million raised, and non-profits. It lists "Custom Caching and Data Storage Permissions". On Premier tiers, NLP and image recognition are paid add-ons, with a 50% discount for eligible startups.

The [FatSecret terms](https://platform.fatsecret.com/terms) are strict. Content must be removed or replaced "within 24 hours after the time at which you obtained the Content" unless it is marked storable. You must attribute it "in every place that Content is provided or displayed". And you may not "use the fatsecret Platform API to provide diet, nutrition or health advice, guidance or diagnosis."

Our read: if you are pre-revenue, apply for Premier Free first. It is the only free option here with barcode lookup and unlimited calls from a commercial database. The health-advice clause rules out some "AI nutritionist" ideas.

## 4. Edamam: natural language from $14

Edamam's Food Database API parses a search string into foods with quantities on every plan. Edamam says it covers "close to 1,000,000" foods and "over 700,000 unique UPC, ITN, and EAN codes" ([Edamam Food Database](https://developer.edamam.com/food-database-api)).

| Plan | Price | Calls/month | Food search throttle | Vision API | You may cache |
|---|---|---|---|---|---|
| Basic | $14/mo prepaid, 30-day trial | 100,000 | 50/min | 500 included, 50 per day | Food ID and label only |
| Core | $69/mo prepaid | 750,000 | 100/min | $0.015 per call | Plus protein, net carbs, fat, kcal |
| Plus | $299/mo prepaid | 5,000,000 | 300/min | 10,000 included | As Core |

Attribution is required on all plans. Edamam says "Not providing attribution is considered breach of contract and is followed by immediate service suspension." Saved data "can be used only in the end user’s account, behind a password", and only human-driven requests are allowed. The separate [Nutrition Analysis API](https://developer.edamam.com/edamam-nutrition-api) for recipes and ingredient lines starts at $29/mo, with no caching on that plan.

Our read: this is the cheapest way to get natural language, barcodes and photos from one API. On Basic you cannot store nutrient values, though, so a diary has to re-fetch them. Check that call volume against the 100,000 a month.

## 5. Spoonacular and Passio

**[Spoonacular](https://spoonacular.com/food-api/pricing)** is recipe-first, with UPC product search, ingredient parsing, "Estimate Nutrition by Dish Name" and image classification endpoints ([docs](https://spoonacular.com/food-api/docs)). The Free plan gives you 50 points per day and needs a backlink. Cook is $29/mo for 1,500 points, Culinarian $79/mo for 4,500 and Chef $149/mo for 10,000. A call usually costs "1 point per request plus 0.01 points per result". The [terms](https://spoonacular.com/food-api/terms) allow caching "for a maximum of 1 hour" (with prior written permission) and permanent storage of only the recipe ID, title and image URL. Our read: it is a fit for meal planners, and a poor fit for a pure calorie log.

**[Passio Nutrition AI](https://www.passio.ai/nutrition-ai)** is built for photo logging. It recognises foods and portions from an image, offers barcode and label lookup, and has SDKs for iOS, Android, Flutter and React Native. Starter is $99/mo for 1M tokens, Growth $599/mo for 5M and Pro $2,999/mo for 100M ([Passio pricing](https://passio.gitbook.io/nutrition-ai/getting-started/token-system-and-pricing)). Passio does not state a fixed token cost per image; its docs say usage depends on factors such as image size and model. We left out LogMeal because we could not verify its pricing today.

If you only need to read the printed nutrition panel, a general OCR service may be enough; see our [OCR API comparison](https://zeroraised.com/blog/best-ocr-api-for-indie-developers).

## Caching and attribution: the table that decides your schema

| API | What you may store | Attribution |
|---|---|---|
| USDA | Everything (CC0) | Requested |
| Open Food Facts | Everything, under the ODbL | Required for public use |
| FatSecret | Remove within 24 hours unless marked storable | Required (not on Premier) |
| Edamam | Basic: ID and label. Core/Plus: four nutrients too | Required on all plans |
| Spoonacular | 1 hour; keep only recipe ID, title, image URL | Backlink on Free |

Our read: store each log entry as `(user, source, food_id, quantity, logged_at)`, and keep nutrient values only where the licence allows. That way you can switch providers later without rewriting every user's diary.

## Health data and accuracy

We are not giving medical or dietary advice. FatSecret bans using its API for health advice, and Spoonacular asks you to display allergy disclaimers. In our view, you should show each food's data source and let users edit values. Label numbers as estimates and treat allergen fields as hints. Food logs and weight are sensitive data, so collect the minimum.

## Decision table

This is our editorial advice, based on the published prices and terms above.

| Your situation | Our pick |
|---|---|
| MVP tracker, $0 budget | USDA + Open Food Facts |
| Barcode scans essential, $0 budget | Open Food Facts |
| Pre-revenue startup wanting one commercial API | FatSecret Premier Free |
| Natural-language logging on a small budget | Edamam Basic, $14/mo |
| Photo logging is the product | Passio, from $99/mo |
| Recipes and meal plans | Spoonacular, from $29/mo |
| International data with no attribution | FatSecret Premier |
| Must store full nutrient data forever | USDA and Open Food Facts |

Once you launch, track how often searches and scans return nothing. Our read: that "no results" rate tells you when to pay for a bigger database. Our [mobile app analytics guide](https://zeroraised.com/blog/best-mobile-app-analytics-for-indie-developers) covers free tools for that.

## Frequently asked questions

### What is the best free nutrition API?

For most indie apps, USDA FoodData Central plus Open Food Facts. USDA data is public domain under CC0 1.0 with a default limit of 1,000 requests per hour, and Open Food Facts covers packaged products by barcode under the ODbL. Both let you keep the data in your own database, which most commercial APIs do not allow.

### Which nutrition API has barcode lookup for free?

Open Food Facts lets you read products by barcode for free, at up to 15 product requests per minute per IP address, and its docs ask you to send a custom User-Agent. FatSecret's Premier Free tier includes barcode scanning for eligible startups, non-profits, but its free Basic tier does not.

### Can I cache or store data from a nutrition API?

It depends on the provider. USDA data is public domain. Open Food Facts publishes full database exports under the ODbL with attribution. FatSecret's terms say content must be removed or replaced within 24 hours unless marked storable indefinitely. Spoonacular allows caching for a maximum of 1 hour. Edamam lets Core and Plus plans cache only protein, net carbs, total fat and kcal, behind a user's password.

### Which API is best for natural-language food logging like '2 eggs and toast'?

Edamam's Food Database API parses search strings into foods with quantities on every plan, from $14/mo prepaid. FatSecret offers natural language processing as a paid add-on to Premier.

### Do I need a medical disclaimer in a calorie app?

Some providers require one. FatSecret's terms say you may not use its API to provide diet, nutrition or health advice, guidance or diagnosis, and that you must make clear the information is not a substitute for medical consultation. Spoonacular's terms ask you to display disclaimers about potential inaccuracies relating to allergies. This is not legal or medical advice; read each provider's terms.

## Launch your food app

ZeroRaised is a launch directory for products built without institutional VC. When your tracker is ready, work through our [product launch checklist for bootstrapped makers](https://zeroraised.com/blog/product-launch-checklist-for-bootstrapped-makers), then [submit your product](https://zeroraised.com/submit) for free. For more API comparisons, [join the ZeroRaised newsletter](https://zeroraised.com/newsletter).

## Sources

- [USDA FoodData Central API guide](https://fdc.nal.usda.gov/api-guide/), last checked 24 Nov 2026
- [Open Food Facts API documentation](https://openfoodfacts.github.io/openfoodfacts-server/api/), last checked 24 Nov 2026
- [Open Food Facts data and licence page](https://world.openfoodfacts.org/data), last checked 24 Nov 2026
- [FatSecret Platform API editions](https://platform.fatsecret.com/api-editions), last checked 24 Nov 2026
- [FatSecret Platform API overview](https://platform.fatsecret.com/api), last checked 24 Nov 2026
- [FatSecret Platform terms and conditions](https://platform.fatsecret.com/terms), last checked 24 Nov 2026
- [Edamam Food Database API](https://developer.edamam.com/food-database-api), last checked 24 Nov 2026
- [Edamam Nutrition Analysis API](https://developer.edamam.com/edamam-nutrition-api), last checked 24 Nov 2026
- [Spoonacular pricing](https://spoonacular.com/food-api/pricing), last checked 24 Nov 2026
- [Spoonacular documentation](https://spoonacular.com/food-api/docs), last checked 24 Nov 2026
- [Spoonacular terms](https://spoonacular.com/food-api/terms), last checked 24 Nov 2026
- [Passio Nutrition AI](https://www.passio.ai/nutrition-ai), last checked 24 Nov 2026
- [Passio token system and pricing](https://passio.gitbook.io/nutrition-ai/getting-started/token-system-and-pricing), last checked 24 Nov 2026

## Frequently asked questions

### What is the best free nutrition API?

For most indie apps, USDA FoodData Central plus Open Food Facts. USDA data is public domain under CC0 1.0 with a default limit of 1,000 requests per hour, and Open Food Facts covers packaged products by barcode under the ODbL. Both let you keep the data in your own database, which most commercial APIs do not allow.

### Which nutrition API has barcode lookup for free?

Open Food Facts lets you read products by barcode for free, at up to 15 product requests per minute per IP address, and its docs ask you to send a custom User-Agent. FatSecret's Premier Free tier includes barcode scanning for eligible startups, non-profits, but its free Basic tier does not.

### Can I cache or store data from a nutrition API?

It depends on the provider. USDA data is public domain. Open Food Facts publishes full database exports under the ODbL with attribution. FatSecret's terms say content must be removed or replaced within 24 hours unless marked storable indefinitely. Spoonacular allows caching for a maximum of 1 hour. Edamam lets Core and Plus plans cache only protein, net carbs, total fat and kcal, behind a user's password.

### Which API is best for natural-language food logging like '2 eggs and toast'?

Edamam's Food Database API parses search strings into foods with quantities on every plan, from $14/mo prepaid. FatSecret offers natural language processing as a paid add-on to Premier.

### Do I need a medical disclaimer in a calorie app?

Some providers require one. FatSecret's terms say you may not use its API to provide diet, nutrition or health advice, guidance or diagnosis, and that you must make clear the information is not a substitute for medical consultation. Spoonacular's terms ask you to display disclaimers about potential inaccuracies relating to allergies. This is not legal or medical advice; read each provider's terms.


