Coach Watts Nutrition API

The Nutrition API from Coach Watts — 13 operation(s) for nutrition.

GitHub OpenAPI

Operations 14

POST /api/nutrition/{id}/analyze Analyze nutrition #
PATCH /api/nutrition/{id}/notes Update nutrition notes #
POST /api/nutrition/analyze-all Analyze all nutrition #
GET /api/nutrition/barcode/{barcode} Lookup food item by barcode #
GET /api/nutrition/extended-wave Get extended metabolic wave #
POST /api/nutrition/generate-plan Generate fueling plan #
POST /api/nutrition/hydration-quick-add Quick-add hydration #
GET /api/nutrition List nutrition data #
POST /api/nutrition Upload nutrition data #
GET /api/nutrition/item/{key} Get food item by external key #
GET /api/nutrition/metabolic-wave Get metabolic wave for range #
GET /api/nutrition/search Search nutrition database #
POST /api/nutrition/simulate-impact Simulate meal impact #
GET /api/nutrition/strategy Get metabolic strategy summary #

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/coachwatts-com:coachwatts-com-nutrition-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

coachwatts-com-nutrition-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coachwatts Com Nutrition API
  version: 0.5.25
  description: 'Operations tagged Nutrition across 2 of this provider''s published API definitions: coachwatts-com-openapi.json, coachwatts-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://coachwatts.com
  description: Local Development Server
  variables: {}
