> ## 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 the scrobbles chart



## OpenAPI

````yaml /api-reference/openapi.json get /app.rocksky.charts.getScrobblesChart
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.getScrobblesChart:
    get:
      tags:
        - app.rocksky.charts
      summary: Get the scrobbles chart
      operationId: app.rocksky.charts.getScrobblesChart
      parameters:
        - name: did
          in: query
          required: false
          description: The DID or handle of the actor
          schema:
            type: string
            description: The DID or handle of the actor
            x-lexicon-format: at-identifier
        - name: artisturi
          in: query
          required: false
          description: The URI of the artist to filter by
          schema:
            type: string
            description: The URI of the artist to filter by
            x-lexicon-format: at-uri
        - name: albumuri
          in: query
          required: false
          description: The URI of the album to filter by
          schema:
            type: string
            description: The URI of the album to filter by
            x-lexicon-format: at-uri
        - name: songuri
          in: query
          required: false
          description: The URI of the track to filter by
          schema:
            type: string
            description: The URI of the track to filter by
            x-lexicon-format: at-uri
        - name: genre
          in: query
          required: false
          description: The genre to filter by
          schema:
            type: string
            description: The genre to filter by
        - name: from
          in: query
          required: false
          description: Start date (ISO 8601). Defaults to 6 months ago.
          schema:
            type: string
            description: Start date (ISO 8601). Defaults to 6 months ago.
        - name: to
          in: query
          required: false
          description: End date (ISO 8601). Defaults to today.
          schema:
            type: string
            description: End date (ISO 8601). Defaults to today.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/app.rocksky.charts.defs__chartsView'
        '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__chartsView:
      type: object
      properties:
        scrobbles:
          type: array
          items:
            $ref: '#/components/schemas/app.rocksky.charts.defs__scrobbleViewBasic'
    XrpcError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
    app.rocksky.charts.defs__scrobbleViewBasic:
      type: object
      properties:
        date:
          type: string
          description: The date of the scrobble.
          format: date-time
        count:
          type: integer
          description: The number of scrobbles on this date.

````

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