Food
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
| Name | Type | Description |
|---|---|---|
| id | string | |
| fdcId | integernull | USDA FoodData Central ID |
| name | string | 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 |
| shortName | string | 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 | string | 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, an |
| brand | stringnull | Brand name for packaged/branded products. Null for generic foods (e.g. USDA entries). Also included in displayName when present. |
| category | stringnull | Food category (e.g. "Poultry Products", "Fruits and Fruit Juices", "Cereals") |
| servingSize | number | 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 | stringnull | Human-readable serving description (e.g. "1 cup (240ml)", "1 medium (182g)", "1 slice (28g)"). Display this to users alongside servingSize for context. |
| calories | number | Calories (kcal) per serving |
| protein | number | Protein per serving in grams. All macro values are in grams unless noted. |
| fat | number | Total fat per serving (grams) |
| carbs | number | Carbohydrates per serving (grams) |
| fiber | numbernull | Dietary fiber per serving (grams) |
| sugar | numbernull | Sugar per serving (grams) |
| sodium | numbernull | Sodium per serving in milligrams (not grams - only sodium and cholesterol use mg) |
| cholesterol | numbernull | Cholesterol per serving in milligrams |
| saturatedFat | numbernull | Saturated fat per serving (grams) |
| barcode | stringnull | |
| imageUrl | stringnull | 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 | string | Data source (e.g. "usda", "openfoodfacts") |
| country | stringnull | 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. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/ymove-app/json-schema/ymove-app-food-schema.json",
"title": "Food",
"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.",
"x-generated": "2026-11-29",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/ymove-app-openapi.json#/components/schemas/Food",
"type": "object",
"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."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/ymove-app-food"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.