Fitbit · Capability

Fitbit Nutrition API — Nutrition

Fitbit Nutrition API. Read daily food logs, log food, log water, and search the Fitbit foods database.

Fitbit Nutrition API — Nutrition is a Naftiko capability published by Fitbit, one of 8 capabilities the APIs.io network indexes for this provider. It bundles 2 operations.

The capability includes 2 read-only operations. Lead operation: Fetch the food log summary for a date. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Fitbit, Nutrition, Food, and Water.

Run with Naftiko FitbitNutritionFoodWater

MCP Tools

fitbit-get-food-logs

Fetch the food log summary for a date.

read-only idempotent
fitbit-search-foods

Search the Fitbit foods database by name.

read-only idempotent

Capability Spec

nutrition-nutrition.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fitbit Nutrition API — Nutrition
  description: Fitbit Nutrition API. Read daily food logs, log food, log water, and search the Fitbit foods database.
  tags:
  - Fitbit
  - Nutrition
  - Food
  - Water
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    FITBIT_ACCESS_TOKEN: FITBIT_ACCESS_TOKEN
capability:
  consumes:
  - type: http
    namespace: nutrition-nutrition
    baseUri: https://api.fitbit.com
    description: Fitbit Nutrition API.
    resources:
    - name: food-logs-by-date
      path: /1/user/-/foods/log/date/{date}.json
      operations:
      - name: getFoodLogsByDate
        method: GET
        description: Get food logs and macronutrient summary for a date.
        outputRawFormat: json
        inputParameters:
        - name: date
          in: path
          type: string
          required: true
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: search-foods
      path: /1/foods/search.json
      operations:
      - name: searchFoods
        method: GET
        description: Search the Fitbit foods database.
        outputRawFormat: json
        inputParameters:
        - name: query
          in: query
          type: string
          required: true
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      value: '{{env.FITBIT_ACCESS_TOKEN}}'
      placement: header
  exposes:
  - type: mcp
    namespace: nutrition-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fitbit Nutrition API.
    tools:
    - name: fitbit-get-food-logs
      description: Fetch the food log summary for a date.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nutrition-nutrition.getFoodLogsByDate
      with:
        date: tools.date
      outputParameters:
      - type: object
        mapping: $.
    - name: fitbit-search-foods
      description: Search the Fitbit foods database by name.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nutrition-nutrition.searchFoods
      with:
        query: tools.query
      outputParameters:
      - type: object
        mapping: $.