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

# Album measurements

> Latest measured count per track on an album, from the measurement store. `{id}` is a Spotify album id.



## OpenAPI

````yaml api-reference/openapi/research.json GET /api/research/albums/{id}/measurements
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/{id}/measurements:
    get:
      summary: Album measurements
      description: >-
        Latest measured count per track on an album, from the measurement store.
        `{id}` is a Spotify album id.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Spotify album id.
        - name: platform
          in: query
          schema:
            type: string
            default: spotify
          description: Platform to read. Currently `spotify`.
        - name: metric
          in: query
          schema:
            type: string
            default: platform_displayed_play_count
          description: Metric to read.
        - name: latest
          in: query
          schema:
            type: boolean
            default: true
          description: Return the latest capture per track (the only supported mode today).
      responses:
        '200':
          description: Latest per-track measured counts for the album.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchAlbumMeasurementsResponse'
        '401':
          description: Authentication failed — invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchErrorResponse'
        '402':
          description: Insufficient credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchInsufficientCreditsResponse'
        '404':
          description: >-
            No capture exists for this album yet — create a `current`
            measurement-job.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchErrorResponse'
components:
  schemas:
    ResearchAlbumMeasurementsResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        id:
          type: string
          description: Spotify album id.
          example: 70Zkfb99ladZ3q0JVg97co
        platform:
          type: string
          example: spotify
        metric:
          type: string
          example: platform_displayed_play_count
        measurements:
          type: array
          items:
            $ref: '#/components/schemas/ResearchAlbumMeasurementItem'
    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'
    ResearchInsufficientCreditsResponse:
      type: object
      description: >-
        Returned (402) when the account lacks research credits and auto-recharge
        did not cover the call.
      properties:
        error:
          type: string
          enum:
            - insufficient_credits
        remaining_credits:
          type: integer
          example: 0
        required_credits:
          type: integer
          example: 5
        checkoutUrl:
          type: string
          description: Stripe checkout link to top up credits.
        declineReason:
          type: string
          description: Card decline reason when auto-recharge was attempted and failed.
      required:
        - error
        - remaining_credits
        - required_credits
        - checkoutUrl
    ResearchAlbumMeasurementItem:
      type: object
      properties:
        isrc:
          type: string
          example: USQY51771120
        spotify_track_id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        value:
          type: number
          description: Latest measured count.
          example: 297289495
        captured_at:
          type: string
          format: date-time
        data_source:
          type: string
          example: apify_spotify_playcount

````