tags:
- name: Nutrition
paths:
  /api/nutrition/{id}/analyze:
    post:
      tags:
      - Nutrition
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  nutritionId:
                    type: string
                  jobId:
                    type: string
                  status:
                    type: string
                  message:
                    type: string
        '401':
          description: Unauthorized
        '404':
          description: Nutrition record not found
      summary: Analyze nutrition
      description: Triggers AI analysis for a specific nutrition record.
      inputSchema:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: UUID or Date (YYYY-MM-DD)
      operationId: postApiNutritionByIdAnalyze
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/{id}/notes:
    patch:
      tags:
      - Nutrition
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  nutrition:
                    type: object
        '400':
          description: Invalid input
        '401':
          description: Unauthorized
        '404':
          description: Nutrition entry not found
      summary: Update nutrition notes
      description: Updates the notes for a specific nutrition entry.
      inputSchema:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                notes:
                  type: string
                  nullable: true
      operationId: patchApiNutritionByIdNotes
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/analyze-all:
    post:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  total:
                    type: integer
                  triggered:
                    type: integer
                  failed:
                    type: integer
        '401':
          description: Unauthorized
      summary: Analyze all nutrition
      description: Triggers AI analysis for up to 10 pending nutrition records per request.
      operationId: postApiNutritionAnalyzeAll
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/barcode/{barcode}:
    get:
      tags:
      - Nutrition
      parameters:
      - name: barcode
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      summary: Lookup food item by barcode
      description: Lookup food item details using UPC/EAN barcode from the nutrition feeder service.
      security:
      - bearerAuth: []
      operationId: getApiNutritionBarcodeByBarcode
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/extended-wave:
    get:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  points:
                    type: array
                    items:
                      type: object
                      properties:
                        time:
                          type: string
                        timestamp:
                          type: number
                        level:
                          type: number
                        kcalBalance:
                          type: number
                        carbBalance:
                          type: number
                        fluidDeficit:
                          type: number
                        dataType:
                          type: string
                        event:
                          type: string
                          nullable: true
        '400':
          description: Invalid daysAhead
        '401':
          description: Unauthorized
      summary: Get extended metabolic wave
      description: Returns a multi-day predictive energy wave (historical + current + future).
      inputSchema:
      - name: daysAhead
        in: query
        description: Number of future days to project. Values outside the range are clamped; non-integer values are rejected.
        schema:
          type: integer
          default: 3
          minimum: 1
          maximum: 14
      operationId: getApiNutritionExtendedWave
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/generate-plan:
    post:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  runId:
                    type: string
                    nullable: true
        '401':
          description: Unauthorized
      summary: Generate fueling plan
      description: Generates fueling plan synchronously for a target date.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                date:
                  type: string
                  format: date-time
                  description: The date to generate plan for (defaults to today)
      operationId: postApiNutritionGeneratePlan
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/hydration-quick-add:
    post:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: Success
        '400':
          description: Invalid data
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      summary: Quick-add hydration
      description: Appends a water volume to today’s nutrition log. Supports session, API key, and OAuth Bearer with nutrition:write.
      security:
      - bearerAuth: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - date
              - volumeMl
              properties:
                date:
                  type: string
                  format: date
                volumeMl:
                  type: integer
                  minimum: 1
                  maximum: 5000
      operationId: postApiNutritionHydrationQuickAdd
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition:
    get:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  count:
                    type: integer
                  nutrition:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        date:
                          type: string
                          format: date
                        calories:
                          type: integer
                          nullable: true
                        protein:
                          type: number
                          nullable: true
                        carbs:
                          type: number
                          nullable: true
                        fat:
                          type: number
                          nullable: true
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      summary: List nutrition data
      description: Returns the recent nutrition logs for the authenticated user.
      security:
      - bearerAuth: []
      inputSchema:
      - name: limit
        in: query
        schema:
          type: integer
          default: 30
      - name: startDate
        in: query
        schema:
          type: string
          format: date
      - name: endDate
        in: query
        schema:
          type: string
          format: date
      operationId: getApiNutrition
      x-operation-id-source: derived
    post:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
        '400':
          description: Invalid data
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      summary: Upload nutrition data
      description: Logs or updates nutrition data using a flat list of items with timestamps.
      security:
      - bearerAuth: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NutritionUpload'
      operationId: postApiNutrition
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/item/{key}:
    get:
      tags:
      - Nutrition
      parameters:
      - name: key
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      summary: Get food item by external key
      description: Fetch food item details by external_key from the nutrition feeder service.
      security:
      - bearerAuth: []
      operationId: getApiNutritionItemByKey
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/metabolic-wave:
    get:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: Success
        '400':
          description: Missing, repeated, malformed, implausible, inverted, or too wide a date range (max 62 days)
        '401':
          description: Unauthorized
      summary: Get metabolic wave for range
      description: Returns continuous metabolic points for a specific date range.
      inputSchema:
      - name: startDate
        in: query
        required: true
        description: Single YYYY-MM-DD date. Repeated or malformed values are rejected.
        schema:
          type: string
          format: date
      - name: endDate
        in: query
        required: true
        description: Single YYYY-MM-DD date. Repeated or malformed values are rejected.
        schema:
          type: string
          format: date
      operationId: getApiNutritionMetabolicWave
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/search:
    get:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: OK
      summary: Search nutrition database
      description: Search branded and generic food items from the nutrition feeder service.
      security:
      - bearerAuth: []
      inputSchema:
      - name: q
        in: query
        required: true
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
      operationId: getApiNutritionSearch
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/simulate-impact:
    post:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: Success
        '400':
          description: Invalid data
        '401':
          description: Unauthorized
      summary: Simulate meal impact
      description: Returns simulated metabolic points for a potential meal.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - carbs
              properties:
                date:
                  type: string
                  format: date
                carbs:
                  type: number
                  minimum: 0
                  maximum: 1000
                absorptionType:
                  type: string
                  enum:
                  - RAPID
                  - FAST
                  - BALANCED
                  - DENSE
                  - HYPER_LOAD
                time:
                  type: string
                  format: date-time
      operationId: postApiNutritionSimulateImpact
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
  /api/nutrition/strategy:
    get:
      tags:
      - Nutrition
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  hydrationDebt:
                    type: number
                  fuelingMatrix:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                        state:
                          type: integer
                        label:
                          type: string
                        carbsTarget:
                          type: number
                        isRest:
                          type: boolean
                  summary:
                    type: string
        '401':
          description: Unauthorized
      summary: Get metabolic strategy summary
      description: Returns weekly fueling states, hydration debt, and strategic fueling insights.
      operationId: getApiNutritionStrategy
      x-operation-id-source: derived
    servers:
    - url: https://coachwatts.com
      description: Local Development Server
      variables: {}
components:
  schemas:
    FoodItem:
      type: object
      required:
      - logged_at
      properties:
        name:
          type: string
          description: Optional item name. Defaults to "Unknown item".
        calories:
          type: number
        carbs:
          type: number
        protein:
          type: number
        fat:
          type: number
        fiber:
          type: number
        sugar:
          type: number
        logged_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp
        absorptionType:
          type: string
          enum:
          - RAPID
          - FAST
          - BALANCED
          - DENSE
          - HYPER_LOAD
          default: BALANCED
        quantity:
          type: string
    NutritionUpload:
      type: object
      required:
      - date
      properties:
        date:
          type: string
          format: date
          description: YYYY-MM-DD or ISO string
        items:
          type: array
          items:
            $ref: '#/components/schemas/FoodItem'
        calories:
          type: integer
          description: Optional override for daily total
        carbs:
          type: number
          description: Optional override for daily total
        protein:
          type: number
          description: Optional override for daily total
        fat:
          type: number
          description: Optional override for daily total
        waterMl:
          type: integer
        rawJson:
          type: object
          description: Raw developer data for historical reference
x-refined-from:
- coachwatts-com-openapi.json
- coachwatts-com-openapi.yml