Metriport Devices Data API

Devices API normalized health data.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /activity Get a user's activity data for a day · Get Activity Data #
Ask an LLM
“How many steps did a patient take on a given day?”
“Can I pull normalized activity data for one user on a specific date?”
Tell an agent
Get activity data for user {userId} on {date}.
Show steps and activity minutes for {userId} on {date}.
GET /biometrics Get a user's biometrics for a day · Get Biometrics Data #
Ask an LLM
“What was a patient's heart rate and blood pressure on a given day?”
“Can I pull normalized biometrics for one user on a specific date?”
Tell an agent
Get biometrics for user {userId} on {date}.
Show heart rate, HRV and blood pressure for {userId} on {date}.
GET /body Get a user's body data · Get Body Data #
Ask an LLM
“What is a patient's weight and body fat on a given day?”
“Can I pull normalized body data for one user?”
Tell an agent
Get body data for user {userId}.
Show weight and body fat for {userId} on {date}.
GET /nutrition Get a user's nutrition data for a day · Get Nutrition Data #
Ask an LLM
“What did this patient eat in a day of nutrition data?”
“Can I get normalized nutrition data for a single date?”
Tell an agent
Get nutrition data for user {userId} on {date}.
Show what this patient ate on {date} from {userId}.
GET /sleep Get a user's sleep data for a day · Get Sleep Data #
Ask an LLM
“How much sleep did this patient get in a day?”
“Can I get normalized sleep data for one date?”
Tell an agent
Get sleep data for user {userId} on {date}.
Show sleep records for {userId} on {date}.

Documentation

Specifications

Schemas & Data

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/metriport:metriport-devices-data-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

metriport-devices-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Metriport Devices Data API
  description: Metriport is an open-source, universal API for healthcare data. The Medical API exchanges patient medical records across the CommonWell and Carequality networks and returns consolidated FHIR R4 data; the Devices API hydrates activity, biometrics, nutrition, and sleep data from connected wearables and mHealth apps. This specification documents the hosted Metriport cloud surface at https://api.metriport.com. The same code may be self-hosted from the open-source repository.
  termsOfService: https://www.metriport.com/terms
  contact:
    name: Metriport Support
    email: contact@metriport.com
    url: https://docs.metriport.com
  version: '1.0'
servers:
- url: https://api.metriport.com
  description: Metriport hosted production API
- url: https://api.sandbox.metriport.com
  description: Metriport sandbox API
security:
- ApiKeyAuth: []
tags:
- name: Devices Data
  description: Devices API normalized health data.
paths:
  /activity:
    get:
      operationId: getActivity
      tags:
      - Devices Data
      summary: Get Activity Data
      description: Retrieves normalized activity data for a user on a given date.
      parameters:
      - $ref: '#/components/parameters/DevicesUserId'
      - $ref: '#/components/parameters/DevicesDate'
      responses:
        '200':
          description: An array of normalized activity data per provider.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DevicesData'
  /biometrics:
    get:
      operationId: getBiometrics
      tags:
      - Devices Data
      summary: Get Biometrics Data
      description: Retrieves normalized biometrics data (heart rate, HRV, respiration, blood pressure, glucose, temperature) for a user on a given date.
      parameters:
      - $ref: '#/components/parameters/DevicesUserId'
      - $ref: '#/components/parameters/DevicesDate'
      responses:
        '200':
          description: An array of normalized biometrics data per provider.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DevicesData'
  /body:
    get:
      operationId: getBody
      tags:
      - Devices Data
      summary: Get Body Data
      description: Retrieves normalized body data (weight, height, body fat) for a user.
      parameters:
      - $ref: '#/components/parameters/DevicesUserId'
      - $ref: '#/components/parameters/DevicesDate'
      responses:
        '200':
          description: An array of normalized body data per provider.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DevicesData'
  /nutrition:
    get:
      operationId: getNutrition
      tags:
      - Devices Data
      summary: Get Nutrition Data
      description: Retrieves normalized nutrition data for a user on a given date.
      parameters:
      - $ref: '#/components/parameters/DevicesUserId'
      - $ref: '#/components/parameters/DevicesDate'
      responses:
        '200':
          description: An array of normalized nutrition data per provider.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DevicesData'
  /sleep:
    get:
      operationId: getSleep
      tags:
      - Devices Data
      summary: Get Sleep Data
      description: Retrieves normalized sleep data for a user on a given date.
      parameters:
      - $ref: '#/components/parameters/DevicesUserId'
      - $ref: '#/components/parameters/DevicesDate'
      responses:
        '200':
          description: An array of normalized sleep data per provider.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DevicesData'
components:
  parameters:
    DevicesDate:
      name: date
      in: query
      required: true
      description: The day to fetch data for, in YYYY-MM-DD format.
      schema:
        type: string
        format: date
    DevicesUserId:
      name: userId
      in: query
      required: true
      description: The Metriport user ID.
      schema:
        type: string
  schemas:
    DevicesData:
      type: object
      description: Normalized device data returned per connected provider, containing a metadata block describing the source plus the normalized samples.
      properties:
        metadata:
          type: object
          properties:
            date:
              type: string
              format: date
            source:
              type: string
              description: The provider the data was hydrated from (e.g. fitbit, oura, garmin).
        biometrics:
          type: object
        activity:
          type: object
        body:
          type: object
        nutrition:
          type: object
        sleep:
          type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key