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

# stats.getStats



## OpenAPI

````yaml /api-reference/openapi.json get /app.rocksky.stats.getStats
openapi: 3.1.0
info:
  title: Rocksky XRPC API
  version: 1.0.0
  description: >-
    Generated from the registered Rocksky XRPC handlers and current lexicons.
    Provider-defined payloads remain open schemas. Some handlers return empty
    fallback objects on service failures. This reference describes the
    repository implementation; production may run an earlier revision.
  license:
    name: MIT License
    identifier: MIT
servers:
  - url: https://api.rocksky.app/xrpc
    description: Rocksky API
security: []
paths:
  /app.rocksky.stats.getStats:
    get:
      tags:
        - app.rocksky.stats
      summary: stats.getStats
      operationId: app.rocksky.stats.getStats
      parameters:
        - name: did
          in: query
          required: true
          description: The DID or handle of the user to get stats for.
          schema:
            type: string
            description: The DID or handle of the user to get stats for.
            x-lexicon-format: at-identifier
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/app.rocksky.stats.defs__statsView'
        '400':
          description: Invalid XRPC request or parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
        default:
          description: XRPC error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
      security: []
components:
  schemas:
    app.rocksky.stats.defs__statsView:
      type: object
      properties:
        scrobbles:
          type: integer
          description: The total number of scrobbles.
        artists:
          type: integer
          description: The total number of unique artists scrobbled.
        lovedTracks:
          type: integer
          description: The total number of tracks marked as loved.
        albums:
          type: integer
          description: The total number of unique albums scrobbled.
        tracks:
          type: integer
          description: The total number of unique tracks scrobbled.
    XrpcError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string

````

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