MyPlate Body metrics API

BMI, body fat, and ratio-based body-composition calculators.

GitHub OpenAPI

Operations 6

GET /calculate/bmi Body Mass Index + classification #
GET /calculate/body-fat Body-fat % (U.S. Navy circumference method) #
GET /calculate/waist-to-height Waist-to-height ratio #
GET /calculate/waist-to-hip Waist-to-hip ratio #
GET /calculate/lean-body-mass Lean body mass (Boer + Hume) #
GET /calculate/ffmi Fat-free mass index #

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-body-metrics-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-body-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MyPlate.food nutrition Body metrics 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: Body metrics
  description: BMI, body fat, and ratio-based body-composition calculators.
paths:
  /calculate/bmi:
    get:
      operationId: calculate_bmi
      summary: Body Mass Index + classification
      description: 'Body Mass Index and weight classification from height and weight. Adults use the WHO cutoffs; pass age + sex for ages 2–19 to use the CDC BMI-for-age percentiles (which are sex-specific).


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/bmi-calculator), plus a `disclaimer`.'
      tags:
      - Body metrics
      parameters:
      - 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: age
        in: query
        required: false
        description: Age in years (2–120). Omit for adult BMI cutoffs; required (with sex) under age 20 for CDC percentiles. Under 2, weight status is assessed on weight-for-length rather than BMI.
        schema:
          type: integer
          minimum: 2
          maximum: 120
        example: 30
      - name: sex
        in: query
        required: false
        description: Required only when age < 20 (CDC curves are sex-specific).
        schema:
          type: string
          enum:
          - male
          - female
        example: male
      x-example-request: https://myplate.food/api/v1/calculate/bmi?height_cm=180&weight_kg=80
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: bmi
                inputs: {}
                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
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/body-fat:
    get:
      operationId: calculate_body_fat
      summary: Body-fat % (U.S. Navy circumference method)
      description: 'Estimate body-fat % using the U.S. Navy circumference method, with a Deurenberg BMI-based cross-check and ACE category. Needs neck and waist measurements (plus hip for women).


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/body-fat-calculator), plus a `disclaimer`.'
      tags:
      - Body metrics
      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 (18–80). The Deurenberg cross-check and the ACE category bands are adult references; the Navy equation itself does not use age.
        schema:
          type: integer
          minimum: 18
          maximum: 80
        example: 30
      - 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: neck_cm
        in: query
        required: false
        description: Neck circumference in cm (or neck_in).
        schema:
          type: number
        example: 38
      - name: neck_in
        in: query
        required: false
        description: Neck circumference in inches.
        schema:
          type: number
      - name: waist_cm
        in: query
        required: false
        description: Waist circumference in cm (or waist_in).
        schema:
          type: number
        example: 85
      - name: waist_in
        in: query
        required: false
        description: Waist circumference in inches.
        schema:
          type: number
      - name: hip_cm
        in: query
        required: false
        description: Hip circumference in cm; required for women (or hip_in).
        schema:
          type: number
      - name: hip_in
        in: query
        required: false
        description: Hip circumference in inches (women).
        schema:
          type: number
      x-example-request: https://myplate.food/api/v1/calculate/body-fat?sex=male&age=30&height_cm=180&weight_kg=80&neck_cm=38&waist_cm=85
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: body-fat
                inputs: {}
                source: U.S. Navy circumference method + Deurenberg BMI estimate (ACE categories), computed by myplate.food
                canonical_url: https://myplate.food/body-fat-calculator
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/waist-to-height:
    get:
      operationId: calculate_waist_to_height
      summary: Waist-to-height ratio
      description: 'Waist-to-height ratio and its risk band (Ashwell: keep your waist under half your height).


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/waist-to-height-ratio-calculator), plus a `disclaimer`.'
      tags:
      - Body metrics
      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: waist
        in: query
        required: true
        description: Waist circumference (cm or in per unit).
        schema:
          type: number
        example: 80
      - name: height
        in: query
        required: true
        description: Height (cm or in per unit).
        schema:
          type: number
        example: 180
      x-example-request: https://myplate.food/api/v1/calculate/waist-to-height?waist=80&height=180
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: waist-to-height
                inputs: {}
                source: 'Waist-to-height ratio: Ashwell & Hsieh (2005) risk bands, computed by myplate.food'
                canonical_url: https://myplate.food/waist-to-height-ratio-calculator
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/waist-to-hip:
    get:
      operationId: calculate_waist_to_hip
      summary: Waist-to-hip ratio
      description: 'Waist-to-hip ratio and its low, moderate or high risk band by sex, built around the WHO (2008) cutoffs.


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/waist-to-hip-ratio-calculator), plus a `disclaimer`.'
      tags:
      - Body metrics
      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: waist
        in: query
        required: true
        description: Waist circumference (cm or in).
        schema:
          type: number
        example: 90
      - name: hip
        in: query
        required: true
        description: Hip circumference (cm or in).
        schema:
          type: number
        example: 100
      x-example-request: https://myplate.food/api/v1/calculate/waist-to-hip?waist=90&hip=100&sex=male
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: waist-to-hip
                inputs: {}
                source: 'Waist-to-hip ratio: risk bands built around the WHO (2008) expert-consultation cutoffs, computed by myplate.food'
                canonical_url: https://myplate.food/waist-to-hip-ratio-calculator
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/lean-body-mass:
    get:
      operationId: calculate_lean_body_mass
      summary: Lean body mass (Boer + Hume)
      description: 'Lean body mass from weight, height and sex via the Boer (1984) and Hume (1966) formulas, plus implied fat mass.


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/lean-body-mass-calculator), plus a `disclaimer`.'
      tags:
      - Body metrics
      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: Weight (kg or lb).
        schema:
          type: number
        example: 80
      - name: height
        in: query
        required: true
        description: Height (cm or in).
        schema:
          type: number
        example: 180
      x-example-request: https://myplate.food/api/v1/calculate/lean-body-mass?weight=80&height=180&sex=male
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: lean-body-mass
                inputs: {}
                source: 'Lean body mass: Boer (1984) and Hume (1966) prediction equations, computed by myplate.food'
                canonical_url: https://myplate.food/lean-body-mass-calculator
        '400':
          description: Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /calculate/ffmi:
    get:
      operationId: calculate_ffmi
      summary: Fat-free mass index
      description: 'Fat-free mass index (FFMI) and its height-normalized value from weight, height, body-fat % and sex (Kouri 1995 normalization).


        Cites its source in every response: `source` (the formula + published reference) and `canonical_url` (https://myplate.food/ffmi-calculator), plus a `disclaimer`.'
      tags:
      - Body metrics
      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: Weight (kg or lb).
        schema:
          type: number
        example: 80
      - name: height
        in: query
        required: true
        description: Height (cm or in).
        schema:
          type: number
        example: 180
      - name: body_fat
        in: query
        required: true
        description: Body-fat percentage (0–70).
        schema:
          type: number
          minimum: 0
          maximum: 70
        example: 15
      x-example-request: https://myplate.food/api/v1/calculate/ffmi?weight=80&height=180&body_fat=15&sex=male
      responses:
        '200':
          description: Calculation result with citation envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitedResult'
              example:
                calculator: ffmi
                inputs: {}
                source: 'Fat-free mass index: Kouri et al. (1995) height-normalization, computed by myplate.food'
                canonical_url: https://myplate.food/ffmi-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