> ## 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 songs for an actor



## OpenAPI

````yaml /api-reference/openapi.json get /app.rocksky.actor.getActorSongs
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.actor.getActorSongs:
    get:
      tags:
        - app.rocksky.actor
      summary: Get songs for an actor
      operationId: app.rocksky.actor.getActorSongs
      parameters:
        - name: did
          in: query
          required: true
          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: 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: startDate
          in: query
          required: false
          description: The start date to filter albums from (ISO 8601 format)
          schema:
            type: string
            description: The start date to filter albums from (ISO 8601 format)
            format: date-time
        - name: endDate
          in: query
          required: false
          description: The end date to filter albums to (ISO 8601 format)
          schema:
            type: string
            description: The end date to filter albums to (ISO 8601 format)
            format: date-time
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  tracks:
                    type: array
                    items:
                      $ref: >-
                        #/components/schemas/app.rocksky.song.defs__songViewBasic
        '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.song.defs__songViewBasic:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the song.
        title:
          type: string
          description: The title of the song.
        artist:
          type: string
          description: The artist of the song.
        albumArtist:
          type: string
          description: The artist of the album the song belongs to.
        albumArt:
          anyOf:
            - type: string
              description: The URL of the album art image.
              format: uri
            - type: 'null'
        uri:
          anyOf:
            - type: string
              description: The URI of the song.
              x-lexicon-format: at-uri
            - type: 'null'
        album:
          type: string
          description: The album of the song.
        duration:
          type: integer
          description: The duration of the song in milliseconds.
        trackNumber:
          anyOf:
            - type: integer
              description: The track number of the song in the album.
            - type: 'null'
        discNumber:
          anyOf:
            - type: integer
              description: The disc number of the song in the album.
            - type: 'null'
        playCount:
          type: integer
          description: The number of times the song has been played.
          minimum: 0
        likesCount:
          type: integer
          description: The number of users who have loved this song.
          minimum: 0
        liked:
          type: boolean
          description: >-
            Whether the authenticated user has loved this song. False when
            unauthenticated.
        uniqueListeners:
          type: integer
          description: The number of unique listeners who have played the song.
          minimum: 0
        albumUri:
          anyOf:
            - type: string
              description: The URI of the album the song belongs to.
              x-lexicon-format: at-uri
            - type: 'null'
        artistUri:
          anyOf:
            - type: string
              description: The URI of the artist of the song.
              x-lexicon-format: at-uri
            - type: 'null'
        sha256:
          type: string
          description: The SHA256 hash of the song.
        mbid:
          type: string
          description: The MusicBrainz ID of the song.
        isrc:
          anyOf:
            - type: string
              description: The International Standard Recording Code (ISRC) of the song.
            - type: 'null'
        tags:
          type: array
          items:
            type: string
        createdAt:
          type: string
          description: The timestamp when the song was created.
          format: date-time
        updatedAt:
          type: string
        mbId:
          anyOf:
            - type: string
            - type: 'null'
        youtubeLink:
          anyOf:
            - type: string
            - type: 'null'
        spotifyLink:
          anyOf:
            - type: string
            - type: 'null'
        appleMusicLink:
          anyOf:
            - type: string
            - type: 'null'
        tidalLink:
          anyOf:
            - type: string
            - type: 'null'
        lyrics:
          anyOf:
            - type: string
            - type: 'null'
        composer:
          anyOf:
            - type: string
            - type: 'null'
        genre:
          anyOf:
            - type: string
            - type: 'null'
        label:
          anyOf:
            - type: string
            - type: 'null'
        copyrightMessage:
          anyOf:
            - type: string
            - type: 'null'
        key:
          anyOf:
            - type: string
            - type: 'null'
        acoustidFingerprint:
          anyOf:
            - type: string
            - type: 'null'
        xataVersion:
          anyOf:
            - type: integer
            - type: 'null'
        bpm:
          type:
            - number
            - 'null'
          description: >-
            Production returns a nullable floating-point number. Lexicon has no
            float primitive; retained as an open extension without changing
            response data.
    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.