MyPlate Guideline tools API

Water intake, one-rep max, GLP-1 protein, DGE/ÖGE energy, and the full DRI table.

GitHub OpenAPI

Operations 6

GET /calculate/water-intake Daily water intake #
GET /calculate/weight-loss-percentage Weight-loss percentage #
GET /calculate/one-rep-max One-rep max (1RM) #
GET /calculate/glp1-protein GLP-1 muscle-preservation protein target #
GET /calculate/dach-energy DGE/ÖGE energy requirement #
GET /calculate/dri Dietary Reference Intakes (full nutrient table) #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/myplate-food:myplate-food-guideline-tools-api"
All apis
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.

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.

OpenAPI Specification

myplate-food-guideline-tools-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MyPlate.food nutrition Guideline tools 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: Guideline tools
  description: Water intake, one-rep max, GLP-1 protein, DGE/ÖGE energy, and the full DRI table.
paths:
  /calculate/water-intake:
    get:
      operationId: calculate_water_intake
      summary: Daily water intake
      description: 'Daily fluid target from body weight and activity, from a 31 to 40 mL/kg/day rule of thumb, compared with the U.S. DRI total-water reference.


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/water-intake-calculator), plus a `disclaimer`.'
      tags:
      - Guideline tools
      parameters:
      - name: unit
        in: query
        required: false
        description: Units for inputs and output. metric = cm/kg (default), imperial = in/lb.
        schema:
          type: string
          enum:
          - metric
          - imperial
        example: metric
      - name: weight
        in: query
        required: true
        description: Weight (kg or lb).
        schema:
          type: number
        example: 70
      - name: activity
        in: query
        required: false
        description: Activity level (default moderate).
        schema:
          type: string
          enum:
          - sedentary
          - moderate
          - active
        example: moderate
      x-example-request: https://myplate.food/api/v1/calculate/water-intake?weight=70
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: water-intake
                inputs: {}
                source: 'Daily water intake: a 31 to 40 mL/kg/day rule of thumb, compared with the U.S. DRI total-water reference, computed by myplate.food'
                canonical_url: https://myplate.food/water-intake-calculator
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/weight-loss-percentage:
    get:
      operationId: calculate_weight_loss_percentage
      summary: Weight-loss percentage
      description: 'Percentage of starting body weight lost (or gained), against the NHLBI/USPSTF 5–10% clinically-meaningful thresholds.


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/weight-loss-percentage-calculator), plus a `disclaimer`.'
      tags:
      - Guideline tools
      parameters:
      - name: unit
        in: query
        required: false
        description: Units for inputs and output. metric = cm/kg (default), imperial = in/lb.
        schema:
          type: string
          enum:
          - metric
          - imperial
        example: metric
      - name: start_weight
        in: query
        required: true
        description: Starting weight (kg or lb).
        schema:
          type: number
        example: 100
      - name: current_weight
        in: query
        required: true
        description: Current weight (kg or lb).
        schema:
          type: number
        example: 93
      x-example-request: https://myplate.food/api/v1/calculate/weight-loss-percentage?start_weight=100&current_weight=93
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: weight-loss-percentage
                inputs: {}
                source: 'Weight-loss percentage: NHLBI/USPSTF 5–10% clinically-meaningful thresholds, computed by myplate.food'
                canonical_url: https://myplate.food/weight-loss-percentage-calculator
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/one-rep-max:
    get:
      operationId: calculate_one_rep_max
      summary: One-rep max (1RM)
      description: 'Estimated one-rep max from a set taken near failure, via the Epley (1985) and Brzycki (1993) formulas, with a training-percentage table.


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/one-rep-max-calculator), plus a `disclaimer`.'
      tags:
      - Guideline tools
      parameters:
      - name: unit
        in: query
        required: false
        description: Units for inputs and output. metric = cm/kg (default), imperial = in/lb.
        schema:
          type: string
          enum:
          - metric
          - imperial
        example: metric
      - name: weight
        in: query
        required: true
        description: Weight lifted (kg or lb).
        schema:
          type: number
        example: 100
      - name: reps
        in: query
        required: true
        description: Reps performed (1–12).
        schema:
          type: integer
          minimum: 1
          maximum: 12
        example: 5
      x-example-request: https://myplate.food/api/v1/calculate/one-rep-max?weight=100&reps=5
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: one-rep-max
                inputs: {}
                source: 'One-rep max: Epley (1985) and Brzycki (1993) estimation formulas, computed by myplate.food'
                canonical_url: https://myplate.food/one-rep-max-calculator
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/glp1-protein:
    get:
      operationId: calculate_glp1_protein
      summary: GLP-1 muscle-preservation protein target
      description: 'Protein target to preserve muscle during weight loss on a GLP-1 medication (Ozempic/Wegovy/Zepbound/Mounjaro): the 1.2 to 1.6 g/kg preservation range vs the IOM protein RDA for the age (0.8 g/kg for adults, 0.85 at 14 to 18, higher below 14), the per-meal amount over 4 meals, and the DRI fiber Adequate Intake for age and sex. When the range runs above 120 g/day it also returns the fixed 80 to 120 g/day option from the 2025 GLP-1 nutrition advisory, with its note that actual body weight can overestimate needs. With height it also returns the 2026 EASO/EFAD/ECPO consensus range: 1.0 to 1.5 g/kg of adjusted body weight (the weight at BMI 25 plus 0.33 of the difference from it), at least 60 g/day.


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/glp-1-protein-calculator), plus a `disclaimer`.'
      tags:
      - Guideline tools
      parameters:
      - name: unit
        in: query
        required: false
        description: Units for inputs and output. metric = cm/kg (default), imperial = in/lb.
        schema:
          type: string
          enum:
          - metric
          - imperial
        example: metric
      - name: sex
        in: query
        required: true
        description: Biological sex, used in the equation.
        schema:
          type: string
          enum:
          - male
          - female
        example: male
      - name: weight
        in: query
        required: true
        description: Body weight (kg or lb).
        schema:
          type: number
        example: 80
      - name: age
        in: query
        required: true
        description: Age in years (sets the fiber Adequate Intake).
        schema:
          type: integer
          minimum: 1
          maximum: 120
        example: 40
      - name: height
        in: query
        required: false
        description: Height (cm or in). Adds the 2026 European consensus range, worked out from adjusted body weight.
        schema:
          type: number
        example: 175
      x-example-request: https://myplate.food/api/v1/calculate/glp1-protein?weight=80&age=40&sex=male&height=175
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: glp1-protein
                inputs: {}
                source: 'GLP-1 muscle-preservation protein: IOM/NASEM protein RDA by life stage (0.8 g/kg for adults), the 1.2–1.6 g/kg preservation range (AND/DoC/ACSM 2016; Phillips 2016) and, with height, the EASO/EFAD/ECPO consensus range (Lancet Diabetes & Endocrinology 2026), computed by myplate.food'
                canonical_url: https://myplate.food/glp-1-protein-calculator
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/dach-energy:
    get:
      operationId: calculate_dach_energy
      summary: DGE/ÖGE energy requirement
      description: 'Daily energy requirement for the German/Austrian DGE/ÖGE reference framework: resting energy after the Müller et al. (2004) equation the DGE uses, scaled by a PAL activity factor. Returns resting energy, the requirement at the chosen PAL, and a table at PAL 1.4 / 1.6 / 1.8. Adults only: the DGE derives this equation for adults and publishes table reference values for children and adolescents instead.


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/ernaehrungspyramide/energiebedarf), plus a `disclaimer`.'
      tags:
      - Guideline tools
      parameters:
      - name: sex
        in: query
        required: true
        description: Biological sex, used in the equation.
        schema:
          type: string
          enum:
          - male
          - female
        example: male
      - name: age
        in: query
        required: true
        description: Age in years (19–120). The DGE derives resting energy from Müller (2004) for adults only; under 19 it publishes table reference values instead, which this endpoint does not compute.
        schema:
          type: integer
          minimum: 19
          maximum: 120
        example: 40
      - name: weight_kg
        in: query
        required: false
        description: Weight in kilograms (or weight_lb).
        schema:
          type: number
        example: 71
      - name: weight_lb
        in: query
        required: false
        description: Weight in pounds.
        schema:
          type: number
      - name: pal
        in: query
        required: false
        description: Physical Activity Level factor (default 1.6, DGE range 1.2–2.4).
        schema:
          type: number
          minimum: 1.2
          maximum: 2.4
        example: 1.6
      x-example-request: https://myplate.food/api/v1/calculate/dach-energy?sex=male&age=40&weight_kg=71&pal=1.6
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: dach-energy
                inputs: {}
                source: 'DGE/ÖGE reference values for energy intake: resting energy after Müller et al. (2004) × PAL activity factor, computed by myplate.food (source: Deutsche Gesellschaft für Ernährung, Referenzwerte für die Energiezufuhr)'
                canonical_url: https://myplate.food/ernaehrungspyramide/energiebedarf
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/dri:
    get:
      operationId: calculate_dri
      summary: Dietary Reference Intakes (full nutrient table)
      description: 'The full Dietary Reference Intakes table for a life stage: recommended intakes and tolerable upper limits for macronutrients, vitamins and minerals (IOM 2005/2006/2011, NASEM 2019), plus the Estimated Energy Requirement and BMI.


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/dri-calculator), plus a `disclaimer`.'
      tags:
      - Guideline tools
      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/dri?age=25&sex=male&activity=moderately-active&height_cm=178&weight_kg=77
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: dri
                inputs: {}
                source: 'Dietary Reference Intakes: National Academies (IOM 2005/2006/2011, NASEM 2019) recommended intakes with IOM/NASEM Estimated Energy Requirements, computed by myplate.food'
                canonical_url: https://myplate.food/dri-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