Food database
Food Database API
A food database API is for application developers putting nutrient data into software. Calorie API is that REST catalog: 6.8M+ foods, multi-word search, brand filters, verified foods, autocomplete, and barcode lookup. You query it. You do not download it.
- searchable foods
- 6.8M+ foods
- results per page (max)
- 100
- word match modes
- any / all
- autocomplete suggestions
- 20
What the Food Database API gives you
Multi-word ranking
Exact phrases rank first, then all-word and any-word matches, word order independent.
Verified foods filter
verified_only=true restricts results to curated entries with complete, quality-checked macros.
Autocomplete suggest
A lightweight suggest endpoint returns id, name, and brand for fast typeahead UIs.
Brands & categories
Filter search by brand and browse brand, category, and nutrient reference endpoints.
Complete macro data
Only foods with complete macro data are returned, no null-riddled results to clean up.
Predictable envelope
Paginated JSON (data, total, skip, limit) with stable food IDs you can cache aggressively.
Authentication is an API key in the X-API-Key header. Search returns paginated JSON with stable food IDs and macros per 100 g. The free tier is 1,000 calls a month for non-commercial use. A monetized app needs Plus or Enterprise.
Field lists are in the food search API reference. Monthly quotas and per-minute caps are on pricing, and 429 and 402 behavior is in rate limits. Try search in the playground without signing up.
curl "https://calorieapiadmin.com/api/v1/search/foods?q=greek+yogurt&verified_only=true" \ -H "X-API-Key: your_api_key_here"
Live plan quotas
Loaded from the public plans API. Limits apply per account, not per IP.
| Plan | Price | Calls / month | Requests / minute | Commercial |
|---|---|---|---|---|
| Free | $0/mo | 1K | 10/min | No |
| Basic | $15/mo | 20K | 30/min | No |
| Core | $50/mo | 150K | 50/min | No |
| Plus | $150/mo | 1M | 200/min | Yes |
| Enterprise | Enterprise | Custom | 1,000/min | Yes |
Commercial production sends X-API-Usage-Type: commercial. The pricing page is the full grid.
For application developers
This page is for people putting nutrient data into software: meal logs, grocery scans, and dietitian tools. The catalog is 6.8M+ foods. Search is ranked keywords. It does not parse a sentence such as "two eggs and toast."
Send the API key in the X-API-Key header. Search returns a paginated JSON envelope with stable food IDs. Macros are per 100 g. Barcode lookup uses the same nutrition shape and falls through to Open Food Facts. A code neither side knows is HTTP 404.
Query the catalog. Do not download it
Cache the foods your users log. IDs are stable. Walking page after page of search to build a private mirror is not permitted. If the requirement is a file you host yourself, USDA FoodData Central publishes reference data you can work from directly.
Non-commercial development starts at 1,000 calls a month, with no card. A monetized app needs Plus or Enterprise and the header X-API-Usage-Type: commercial. Current quotas are on the pricing page.
Food Database API: frequently asked questions
Who is a food database API for?
Application developers putting nutrient data into software. You call search, barcode, and food details. Your app stores the logs.
How large is the food database?
The catalog covers 6.8M+ foods across generic, branded, and restaurant foods, with barcode lookup extending coverage through Open Food Facts.
Can I download the database in bulk?
No. Query and cache the foods your users actually log. IDs are stable. Bulk catalog scraping is not permitted.
What does the free tier include?
The free plan is 1,000 calls a month for non-commercial use, with no card. Commercial production is Plus or Enterprise. The pricing page has the current quotas.
Start building today
Create a free account, generate an API key, and make your first request in minutes.
