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

# Get scrobble counts grouped by the release decade of the music



## OpenAPI

````yaml /api-reference/openapi.json get /app.rocksky.charts.getDecades
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.charts.getDecades:
    get:
      tags:
        - app.rocksky.charts
      summary: Get scrobble counts grouped by the release decade of the music
      operationId: app.rocksky.charts.getDecades
      parameters:
        - name: did
          in: query
          required: false
          description: The DID or handle of the actor to scope the chart to
          schema:
            type: string
            description: The DID or handle of the actor to scope the chart to
            x-lexicon-format: at-identifier
        - name: startDate
          in: query
          required: false
          description: The start date to count scrobbles from (ISO 8601 format)
          schema:
            type: string
            description: The start date to count scrobbles from (ISO 8601 format)
            format: date-time
        - name: endDate
          in: query
          required: false
          description: The end date to count scrobbles to (ISO 8601 format)
          schema:
            type: string
            description: The end date to count scrobbles to (ISO 8601 format)
            format: date-time
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  decades:
                    type: array
                    items:
                      $ref: >-
                        #/components/schemas/app.rocksky.charts.defs__decadeViewBasic
        '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.charts.defs__decadeViewBasic:
      type: object
      properties:
        decade:
          type: integer
          description: The first year of the decade, e.g. 1990.
        scrobbles:
          type: integer
          description: The number of scrobbles of music released in this decade.
        uniqueAlbums:
          type: integer
          description: The number of distinct albums scrobbled from this decade.
    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.