Your Move Nutrition API
Search foods, get nutrition data, barcode lookup, and AI food logging
Search foods, get nutrition data, barcode lookup, and AI food logging
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ymove-app:ymove-app-nutrition-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: YMove Fitness Nutrition API
version: 2.5.0
description: Access 2005+ professional exercise videos, a comprehensive food & nutrition database, recipe search, and AI-powered meal plan generation. Features include rate limiting, monthly exercise caps, and video access protection. Video URLs are pre-signed and expire after 48 hours. Always fetch fresh exercise data before displaying videos. Sign up at https://ymove.app/exercise-api/signup for a free trial.
contact:
email: contact@ymove.app
url: https://ymove.app/exercise-api
servers:
- url: https://exercise-api.ymove.app/api/v2
description: Production
security:
- ApiKeyHeader: []
- ApiKeyQuery: []
tags:
- name: Nutrition
description: Search foods, get nutrition data, barcode lookup, and AI food logging
paths:
/foods:
get:
summary: Search the food database
operationId: searchFoods
tags:
- Nutrition
parameters:
- name: query
in: query
required: true
schema:
type: string
description: Search term (e.g. "chicken breast")
- name: source
in: query
schema:
type: string
enum:
- usda
- openfoodfacts
description: Filter results to a single data source.
- name: usdaOnly
in: query
schema:
type: boolean
description: Convenience alias for source=usda. Returns only USDA FoodData Central entries - ideal when you want clean generic foods without branded packaged-product clutter.
- name: country
in: query
schema:
type: string
minLength: 2
maxLength: 2
description: ISO 3166-1 alpha-2 country code (e.g. "FR", "US", "NL"). Soft-boosts results tagged with this country in the ranking, so Open Food Facts products local to your users surface first. Does not hard-filter - generic USDA and world results still appear. Also accepted as `cc`.
- name: per
in: query
schema:
type: string
enum:
- 100g
- 100ml
description: Normalize nutrition values to a per-100g or per-100ml basis instead of the native serving size.
- name: page
in: query
schema:
type: integer
default: 1
minimum: 1
description: Page number
- name: pageSize
in: query
schema:
type: integer
default: 20
minimum: 1
maximum: 50
description: Results per page
responses:
'200':
description: Paginated list of foods with nutrition data
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Food'
pagination:
$ref: '#/components/schemas/Pagination'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitError'
/foods/{id}:
get:
summary: Get full nutrition details for a food
operationId: getFood
tags:
- Nutrition
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Food ID or slug
responses:
'200':
description: Food with full nutrition data including micronutrients
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Food'
'404':
description: Food not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/foods/barcode/{upc}:
get:
summary: Look up a food product by barcode
operationId: getFoodByBarcode
tags:
- Nutrition
parameters:
- name: upc
in: path
required: true
schema:
type: string
description: UPC or EAN barcode number
- name: country
in: query
schema:
type: string
minLength: 2
maxLength: 2
description: ISO 3166-1 alpha-2 country code (e.g. "FR", "NL"). When provided, the Open Food Facts fallback is queried with the country locale so nutrition labels and serving descriptions come back localized where available. Also accepted as `cc`.
responses:
'200':
description: Food product with nutrition data
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Food'
'404':
description: Product not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/foods/log/text:
post:
summary: AI food logging from text description
operationId: analyzeFoodText
tags:
- Nutrition
description: Send a text description of a meal and get back identified foods with full nutrition data. Pro plan and above. Uses your nutrition analysis quota.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- text
properties:
text:
type: string
description: Text description of a meal (e.g. "grilled chicken with rice and broccoli")
maxLength: 2000
responses:
'200':
description: Identified foods with nutrition data
content:
application/json:
schema:
$ref: '#/components/schemas/FoodAnalysisResult'
'403':
description: Requires Pro plan or higher
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/foods/log/photo:
post:
summary: AI food logging from photo
operationId: analyzeFoodPhoto
tags:
- Nutrition
description: Send a base64-encoded photo of a meal and get back identified foods with full nutrition data. Pro plan and above. Uses your nutrition analysis quota.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- image
properties:
image:
type: string
description: Base64-encoded image of a meal (JPEG/PNG)
media_type:
type: string
enum:
- image/jpeg
- image/png
- image/webp
- image/gif
default: image/jpeg
responses:
'200':
description: Identified foods with nutrition data
content:
application/json:
schema:
$ref: '#/components/schemas/FoodAnalysisResult'
'403':
description: Requires Pro plan or higher
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/foods/log/audio:
post:
summary: AI food logging from voice audio
operationId: analyzeFoodAudio
tags:
- Nutrition
description: Send a base64-encoded audio recording of someone describing a meal. The audio is transcribed and then analyzed like a text log; the response includes the transcript alongside identified foods with full nutrition data. Pro plan and above. Uses your nutrition analysis quota.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- audio
properties:
audio:
type: string
description: Base64-encoded audio recording (max 25MB encoded)
format:
type: string
enum:
- mp3
- mp4
- m4a
- wav
- webm
- ogg
- flac
default: mp3
responses:
'200':
description: Transcript plus identified foods with nutrition data
content:
application/json:
schema:
$ref: '#/components/schemas/FoodAnalysisResult'
'403':
description: Requires Pro plan or higher
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/foods/glycemic/ingredients:
post:
summary: Glycemic analysis of an ingredient list
operationId: analyzeIngredientsGlycemic
tags:
- Nutrition
description: Send the ingredients of one meal, with weights where you know them, and get a glycemic index per ingredient, a glycemic load computed from the matched catalog carbohydrate and fiber figures, meal-level totals, and advice for lowering the load. Same response shape as the photo endpoint, without the identification step. Max 30 items. Pro plan and above, and the key must have accepted the glycemic data waiver (POST /foods/glycemic/waiver) or the endpoint returns 403 glycemic_waiver_required. Uses your nutrition analysis quota.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- items
properties:
items:
type: array
maxItems: 30
items:
type: object
required:
- name
properties:
name:
type: string
description: Ingredient name, USDA-style naming matches best
grams:
type: number
description: Portion in grams. Omit and the API estimates a typical portion.
responses:
'200':
description: Ingredients with glycemic index and load, meal totals, and advice
content:
application/json:
schema:
$ref: '#/components/schemas/GlycemicAnalysisResult'
'403':
description: Requires Pro plan or higher, or the glycemic waiver has not been accepted
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/foods/glycemic/waiver:
get:
summary: Read the glycemic data waiver and this key's acceptance status
operationId: getGlycemicWaiver
tags:
- Nutrition
description: Returns the current waiver version, its full text as clauses and as plain text, and whether this key has accepted it.
responses:
'200':
description: Waiver text and acceptance status
post:
summary: Accept the glycemic data waiver for this key
operationId: acceptGlycemicWaiver
tags:
- Nutrition
description: One-time acceptance that unlocks the glycemic endpoints for this key. The name given is recorded with the timestamp and originating IP as the acceptance record. Acceptance is stored against the waiver version, so a substantive change to the text asks every key again.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- accept
- accepted_by
properties:
accept:
type: boolean
enum:
- true
accepted_by:
type: string
description: Full name of the person accepting on behalf of the account holder
responses:
'200':
description: Acceptance recorded
'400':
description: accept must be true, or accepted_by missing
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/foods/glycemic/photo:
post:
summary: Glycemic analysis of a meal photo
operationId: analyzeMealGlycemic
tags:
- Nutrition
description: Send a base64-encoded photo of a meal and get back its estimated ingredients with a glycemic index per ingredient, a glycemic load computed from the matched catalog carbohydrate and fiber figures, a meal-level load and category, and concrete advice for lowering the glycemic impact. Ingredient swaps in the advice are re-costed against the catalog so the projected meal load is grounded in the same data. Pro plan and above, and the key must have accepted the glycemic data waiver (POST /foods/glycemic/waiver) or the endpoint returns 403 glycemic_waiver_required. Uses your nutrition analysis quota.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- image
properties:
image:
type: string
description: Base64-encoded image of a meal (JPEG/PNG)
media_type:
type: string
enum:
- image/jpeg
- image/png
- image/webp
- image/gif
default: image/jpeg
responses:
'200':
description: Ingredients with glycemic index and load, meal totals, and advice
content:
application/json:
schema:
$ref: '#/components/schemas/GlycemicAnalysisResult'
'403':
description: Requires Pro plan or higher
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
RateLimitError:
type: object
required:
- error
- retryAfterMs
properties:
error:
type: string
retryAfterMs:
type: integer
description: Milliseconds until the rate limit resets
upgradeUrl:
type: string
description: URL to upgrade your plan
availablePlans:
type: array
items:
type: string
GlycemicAnalysisResult:
type: object
properties:
data:
type: object
properties:
items:
type: array
items:
type: object
properties:
name:
type: string
description: AI-identified ingredient name
estimatedGrams:
type: number
description: Estimated portion in grams
confidence:
type: string
enum:
- high
- medium
- low
matchedFood:
type:
- object
- 'null'
description: Matched food from the database (null if no match)
properties:
id:
type: string
name:
type: string
servingSizeG:
type: number
nutrition:
type:
- object
- 'null'
properties:
calories:
type: number
protein:
type: number
fat:
type: number
carbs:
type: number
glycemicIndex:
type:
- number
- 'null'
description: Glucose-referenced GI (0-110). Null for foods with no meaningful available carbohydrate.
giBasis:
type: string
enum:
- published
- estimated
- not_applicable
description: Whether the GI is a published value, inferred from a similar food, or not applicable
matchQuality:
type:
- string
- 'null'
enum:
- ok
- state_mismatch
- unrelated
- null
description: Quality of the catalog match. 'state_mismatch' means the right food in the wrong preparation (carbohydrate per gram can be several-fold off); an 'unrelated' match is dropped, so it never appears with a matchedFood attached.
fiberG:
type:
- number
- 'null'
availableCarbsG:
type:
- number
- 'null'
description: Carbohydrate minus fiber, from the matched catalog food
glycemicLoad:
type:
- number
- 'null'
description: glycemicIndex x availableCarbsG / 100. Null when the ingredient could not be matched.
glycemicLoadCategory:
type:
- string
- 'null'
enum:
- low
- medium
- high
- null
totals:
type: object
properties:
calories:
type: number
protein:
type: number
fat:
type: number
carbs:
type: number
fiber:
type: number
availableCarbs:
type: number
meal:
type: object
properties:
glycemicLoad:
type: number
description: Sum of the matched ingredients glycemic loads
glycemicLoadCategory:
type: string
enum:
- low
- medium
- high
estimatedGlycemicIndex:
type:
- number
- 'null'
description: Available-carbohydrate weighted mean GI of the meal
unmatchedItems:
type: array
items:
type: string
description: Ingredients with no catalog match, and therefore no load contribution
flaggedItems:
type: array
items:
type: string
description: Ingredients counted in the total whose match was flagged state_mismatch
scale:
type: object
description: The cut-offs used for the category fields
properties:
item:
type: string
meal:
type: string
advice:
type: array
description: Concrete changes to this meal that lower its glycemic impact
items:
type: object
properties:
suggestion:
type: string
rationale:
type: string
swap:
type: object
description: Present when the advice is an ingredient swap. Numbers are recomputed for the same gram weight when the replacement matches the catalog.
properties:
from:
type: string
to:
type: string
glycemicIndex:
type:
- number
- 'null'
matchedFood:
type: object
properties:
id:
type: string
name:
type: string
glycemicLoad:
type:
- number
- 'null'
glycemicLoadDelta:
type:
- number
- 'null'
description: Negative means the swap lowers the load
projectedMealGlycemicLoad:
type:
- number
- 'null'
disclaimer:
type: string
usage:
type: object
properties:
analyses_used:
type: integer
analyses_included:
type: integer
is_overage:
type: boolean
overage_charge:
type: number
Food:
type: object
description: 'All weights default to grams unless noted. Sodium and cholesterol are in milligrams. Three name fields: `shortName` is a compact label for search results and lists. `displayName` is a detailed label that distinguishes similar foods (includes cooking method, grade, brand). `name` is the raw database entry. Use `shortName` for compact views, `displayName` for detail views. The database includes international products from OpenFoodFacts with names in their original language (Dutch, French, German, Spanish, and more). The API is optimized for English, but searching in other languages works for branded and international products.'
properties:
id:
type: string
fdcId:
type:
- integer
- 'null'
description: USDA FoodData Central ID
name:
type: string
description: 'Full original name from the source database (e.g. USDA). Often long and technical - not recommended for UI display. Example: "Chicken, broilers or fryers, breast, skinless, boneless, meat only, cooked, grilled"'
shortName:
type: string
description: 'Short, search-friendly label. Use this for search results, autocomplete dropdowns, and compact list views where space is limited. Example: "Chicken Breast", "Brown Rice", "Granola Bar"'
displayName:
type: string
description: 'Detailed human-readable name that distinguishes similar foods. Use this for food detail pages, nutrition labels, and anywhere users need to tell similar foods apart. Includes cooking method, grade, and preparation for USDA foods. Includes brand in parentheses for packaged products. Examples: "Chicken Breast (grilled, lean)", "Top Round Steak (choice, lean, broiled)", "Granola Bar (Nature Valley)"'
brand:
type:
- string
- 'null'
description: Brand name for packaged/branded products. Null for generic foods (e.g. USDA entries). Also included in displayName when present.
category:
type:
- string
- 'null'
description: Food category (e.g. "Poultry Products", "Fruits and Fruit Juices", "Cereals")
servingSize:
type: number
description: 'Serving size in grams. All nutritional values (calories, protein, fat, etc.) are per this serving size. To calculate nutrition per 100g: divide each value by servingSize and multiply by 100.'
servingDescription:
type:
- string
- 'null'
description: Human-readable serving description (e.g. "1 cup (240ml)", "1 medium (182g)", "1 slice (28g)"). Display this to users alongside servingSize for context.
calories:
type: number
description: Calories (kcal) per serving
protein:
type: number
description: Protein per serving in grams. All macro values are in grams unless noted.
fat:
type: number
description: Total fat per serving (grams)
carbs:
type: number
description: Carbohydrates per serving (grams)
fiber:
type:
- number
- 'null'
description: Dietary fiber per serving (grams)
sugar:
type:
- number
- 'null'
description: Sugar per serving (grams)
sodium:
type:
- number
- 'null'
description: Sodium per serving in milligrams (not grams - only sodium and cholesterol use mg)
cholesterol:
type:
- number
- 'null'
description: Cholesterol per serving in milligrams
saturatedFat:
type:
- number
- 'null'
description: Saturated fat per serving (grams)
barcode:
type:
- string
- 'null'
imageUrl:
type:
- string
- 'null'
description: Product image URL. Sourced from Open Food Facts for branded products and enriched from Open Food Facts / curated staples for generic USDA items. May be null when no image has been located for the food.
source:
type: string
description: Data source (e.g. "usda", "openfoodfacts")
country:
type:
- string
- 'null'
description: ISO 3166-1 alpha-2 country code (e.g. "FR", "US", "NL") when the product is tagged to a specific country. Null for USDA generic items and untagged products.
example:
id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
fdcId: 171077
name: Chicken, broilers or fryers, breast, skinless, boneless, meat only, cooked, grilled
shortName: Chicken Breast
displayName: Chicken Breast (grilled, lean)
brand: null
category: Poultry Products
servingSize: 100
servingDescription: 100g
calories: 165
protein: 31
fat: 3.6
carbs: 0
fiber: 0
sugar: 0
sodium: 74
cholesterol: 85
saturatedFat: 1
barcode: null
source: usda
Error:
type: object
required:
- error
properties:
error:
type: string
message:
type: string
FoodAnalysisResult:
type: object
properties:
data:
type: object
properties:
items:
type: array
items:
type: object
properties:
name:
type: string
description: AI-identified food name
estimatedGrams:
type: number
description: Estimated portion in grams
confidence:
type: string
enum:
- high
- medium
- low
description: AI confidence level
matchedFood:
type:
- object
- 'null'
description: Matched food from the database (null if no match)
properties:
id:
type: string
name:
type: string
servingSizeG:
type: number
nutrition:
type:
- object
- 'null'
description: Calculated nutrition based on matched food and estimated portion (null if no match)
properties:
calories:
type: number
protein:
type: number
fat:
type: number
carbs:
type: number
totals:
type: object
properties:
calories:
type: number
protein:
type: number
fat:
type: number
carbs:
type: number
usage:
type: object
properties:
analyses_used:
type: integer
analyses_included:
type: integer
is_overage:
type: boolean
overage_charge:
type: number
Pagination:
type: object
required:
- page
- pageSize
- total
- totalPages
properties:
page:
type: integer
pageSize:
type: integer
total:
type: integer
totalPages:
type: integer
securitySchemes:
ApiKeyHeader:
type: apiKey
in: header
name: X-API-Key
ApiKeyQuery:
type: apiKey
in: query
name: api_key