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

# Track

> Get full provider track metadata by track `id` — title, artists, albums, release date, genres, popularity, and platform IDs.

This endpoint is a thin proxy over the provider `/track/:id` detail lookup. Discover a provider track ID via [GET /api/research](/api-reference/research/search) with `type=tracks` — pick a result's `id`, then call this endpoint. Keeping the two concerns separate means predictable credit charging and no silent wrong-match behavior for ambiguous queries.



## OpenAPI

````yaml api-reference/openapi/research.json GET /api/research/track
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/track:
    get:
      description: >-
        Get full provider track metadata by track `id` — title, artists, albums,
        release date, genres, popularity, and platform IDs.


        This endpoint is a thin proxy over the provider `/track/:id` detail
        lookup. Discover a provider track ID via [GET
        /api/research](/api-reference/research/search) with `type=tracks` — pick
        a result's `id`, then call this endpoint. Keeping the two concerns
        separate means predictable credit charging and no silent wrong-match
        behavior for ambiguous queries.
      parameters:
        - name: id
          in: query
          required: true
          description: Provider track ID. Obtain it from search results or a track lookup.
          schema:
            type: string
            pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]*$
            example: track_123
      responses:
        '200':
          description: Track metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchTrackResponse'
        '400':
          description: Validation error — `id` missing or not a positive integer
          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'
        '404':
          description: No provider track exists with the supplied `id`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchErrorResponse'
        '501':
          $ref: '#/components/responses/ResearchDataSourceUnsupported'
components:
  schemas:
    ResearchTrackResponse:
      type: object
      description: Track metadata and audio analysis.
      properties:
        status:
          type: string
          example: success
        result:
          type: string
          example: success
        message:
          type: string
          example: Data Retrieved.
        track_info:
          $ref: '#/components/schemas/ResearchTrackInfo'
        audio_analysis:
          type: array
          items:
            $ref: '#/components/schemas/ResearchAudioAnalysisEntry'
    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'
    ResearchTrackInfo:
      type: object
      description: Full track record.
      properties:
        songstats_track_id:
          type: string
          description: >-
            Songstats track id — pass to `GET /api/research/track/stats` or `GET
            /api/research/track`.
        title:
          type: string
        avatar:
          type: string
        site_url:
          type: string
        release_date:
          type: string
          nullable: true
        artists:
          type: array
          items:
            $ref: '#/components/schemas/ResearchArtistMini'
        is_remix:
          type: boolean
        collaborators:
          type: array
          items:
            $ref: '#/components/schemas/ResearchCollaborator'
        labels:
          type: array
          items:
            type: object
            additionalProperties: true
        distributors:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
            additionalProperties: true
        genres:
          type: array
          items:
            type: string
        links:
          type: array
          items:
            $ref: '#/components/schemas/ResearchLink'
      additionalProperties: true
    ResearchAudioAnalysisEntry:
      type: object
      properties:
        key:
          type: string
          description: Audio feature name, e.g. `acousticness`, `tempo`.
        value:
          type: string
          description: Feature value (string-encoded).
    ResearchArtistMini:
      type: object
      description: Minimal artist reference embedded in catalog/activity payloads.
      properties:
        name:
          type: string
      additionalProperties: true
    ResearchCollaborator:
      type: object
      properties:
        name:
          type: string
        roles:
          type: array
          items:
            type: string
      additionalProperties: true
    ResearchLink:
      type: object
      description: External platform link.
      properties:
        source:
          type: string
          description: Platform name, e.g. `spotify`, `apple_music`.
        external_id:
          type: string
          description: Platform-specific ID.
        url:
          type: string
        isrc:
          type: string
          description: ISRC (tracks only).
      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

````