MyFitnessPal API v2

Partner REST API for reading and writing a consenting user's food and exercise diary, body measurements, and profile, plus webhook subscriptions for data-change notifications. OAuth 2.0 authorization-code grant; JSON over HTTPS; all calls prefixed with /v2/.

Documentation

Specifications

Other Resources

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/myfitnesspal-api-v2"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.

AsyncAPI Specification

myfitnesspal-notifications-asyncapi.yml Raw ↑
asyncapi: 3.0.0
x-apievangelist:
  generated: '2026-07-20'
  method: generated
  source: https://myfitnesspalapi.com/docs/subscription-request-body
  note: >-
    Generated faithfully from MyFitnessPal's documented webhook (subscription) notification payload.
    MyFitnessPal does not publish an AsyncAPI document; this captures the documented event surface so it
    can be scored and browsed. The provider delivers change notifications via HTTP POST to a
    partner-registered callback URL.
info:
  title: MyFitnessPal Subscription Notifications
  version: v2
  description: >-
    Webhook notifications delivered by MyFitnessPal to partner applications when a subscribed user's
    data changes. A single POST may batch notifications about multiple items belonging to multiple
    users (up to thousands of items). Partners should acknowledge quickly (202 Accepted) and process
    asynchronously. Subscriptions are managed via the /v2/subscription resource and require the
    `subscriptions` OAuth scope.
  externalDocs:
    url: https://myfitnesspalapi.com/docs/subscription-design
servers:
  partner-callback:
    host: your.partner.domain.com
    protocol: https
    description: Partner-hosted HTTPS endpoint registered via POST /v2/subscription that receives notifications.
channels:
  notifications:
    address: /
    description: The partner callback endpoint receiving batched data-change notifications.
    messages:
      DataChangeNotification:
        $ref: '#/components/messages/DataChangeNotification'
operations:
  receiveNotifications:
    action: receive
    channel:
      $ref: '#/channels/notifications'
    summary: Receive a batch of user data-change notifications.
    messages:
    - $ref: '#/components/messages/DataChangeNotification'
components:
  messages:
    DataChangeNotification:
      name: DataChangeNotification
      title: Data-change notification batch
      summary: An array of item notifications, each identifying a changed resource and its owning user.
      contentType: application/json
      payload:
        $ref: '#/components/schemas/NotificationBatch'
  schemas:
    NotificationBatch:
      type: array
      items:
        $ref: '#/components/schemas/Notification'
    Notification:
      type: object
      required: [user_id, item_type, item_url]
      properties:
        user_id:
          type: string
          description: Identifier of the user whose data changed.
        item_type:
          type: string
          description: The type of resource that changed.
          enum:
          - measurements
          - diary_exercise
          - diary_meal
          - user_info
        item_url:
          type: string
          format: uri
          description: The v2 API URL of the changed item (or a query URL to fetch the changes).
      example:
        user_id: 9w48rhg489hg48h2fw4
        item_type: measurements
        item_url: https://api.myfitnesspal.com/v2/measurements/4398hvg4klvi4nhg