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



## OpenAPI

````yaml /api-reference/openapi.json get /app.rocksky.album.getAlbums
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.album.getAlbums:
    get:
      tags:
        - app.rocksky.album
      summary: Get albums
      operationId: app.rocksky.album.getAlbums
      parameters:
        - name: limit
          in: query
          required: false
          description: The maximum number of albums to return
          schema:
            type: integer
            description: The maximum number of albums to return
            minimum: 1
        - name: offset
          in: query
          required: false
          description: The offset for pagination
          schema:
            type: integer
            description: The offset for pagination
            minimum: 0
        - name: genre
          in: query
          required: false
          description: The genre to filter artists by
          schema:
            type: string
            description: The genre to filter artists by
        - name: filter
          in: query
          required: false
          description: >-
            RSQL filter expression, e.g. `artist=="Daft Punk";year=ge=2000`.
            Supports ==, !=, <, <=, >, >=, =in=, =out=, and `;`/`and`, `,`/`or`
            combinators, `*` wildcards in string values. Filterable fields:
            title, artist, year, releaseDate, sha256, uri, artistUri, createdAt
          schema:
            type: string
            description: >-
              RSQL filter expression, e.g. `artist=="Daft Punk";year=ge=2000`.
              Supports ==, !=, <, <=, >, >=, =in=, =out=, and `;`/`and`,
              `,`/`or` combinators, `*` wildcards in string values. Filterable
              fields: title, artist, year, releaseDate, sha256, uri, artistUri,
              createdAt
            maxLength: 2048
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  albums:
                    type: array
                    items:
                      $ref: >-
                        #/components/schemas/app.rocksky.album.defs__albumViewBasic
        '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.album.defs__albumViewBasic:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the album.
        uri:
          anyOf:
            - type: string
              description: The URI of the album.
              x-lexicon-format: at-uri
            - type: 'null'
        title:
          type: string
          description: The title of the album.
        artist:
          type: string
          description: The artist of the album.
        artistUri:
          anyOf:
            - type: string
              description: The URI of the album's artist.
              x-lexicon-format: at-uri
            - type: 'null'
        year:
          anyOf:
            - type: integer
              description: The year the album was released.
            - type: 'null'
        albumArt:
          anyOf:
            - type: string
              description: The URL of the album art image.
              format: uri
            - type: 'null'
        releaseDate:
          anyOf:
            - type: string
              description: The release date of the album.
            - type: 'null'
        sha256:
          type: string
          description: The SHA256 hash of the album.
        playCount:
          type: integer
          description: The number of times the album has been played.
          minimum: 0
        uniqueListeners:
          type: integer
          description: The number of unique listeners who have played the album.
          minimum: 0
        appleMusicLink:
          anyOf:
            - type: string
            - type: 'null'
        spotifyLink:
          anyOf:
            - type: string
            - type: 'null'
        tidalLink:
          anyOf:
            - type: string
            - type: 'null'
        youtubeLink:
          anyOf:
            - type: string
            - type: 'null'
        discogsReleaseId:
          anyOf:
            - type: string
            - type: 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        xataVersion:
          anyOf:
            - type: integer
            - type: 'null'
    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.