Food calorie API for developers
Food calorie API: REST search, barcode lookup, and macros per 100 g across 6.8M+ foods. 1,000 free calls/month.
- No credit card for free tier
- 99.9% uptime target
Built for health and fitness products
Search, barcode, and macros for mobile, web, and AI products. What each response returns and what each plan includes are on the nutrition API page. Catalog size, authentication, and the no-download rule are on the food database API page.
Food API search
Multi-word matching, verified filters, suggest, and barcode lookup in one food API.
Nutrition API data
Macros per 100g, full nutrient arrays, and serving metadata from the catalog.
Low-latency search
Redis-backed caching and indexed Postgres search for calorie API responses.
Secure by default
API keys hashed at rest, plan-based rate limits, and Stripe-verified billing.
Usage analytics
Track requests per endpoint in your dashboard with exportable reports.
Developer-first nutrition API
OpenAPI docs, predictable JSON, and a public playground to try before you sign up.
- 6.8M+foods in database
- 1,000free calls/month
- UPC + EANbarcode lookup with fallback
- REST + JSONfood nutrition API
What format are API responses in?
All endpoints return JSON. Food objects include per-100g macro values, a structured nutrients array, and serving metadata, so responses map directly to meal-logging data models.
- Protein
- 1.2 g
- Carbs
- 6.7 g
- Fat
- 2.1 g
- Protein
- 6.3 g
- Carbs
- 57.5 g
- Fat
- 30.9 g
- Protein
- 25.4 g
- Carbs
- 0 g
- Fat
- 8.1 g
Calorie MCP
Calorie data inside Claude and Cursor
A calorie MCP lets Claude Code and Cursor look up calories and macros instead of guessing. The catalog covers 6.8M+ foods.
- Search foods
- Food photo calories
- Portion calculator
- Recipe macros
- Barcode lookup
- Daily calorie target
Personal use is $29 a month or $228 a year.
You
How many calories and how much protein are in 180 g of cooked chicken breast?
search_foods
Cooked chicken breast, per 100 g.
{ "kcal": 165, "protein_g": 31 } per 100 gcalculate_portion
Same food, scaled to 180 g.
{ "kcal": 297, "protein_g": 55.8 }
Try our food calorie API live
Run a real search against our public food API demo endpoint, no signup required.
Why developers choose our food calorie API
Calorie API is a production-ready food calorie API for teams shipping meal tracking, macro logging, and barcode scan features in health and fitness apps. Search, autocomplete, and verified macros per 100g let a product log meals without maintaining a private food catalog.
Explore the API documentation, compare pricing plans, or read answers on the FAQ page. For standards on nutrition labeling, see the FDA nutrition facts guidance.
Food API endpoints built for scale
Use REST endpoints with JSON responses and API key authentication. The food API supports multi-word search, verified-food filters, UPC and EAN barcode lookup, and autocomplete suggest. Rate limits and monthly quotas scale from a free developer tier to high-volume commercial use, so your calorie API integration grows with your user base.
Nutrition API data you can trust
Every nutrition API response includes structured macros per 100g, micronutrients when available, and serving metadata for logging apps. Whether you are building a calorie counter, meal planner, or wellness coach, the nutrition API delivers consistent JSON payloads that map cleanly to your data models.
Catalog coverage
Search a large catalog with brand, category, and nutrient filters. Barcode lookup falls back to Open Food Facts when a product is not yet local, so a food calorie API can cover packaged goods without a second parser.
Popular use cases
Teams use the API to power fitness and calorie-tracking apps, meal planners, healthcare and dietitian software, grocery and retail scanning, and wellness and corporate-health platforms. Product-specific capabilities are covered on the nutrition API hub, plus the barcode nutrition API, food database API, meal tracking API, and nutrition analysis API pages.
Integrate in minutes
Create an account, generate an API key in the dashboard, and make your first request. The quickstart guide walks through authentication and your first food search in curl, JavaScript, and Python. Framework walkthroughs for React Native, Next.js, Flutter, and Node.js live in the integration guides.
How Calorie API compares
Evaluating nutrition data providers? See how Calorie API stacks up against Nutritionix, Edamam, USDA FoodData Central, Spoonacular, FatSecret, and Open Food Facts in our nutrition API comparison, including authentication, free-tier limits, barcode coverage, and migration notes.
From the developer blog
The developer blog goes deeper on choosing and migrating between nutrition data providers. Start with the best food and nutrition APIs roundup, or the Edamam API alternative walkthrough for a concrete migration example with code. If cost decides it, the free nutrition API guide covers what the free tier includes.
Food calorie API: frequently asked questions
Answers for developers evaluating the food calorie API, search, and barcode lookup.
What is Calorie API?
Calorie API is a REST API for nutrition and food data: search, autocomplete, barcode lookup, and macro nutrients per 100g. It is designed for health, fitness, and meal-tracking applications.
How do I authenticate requests?
Send your API key in the X-API-Key header, or use a JWT from the developer dashboard after signing in. Public demo search on the homepage is IP-rate-limited and does not require a key.
What happens when a barcode is not found?
Barcode lookup checks the local food database first and automatically falls back to Open Food Facts. If neither source has the product, the API returns HTTP 404 with a "Food not found for barcode" message. Handle this by offering manual food search in your app.
How does the autocomplete suggest endpoint work?
GET /api/v1/search/suggest?q={prefix} returns lightweight results (id, name, brand_name) for typeahead UIs, up to 20 items per request. Debounce keystrokes in your client and fetch full nutrition data with the food details endpoint after selection.
How many foods are in the database?
The food database covers 6.8M+ foods spanning generic foods, branded products, and restaurant items, with barcode lookup extending coverage through Open Food Facts.
Is there a free tier for development?
Yes. The Free plan includes a monthly request quota intended for development, prototyping, and personal projects. Create an account, generate an API key, and start making requests.
Ready to integrate?
Create an account, generate an API key, and start searching in minutes.
