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

# Albums

> Get the album discography — albums, EPs, and singles with release dates — for a provider `artist_id`.

Fetches provider data for `/artist/:id/albums`. By default `is_primary=true`, so only albums where the artist is a main artist are returned — DJ compilations, soundtracks, and pure feature appearances are excluded. Pass `is_primary=false` to include them. Discover a provider `artist_id` via [GET /api/research](/api-reference/research/search) with `type=artists`.



## OpenAPI

````yaml api-reference/openapi/research.json GET /api/research/albums
openapi: 3.1.0
info:
  title: Recoup API - Research
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.recoupable.dev
security: []
paths:
  /api/research/albums:
    get:
      description: >-
        Get the album discography — albums, EPs, and singles with release dates
        — for a provider `artist_id`.


        Fetches provider data for `/artist/:id/albums`. By default
        `is_primary=true`, so only albums where the artist is a main artist are
        returned — DJ compilations, soundtracks, and pure feature appearances
        are excluded. Pass `is_primary=false` to include them. Discover a
        provider `artist_id` via [GET
        /api/research](/api-reference/research/search) with `type=artists`.
      parameters:
        - name: artist_id
          in: query
          required: true
          description: Provider artist ID. Obtain it from search or lookup results.
          schema:
            type: string
            pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]*$
            example: artist_123
        - name: is_primary
          in: query
          required: false
          description: >-
            When `true` (default), returns only albums where the artist is a
            main artist. Set to `false` to include feature appearances, DJ
            compilations, and soundtracks.
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
            default: 'true'
        - name: limit
          in: query
          required: false
          description: >-
            Number of albums to return. Defaults to the provider's default when
            omitted.
          schema:
            type: string
            pattern: ^[1-9][0-9]*$
        - name: offset
          in: query
          required: false
          description: Pagination offset. Defaults to 0 when omitted.
          schema:
            type: string
            pattern: ^(0|[1-9][0-9]*)$
      responses:
        '200':
          description: Artist albums
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchAlbumsResponse'
        '400':
          description: Validation error — `artist_id` missing or invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchErrorResponse'
        '401':
          description: Authentication failed — invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchErrorResponse'
        '501':
          $ref: '#/components/responses/ResearchDataSourceUnsupported'
components:
  schemas:
    ResearchAlbumsResponse:
      type: object
      description: Artist catalog (albums view).
      properties:
        status:
          type: string
          example: success
        albums:
          type: array
          items:
            $ref: '#/components/schemas/ResearchCatalogItem'
    ResearchErrorResponse:
      type: object
      required:
        - status
        - error
      description: >-
        Error response returned by all research endpoints for validation
        failures (400) and authentication errors (401).
      properties:
        status:
          type: string
          enum:
            - error
          example: error
        error:
          type: string
          description: Human-readable error message describing what went wrong.
          example: 'Missing required parameter: artist'
    ResearchCatalogItem:
      type: object
      description: >-
        Catalog entry. Unfiltered — high-catalog artists include
        remixes/features.
      properties:
        title:
          type: string
        avatar:
          type: string
        release_date:
          type: string
          nullable: true
        site_url:
          type: string
        isrcs:
          type: array
          items:
            type: string
        artists:
          type: array
          items:
            $ref: '#/components/schemas/ResearchArtistMini'
      additionalProperties: true
    ResearchArtistMini:
      type: object
      description: Minimal artist reference embedded in catalog/activity payloads.
      properties:
        name:
          type: string
      additionalProperties: true
  responses:
    ResearchDataSourceUnsupported:
      description: >-
        The configured research data source does not support this endpoint or
        data shape.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResearchErrorResponse'
          example:
            status: error
            error: Request failed with status 501

````