> ## 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 Summary

> Returns daily aggregated activity metrics.

Aggregates time-series data (steps, energy, heart rate, etc.) by day.



## OpenAPI

````yaml https://api.openwearables.io/openapi.json get /api/v1/users/{user_id}/summaries/activity
openapi: 3.1.0
info:
  title: Open Wearables API
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/users/{user_id}/summaries/activity:
    get:
      tags:
        - 'External: Summaries'
      summary: Get Activity Summary
      description: |-
        Returns daily aggregated activity metrics.

        Aggregates time-series data (steps, energy, heart rate, etc.) by day.
      operationId: get_activity_summary_api_v1_users__user_id__summaries_activity_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 normalized to midnight UTC.
            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
            normalized to midnight UTC.
        - 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 normalized to midnight UTC.
            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
            normalized to midnight UTC.
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 400
            minimum: 1
            default: 50
            title: Limit
        - name: sort_order
          in: query
          required: false
          schema:
            type: string
            pattern: ^(asc|desc)$
            default: asc
            title: Sort Order
        - 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/PaginatedResponse_ActivitySummary_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    PaginatedResponse_ActivitySummary_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ActivitySummary'
          type: array
          title: Data
        pagination:
          $ref: '#/components/schemas/Pagination'
        metadata:
          $ref: '#/components/schemas/TimeseriesMetadata'
      type: object
      required:
        - data
        - pagination
        - metadata
      title: PaginatedResponse[ActivitySummary]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ActivitySummary:
      properties:
        date:
          type: string
          format: date
          title: Date
        source:
          $ref: '#/components/schemas/SourceMetadata'
        steps:
          anyOf:
            - type: integer
            - type: 'null'
          title: Steps
          description: Total step count
          example: 8432
        distance_meters:
          anyOf:
            - type: number
            - type: 'null'
          title: Distance Meters
          example: 6240.5
        floors_climbed:
          anyOf:
            - type: integer
            - type: 'null'
          title: Floors Climbed
          description: Calculated from elevation (1 floor ≈ 3m)
          example: 12
        elevation_meters:
          anyOf:
            - type: number
            - type: 'null'
          title: Elevation Meters
          description: Raw total elevation gain
          example: 36
        active_calories_kcal:
          anyOf:
            - type: number
            - type: 'null'
          title: Active Calories Kcal
          description: Active energy burned
          example: 342.5
        total_calories_kcal:
          anyOf:
            - type: number
            - type: 'null'
          title: Total Calories Kcal
          description: Active + basal energy
          example: 2150
        active_minutes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Active Minutes
          description: Minutes with activity above threshold
          example: 60
        sedentary_minutes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sedentary Minutes
          description: Minutes with minimal activity
          example: 480
        intensity_minutes:
          anyOf:
            - $ref: '#/components/schemas/IntensityMinutes'
            - type: 'null'
        heart_rate:
          anyOf:
            - $ref: '#/components/schemas/HeartRateStats'
            - type: 'null'
      type: object
      required:
        - date
        - source
      title: ActivitySummary
    Pagination:
      properties:
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Cursor to fetch next page, null if no more data
          example: eyJpZCI6IjEyMzQ1Njc4OTAiLCJ0cyI6MTcwNDA2NzIwMH0
        previous_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous Cursor
          description: Cursor to fetch previous page
        has_more:
          type: boolean
          title: Has More
          description: Whether more data is available
        total_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Count
          description: Total number of records matching the query
          example: 150
      type: object
      required:
        - has_more
      title: Pagination
    TimeseriesMetadata:
      properties:
        resolution:
          anyOf:
            - type: string
              enum:
                - raw
                - 1min
                - 5min
                - 15min
                - 1hour
            - type: 'null'
          title: Resolution
        sample_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sample Count
        start_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start Time
        end_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End Time
      type: object
      title: TimeseriesMetadata
    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
    SourceMetadata:
      properties:
        provider:
          type: string
          title: Provider
          example: apple_health
        device:
          anyOf:
            - type: string
            - type: 'null'
          title: Device
          example: Apple Watch Series 9
      type: object
      required:
        - provider
      title: SourceMetadata
    IntensityMinutes:
      properties:
        light:
          anyOf:
            - type: integer
            - type: 'null'
          title: Light
        moderate:
          anyOf:
            - type: integer
            - type: 'null'
          title: Moderate
        vigorous:
          anyOf:
            - type: integer
            - type: 'null'
          title: Vigorous
      type: object
      title: IntensityMinutes
    HeartRateStats:
      properties:
        avg_bpm:
          anyOf:
            - type: integer
            - type: 'null'
          title: Avg Bpm
        max_bpm:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Bpm
        min_bpm:
          anyOf:
            - type: integer
            - type: 'null'
          title: Min Bpm
      type: object
      title: HeartRateStats
      description: Heart rate statistics for a period.
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /api/v1/auth/login

````