Powered by USDA FoodData Central + Open Food Facts (3M+ products from 180+ countries)
A complete nutrition API powered by USDA FoodData Central and Open Food Facts. Search foods, get full nutrition facts and nutritional values: calories, macros and micronutrients. Generate meal plans and look up packaged products from 180+ countries worldwide.
Food & ingredient search - full food database with macros + micronutrientsTry search demo →
Search our food database live. Results come straight from the API.
Values per:
Country:
USDA + Open Food Facts
Nutrition data from both USDA FoodData Central and Open Food Facts. USDA provides the gold standard for generic foods, while Open Food Facts adds millions of branded and packaged products from 180+ countries worldwide.
Macro Tracking
Get protein, carbs, fat, fiber, and sugar per serving. Build calorie counters and macro tracking features.
Meal Plan Generation
Generate meal plans by calorie target, dietary preference, and macro split. Ready-to-use in your fitness app.
Exercise + Nutrition
Combine with the Exercise API for a complete fitness platform. Workouts, nutrition, and meal plans in one integration.
AI Food Logging
Send a photo or text description of a meal and get identified foods with full nutrition data. Powered by AI.
Barcode Lookup
Look up packaged food products by barcode (UPC/EAN). Get instant nutrition data for any scanned product. Barcode API details →
USDA-First Ranking
Generic USDA foods are ranked above branded duplicates so searches for "chicken breast" or "brown rice" surface clean reference data, not packaged noise. Flip on usdaOnly=true for a pure USDA feed.
Country Locale Boost
Pass a 2-letter ISO country code and Open Food Facts products tagged to that country rank higher, so users in the Netherlands, France, Germany, or Brazil see local products first. Falls back to worldwide results when local matches are thin.
Product Images Included
Every food includes an imageUrl when available, pulled from Open Food Facts for branded items and enriched from curated staple mappings for generic USDA foods. Render thumbnails directly in your food search UI.
Food Database with Full Nutrition Data
Powered by USDA FoodData Central and Open Food Facts, covering generic foods and millions of branded products from 180+ countries.
Chicken Breast (grilled)
165
Cal
31g
Protein
0g
Carbs
3.6g
Fat
0g
Fiber
Brown Rice (cooked)
216
Cal
5g
Protein
45g
Carbs
1.8g
Fat
3.5g
Fiber
Broccoli (steamed)
55
Cal
3.7g
Protein
11g
Carbs
0.6g
Fat
5.1g
Fiber
Salmon (baked)
208
Cal
20g
Protein
0g
Carbs
13g
Fat
0g
Fiber
Sweet Potato (baked)
103
Cal
2.3g
Protein
24g
Carbs
0.1g
Fat
3.8g
Fiber
Greek Yogurt (plain)
100
Cal
17g
Protein
6g
Carbs
0.7g
Fat
0g
Fiber
Almonds (raw)
579
Cal
21g
Protein
22g
Carbs
50g
Fat
12.5g
Fiber
Eggs (whole, boiled)
155
Cal
13g
Protein
1.1g
Carbs
11g
Fat
0g
Fiber
Sample data per 100g serving.
Food
Calories
Protein
Carbs
Fat
Fiber
Chicken Breast (grilled)
165
31g
0g
3.6g
0g
Brown Rice (cooked)
216
5g
45g
1.8g
3.5g
Broccoli (steamed)
55
3.7g
11g
0.6g
5.1g
Salmon (baked)
208
20g
0g
13g
0g
Sweet Potato (baked)
103
2.3g
24g
0.1g
3.8g
Greek Yogurt (plain)
100
17g
6g
0.7g
0g
Almonds (raw)
579
21g
22g
50g
12.5g
Eggs (whole, boiled)
155
13g
1.1g
11g
0g
Sample data per 100g serving. Full API returns complete micronutrient profiles.
Simple REST API
Search foods, get nutrition data, and generate meal plans with a few API calls.
# Search the food database
curl -H "X-API-Key: YOUR_KEY" \
"https://exercise-api.ymove.app/api/v2/foods?q=chicken+breast"
# USDA-only: clean generic foods, no branded noise
curl -H "X-API-Key: YOUR_KEY" \
"https://exercise-api.ymove.app/api/v2/foods?q=rice&usdaOnly=true"
# Country locale: boost products local to your users (ISO alpha-2)
curl -H "X-API-Key: YOUR_KEY" \
"https://exercise-api.ymove.app/api/v2/foods?q=yoghurt&country=NL"
# Get nutrition details for a food (response includes imageUrl)
curl -H "X-API-Key: YOUR_KEY" \
"https://exercise-api.ymove.app/api/v2/foods/chicken-breast-grilled"
# Generate a meal plan
curl -H "X-API-Key: YOUR_KEY" \
"https://exercise-api.ymove.app/api/v2/mealplans/generate?calories=2000&diet=high_protein"
# Barcode lookup
curl -H "X-API-Key: YOUR_KEY" \
"https://exercise-api.ymove.app/api/v2/foods/barcode/041631000564"
# AI food logging (photo)
curl -X POST -H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"image": "<base64-encoded-image>", "media_type": "image/jpeg"}' \
"https://exercise-api.ymove.app/api/v2/foods/log/photo"
# AI food logging (text)
curl -X POST -H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "grilled chicken with rice and broccoli"}' \
"https://exercise-api.ymove.app/api/v2/foods/log/text"
API Endpoints
Nutrition API endpoints for food search, nutrient lookup, and meal plan generation.
GET
/api/v2/foods?query=...&usdaOnly=true&country=NL
Search the food database by name. Returns nutrition data including calories, protein, carbs, fat, micronutrients, and imageUrl. Supports usdaOnly=true to restrict to USDA generic foods and country=XX (ISO alpha-2) to boost locale-matched Open Food Facts products.
GET
/api/v2/foods/{id}
Get full nutrition details for a specific food item, including all vitamins, minerals, serving sizes, and product image.
GET
/api/v2/mealplans/generate
Generate a daily or weekly meal plan by calorie target, macro split, and dietary preferences.
GET
/api/v2/foods/barcode/{upc}?cc=nl
Look up a food product by barcode (UPC/EAN). Returns full nutrition data for packaged foods. Pass cc=XX (ISO alpha-2) to get localized nutrition labels and serving descriptions when Open Food Facts has them.
POST
/api/v2/foods/log/text
AI food logging from text. Send a meal description and get identified foods with nutrition data. Pro plan and above.
POST
/api/v2/foods/log/photo
AI food logging from photo. Send a meal image and get identified foods with nutrition data. Pro plan and above.
Powered by USDA FoodData Central + Open Food Facts
We combine two best-in-class data sources: USDA FoodData Central for the gold standard in generic food nutrition data, and Open Food Facts for millions of branded and packaged products from over 180 countries. Both are open data with no licensing fees.
USDA FoodData Central
Public domain US government data
Full macro and micronutrient profiles
Used by MyFitnessPal, Cronometer, and clinical software
Ideal for generic foods: chicken breast, rice, broccoli
Open Food Facts
3M+ branded products with barcode lookup
180+ countries including US, UK, France, Germany, Spain, Italy, Brazil, India, Japan, Australia, and more
Community-maintained and continuously growing
Ideal for packaged foods and local products worldwide
Worldwide Food Coverage
Open Food Facts is the world's largest open food database, with products from every continent. The largest databases are in France, the United States, Germany, United Kingdom, Spain, Italy, Belgium, Switzerland, Netherlands, Australia, Canada, Poland, Brazil, Mexico, India, Sweden, Japan, and Argentina, with coverage growing daily as contributors worldwide scan and add products.
The Complete Fitness API Platform
Combine nutrition data with our exercise API to build a full fitness app. One API key, one integration.
Build calorie counters and macro trackers on top of the YMove nutrition API.
YMove is a calorie tracking api and calorie counter api in one. Every food row returned from GET /api/v2/foods includes per-100g and per-serving calories, plus a full macro profile (protein, carbs, fat, fiber, sugar) and a micronutrient breakdown. That makes it a drop-in macro tracking api for any fitness, weight-loss, or meal-logging app.
The food calories api is backed by USDA FoodData Central for clean generic foods and Open Food Facts for branded products with barcodes. Pass usdaOnly=true when you only want generic reference foods (chicken breast, rice, oats), or query by barcode for packaged items. AI food logging from text and photo turns any meal description into structured nutrition data you can save to your user's daily calorie log.
Calorie tracking api:GET /api/v2/foods?q=... returns calories per serving for every match.
Calorie counter api:combine search with POST /api/v2/foods/log/text and /log/photo for one-tap meal logging.
Macro tracking api:protein, carbs, fat, fiber, sugar on every food row, no extra request needed.
Food calories api:USDA-grade calorie data per gram, per serving, and per common household measure.
Average exercise video is 10–15 seconds, yoga poses around 30 seconds. 10,000 minutes equals roughly 40,000 exercise video plays or 20,000 yoga pose plays.
Ready to Build?
Start your free trial and get API access to nutrition data, exercise videos, and workout generation.