MyPlate MyPlate plan API
The USDA MyPlate food-group plan at your estimated calorie level.
The USDA MyPlate food-group plan at your estimated calorie level.
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/myplate-food:myplate-food-myplate-plan-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: MyPlate.food nutrition MyPlate plan API
version: 1.0.0
summary: Free, no-key JSON API for USDA nutrition calculators and the MyPlate Kitchen recipe collection.
description: 'Free, open, GET-only JSON API for USDA-based nutrition calculators (BMI, BMR/TDEE, macros, protein, body fat, ideal weight, the MyPlate food-group plan, the full DRI table, and more) and the public-domain USDA MyPlate Kitchen recipe collection.
No API key. Open CORS. Every calculator response carries a citation envelope — `source` (the published formula + reference) and `canonical_url` (the matching myplate.food page), with a `disclaimer` on health math — so consumers and AI agents can cite the number.
Rate limited to 20 requests/minute per IP on the free tier; over that returns HTTP 429 with a Retry-After header. Independent; not affiliated with the USDA.
The free tier is for live, per-request use inside your app or agent. It is not a bulk-download channel: systematically retrieving or mirroring the recipe collection into your own database or storage is outside the free tier and requires a license agreement (https://myplate.food/for-professionals). Full recipe fetches are additionally capped at 100/day per IP (one budget shared with the MCP get_recipe tool). Full terms: https://myplate.food/terms.'
termsOfService: https://myplate.food/terms
contact:
name: MyPlate.food
email: hello@myplate.food
url: https://myplate.food/api
license:
name: Free for live per-request use, no API key — rate-limited; bulk export / data feeds require a license
url: https://myplate.food/for-professionals
servers:
- url: https://myplate.food/api/v1
description: Production v1 API
tags:
- name: MyPlate plan
description: The USDA MyPlate food-group plan at your estimated calorie level.
paths:
/calculate/myplate-plan:
get:
operationId: calculate_myplate_plan
summary: USDA MyPlate food-pattern plan
description: 'Estimate daily calorie needs (IOM/NASEM Estimated Energy Requirement) and return the USDA MyPlate food-group plan at that level: cups of fruit/vegetables/dairy, ounce-equivalents of grains/protein, weekly vegetable & protein subgroup targets, and BMI.
Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/calculator), plus a `disclaimer`.'
tags:
- MyPlate plan
parameters:
- name: age
in: query
required: true
description: Age in years.
schema:
type: integer
minimum: 1
maximum: 120
example: 30
- name: sex
in: query
required: true
description: Biological sex, used in the equation.
schema:
type: string
enum:
- male
- female
example: male
- name: activity
in: query
required: false
description: Physical activity level. Defaults to sedentary.
schema:
type: string
enum:
- sedentary
- moderately-active
- active
- very-active
example: active
- name: height_cm
in: query
required: false
description: Height in centimeters (metric). Provide height_cm OR height_ft (+ optional height_in).
schema:
type: number
example: 180
- name: height_ft
in: query
required: false
description: Height, feet component (imperial).
schema:
type: number
example: 5
- name: height_in
in: query
required: false
description: Height, inches component (imperial).
schema:
type: number
example: 10
- name: weight_kg
in: query
required: false
description: Weight in kilograms (metric). Provide weight_kg OR weight_lb.
schema:
type: number
example: 80
- name: weight_lb
in: query
required: false
description: Weight in pounds (imperial).
schema:
type: number
example: 176
- name: pregnancy
in: query
required: false
description: Pregnancy status (adds the IOM trimester energy allowance). With sex=female only, and not together with lactation.
schema:
type: string
enum:
- not-pregnant
- 1st-trimester
- 2nd-trimester
- 3rd-trimester
- name: lactation
in: query
required: false
description: Lactation status (adds the IOM lactation energy allowance). With sex=female only, and not together with pregnancy.
schema:
type: string
enum:
- not-lactating
- 0-6-months
- 7-12-months
- name: edition
in: query
required: false
description: DRI Estimated Energy Requirement equation set. Defaults to iom2005.
schema:
type: string
enum:
- iom2005
- nasem2023
example: iom2005
x-example-request: https://myplate.food/api/v1/calculate/myplate-plan?age=30&sex=female&activity=moderately-active&height_cm=165&weight_kg=63
responses:
'200':
description: Calculation result with citation envelope.
content:
application/json:
schema:
$ref: '#/components/schemas/CitedResult'
example:
calculator: myplate-plan
inputs: {}
source: USDA Dietary Guidelines for Americans food patterns + IOM/NASEM Estimated Energy Requirement equations, computed by myplate.food
canonical_url: https://myplate.food/calculator
'400':
description: Invalid or missing parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
properties:
error:
type: string
description: Human-readable error message.
details:
description: Optional structured detail.
required:
- error
CitedResult:
type: object
description: Calculation result. Shape varies by endpoint, but every result carries the citation envelope fields below alongside the calculator's own numbers.
properties:
calculator:
type: string
description: The endpoint name.
inputs:
type: object
description: The parsed, normalized inputs the result was computed from.
source:
type: string
description: The formula and published reference behind the number.
canonical_url:
type: string
format: uri
description: The matching myplate.food page.
disclaimer:
type: string
description: Present on health calculators.
required:
- calculator
- source
- canonical_url
additionalProperties: true
x-rate-limit:
free_tier_per_minute: 20
on_exceeded: HTTP 429 with a Retry-After header
contact_email: hello@myplate.food
contact_url: https://myplate.food/for-professionals