> ## Documentation Index
> Fetch the complete documentation index at: https://openwearables.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Activity Totals

> Returns the period's daily activity added up: days, steps, distance and active energy.

The same days the daily summaries return, one per date after source priority,
so a total matches what paging through them would add up to.



## OpenAPI

````yaml /openapi.json get /api/v1/users/{user_id}/summaries/activity/totals
openapi: 3.1.0
info:
  title: Open Wearables API
  version: 0.9.0
servers: []
security: []
paths:
  /api/v1/users/{user_id}/summaries/activity/totals:
    get:
      tags:
        - 'External: Summaries'
      summary: Get Activity Totals
      description: >-
        Returns the period's daily activity added up: days, steps, distance and
        active energy.


        The same days the daily summaries return, one per date after source
        priority,

        so a total matches what paging through them would add up to.
      operationId: get_activity_totals_api_v1_users__user_id__summaries_activity_totals_get
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: User Id
        - name: start_date
          in: query
          required: true
          schema:
            type: string
            description: >-
              ISO 8601 datetime (e.g. `2023-11-07T05:31:56Z`) or Unix timestamp
              in seconds. Date-only strings (e.g. `2023-11-07`) are also
              accepted and cover the whole day, so a date-only range includes
              both boundary days.
            examples:
              - '2023-11-07T05:31:56Z'
              - '2023-11-07'
            format: date-time
            title: Start Date
          description: >-
            ISO 8601 datetime (e.g. `2023-11-07T05:31:56Z`) or Unix timestamp in
            seconds. Date-only strings (e.g. `2023-11-07`) are also accepted and
            cover the whole day, so a date-only range includes both boundary
            days.
        - name: end_date
          in: query
          required: true
          schema:
            type: string
            description: >-
              ISO 8601 datetime (e.g. `2023-11-07T05:31:56Z`) or Unix timestamp
              in seconds. Date-only strings (e.g. `2023-11-07`) are also
              accepted and cover the whole day, so a date-only range includes
              both boundary days.
            examples:
              - '2023-11-07T05:31:56Z'
              - '2023-11-07'
            format: date-time
            title: End Date
          description: >-
            ISO 8601 datetime (e.g. `2023-11-07T05:31:56Z`) or Unix timestamp in
            seconds. Date-only strings (e.g. `2023-11-07`) are also accepted and
            cover the whole day, so a date-only range includes both boundary
            days.
        - name: X-Open-Wearables-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Open-Wearables-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityTotals'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    ActivityTotals:
      properties:
        days:
          type: integer
          title: Days
          description: Days with activity data, one per date after source priority
          example: 365
        steps:
          type: integer
          title: Steps
          description: Sum of daily steps
          example: 2841230
        distance_meters:
          type: number
          title: Distance Meters
          description: Sum of daily distance
          example: 2104380.5
        active_calories_kcal:
          type: number
          title: Active Calories Kcal
          description: Sum of daily active energy
          example: 152340
        avg_steps:
          anyOf:
            - type: integer
            - type: 'null'
          title: Avg Steps
          description: Mean steps over the days that report steps; null when none do
          example: 7784
      type: object
      required:
        - days
        - steps
        - distance_meters
        - active_calories_kcal
      title: ActivityTotals
      description: >-
        The period's daily activity added up: the same days the daily summaries
        return.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /api/v1/auth/login

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.