REST API

Nutrition & Food Database API

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 calories and macros, generate meal plans, and look up packaged products from 180+ countries worldwide.

Try It

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.

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.

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.

698+

HD Exercise Videos

Exercise API →

3M+

Food Products

USDA + Open Food Facts

AI

Workout Generation

Workout API →

Meal

Plan Generation

Nutrition API

500+

Recipes

Recipe API →

Calorie Tracker API and Macro Tracking

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.

Pair the nutrition data with the exercise api, workout api, meal plan generator, and AI recipe generator under one API key to ship a complete fitness, calorie tracking, and meal planning app.

How YMove Compares

The only nutrition API that includes exercise videos, workout generation, and recipe search in one plan.

USDA Food Database

YMove

Edamam

Nutritionix

Spoonacular

Open Food Facts (180+ countries)

YMove

Edamam

Nutritionix

Spoonacular

Macro Tracking

YMove

Edamam

Nutritionix

Spoonacular

Meal Plan Generation

YMove

Edamam

Nutritionix

Spoonacular

AI Food Logging

YMove

Edamam

Nutritionix

Spoonacular

Barcode Lookup

YMove

Edamam

Nutritionix

Spoonacular

Exercise Videos

YMove

Edamam

Nutritionix

Spoonacular

Recipe Search

YMove

Edamam

Nutritionix

Spoonacular

Workout Generation

YMove

Edamam

Nutritionix

Spoonacular

Starting Price

$19/mo

YMove

$9/mo

Edamam

Enterprise

Nutritionix

$5/mo

Spoonacular

All-in-One

$19/mo

YMove

$58+/mo

Edamam

N/A

Nutritionix

$34+/mo

Spoonacular

Pricing

Simple, Usage-Based Pricing

Pay for what you use. All plans include the full exercise library with 698+ videos, yoga poses, workout generation, and program builder.

MonthlyYearly

Starter

For apps getting started with exercise content.

$19/mo

Start Free Trial
  • 10,000 video minutes/mo (~40K plays)
  • Full exercise library
  • Watermarked videos
  • Workout & program generation
  • Nutrition & recipe API
  • 10 AI form analyses/mo
  • 1 brand license
  • Email support

Pro

Clean, unwatermarked videos for your app.

$29/mo

Start Free Trial
  • 25,000 video minutes/mo (~100K plays)
  • Full exercise library
  • Clean unwatermarked videos
  • Workout & program generation
  • Nutrition & recipe API
  • 25 AI form analyses/mo
  • 25 AI food photo analyses/mo
  • 1 brand license
  • Email support

Scale

For growing platforms with higher volume needs.

$79/mo

Start Free Trial
  • 50,000 video minutes/mo (~200K plays)
  • Full exercise library
  • Clean unwatermarked videos
  • Workout & program generation
  • Nutrition & recipe API
  • 50 AI form analyses/mo
  • 50 AI food photo analyses/mo
  • 3 brand licenses
  • Priority support

Enterprise

For large platforms with custom needs.

$299/mo

Start Free Trial
  • 100,000 video minutes/mo (~400K plays)
  • Full exercise library
  • Clean unwatermarked videos
  • Workout & program generation
  • Nutrition & recipe API
  • 200 AI form analyses/mo
  • 200 AI food photo analyses/mo
  • 10 brand licenses
  • Dedicated support

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.

Start Free Trial