MyPlate.food API — Free Nutrition Calculator & Recipe JSON API

A free, no-key JSON API for USDA nutrition calculators (BMI, calorie & macro needs, body fat, the MyPlate food-group plan) and 1,072 MyPlate Kitchen recipes. CORS-enabled, edge-cached, every response cites its source. Built for developers and AI agents.

⚡ Developer API

MyPlate.food nutrition API

A free, no-key JSON API for USDA nutrition calculators and the MyPlate Kitchen recipe collection — BMI, calorie & macro needs, body fat, the MyPlate food-group plan, and 1,072 recipes. CORS-enabled, edge-cached, and every response cites its source. Built for developers and AI agents.

No key

Free for low-volume use, CORS-enabled. Just call it.

Fast

Deterministic calculators + static recipe data, edge-cached.

Cited

Every response carries source + canonical_url.

Agent-ready

Same data as native tools via the MCP server.

Quick start

No signup. Base URL https://myplate.food/api/v1.

bash
curl "https://myplate.food/api/v1/calculate/bmi?height_cm=180&weight_kg=80"
json
{
  "calculator": "bmi",
  "inputs": { "height_cm": 180, "weight_kg": 80 },
  "bmi": 24.7,
  "classification": "normal",
  "classification_label": "Normal weight",
  "reference_system": "adult-bmi",
  "source": "Body Mass Index — WHO adult cutoffs, CDC BMI-for-age percentiles under age 20, computed by myplate.food",
  "canonical_url": "https://myplate.food/bmi-calculator",
  "disclaimer": "Educational estimate from published equations — not medical advice."
}

Try it

GET /api/v1/calculate/bmi?height_cm=180&weight_kg=80

Endpoints

Body metrics

Height, weight and tape measurements in — a value plus its healthy band out.

Energy & macros

The full metabolic picture, either bundled or one number at a time.

MyPlate plan

A daily calorie estimate translated into USDA food-group amounts.

Guideline tools

Lifestyle calculators plus the full DRI table and the German D-A-CH energy method.

Recipes

Search and fetch the public-domain USDA MyPlate Kitchen collection.

OpenAPI spec

The whole API is described by an OpenAPI 3.1 document — point Postman, a code generator, or an agent framework straight at it. Served with open CORS and edge-cached.

bash
curl "https://myplate.food/api/v1/openapi.json"
https://myplate.food/api/v1/openapi.json

Response format

Every successful response is JSON and carries citation fields: source (how the number was derived) and canonical_url (the matching myplate.food page); health calculators add a disclaimer. Inputs accept metric (height_cm, weight_kg) or imperial (height_ft+height_in, weight_lb). Responses are edge-cached; errors return { "error": "…" } with a 4xx status.

Limits & commercial use

  • Free, no key, for live per-request use — 20 requests/minute per IP, and full recipe fetches (API and MCP combined) cap at 100/day per IP. Over a limit returns HTTP 429 with a Retry-After header.
  • Building something high-volume or commercial? Get in touch or email hello@myplate.food — we offer dedicated access and licensing for products, classrooms, clinics and research.
  • Educational estimates, not medical advice. The calculators implement published USDA/IOM/clinical equations. Independent; not affiliated with the USDA.

MCP tools

The same calculators and recipe search are exposed to AI agents as Model Context Protocol tools at https://mcp.myplate.food/mcp. Every tool is read-only and calls the same endpoints, so the numbers match.

  • calculate_bmiBMI + classification (WHO adult / CDC youth percentiles).
  • calculate_body_fatBody-fat % via the U.S. Navy circumference method.
  • calculate_body_metricQuick body metrics: waist-to-height/hip, lean mass, FFMI, water, 1RM, weight-loss %.
  • calculate_myplate_planUSDA MyPlate food-group plan at your calorie level.
  • calculate_calorie_needsBMR, TDEE, deficit tiers, macros, protein and ideal weight in one call.
  • calculate_bmrBasal metabolic rate (Mifflin-St Jeor + Harris-Benedict).
  • calculate_tdeeTotal daily energy expenditure at your activity level, plus a table across all four.
  • calculate_calorie_deficitMaintenance calories and three weight-loss deficit tiers with weekly rates.
  • calculate_macrosMacronutrient split from a calorie budget or a profile.
  • calculate_protein_targetDaily protein target in grams by weight + activity.
  • calculate_ideal_weightIdeal weight (Devine/Robinson/Miller/Hamwi) + healthy-BMI band.
  • calculate_glp1_proteinGLP-1 muscle-preservation protein target + fiber AI.
  • calculate_dach_energyGerman D-A-CH / DGE energy requirement (Müller-2004 × PAL).
  • calculate_driThe full Dietary Reference Intakes nutrient table.
  • search_recipesSearch the MyPlate Kitchen recipe collection.
  • get_recipeFetch one full recipe by slug.

Building an AI agent? Use the same data as native tools via our MCP server.

MyPlate.food MCP server

API FAQ

Is the MyPlate.food API free?

Yes — free for live, per-request use with no API key and open CORS. It isn't a bulk-download channel: replicating the recipe catalog into your own database or storage requires a license agreement. For higher limits or a dedicated tier, contact us.

Do I need an API key?

No. Just call the endpoints. There's a per-IP rate limit (20 requests/minute) to keep the free tier fair, and full recipe fetches — API and MCP combined — cap at 100/day per IP: plenty for live use, not enough to mirror the catalog.

Can I use it commercially?

Yes, for live per-request calls inside your product. Bulk export or mirroring of the recipe catalog isn't part of the free tier — that requires a license agreement. For products, classrooms, clinics, research, higher limits, or licensed data feeds, get in touch via /for-professionals.

Is this the official USDA API?

No. MyPlate.food is independent and not affiliated with the USDA. The calculators implement published USDA/IOM equations and the recipe data preserves the public-domain USDA MyPlate Kitchen library; each response cites its source.

Is there an MCP server?

Yes — the same calculators and recipe search are available to AI agents as Model Context Protocol tools. See the MCP server page.