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

# Read a video's conversions

> Sales credited to one video over a date range, grouped by conversion name, with a count and total revenue for each. This is the money the video earned, not the plays it counted.

Requires a token with the `analytics:read` scope.

Server: `https://app.trackplay.io/api/v1`



## OpenAPI

````yaml /api-reference/openapi.json get /videos/{video}/analytics/conversions
openapi: 3.1.0
info:
  title: TrackPlay API
  description: >-
    Send conversions and events to TrackPlay, and read them back. Authenticated
    with scoped tokens you mint in the dashboard.
  version: 1.0.0
servers:
  - url: https://app.trackplay.io/api/v1
    description: App API. Conversions, videos, webhooks.
  - url: https://e.trackplay.io
    description: Events API. High-volume event ingest.
security:
  - bearerAuth: []
paths:
  /videos/{video}/analytics/conversions:
    get:
      tags:
        - Analytics
      summary: Read a video's conversions
      description: >-
        Sales credited to one video over a date range, grouped by conversion
        name, with a count and total revenue for each. This is the money the
        video earned, not the plays it counted.


        Requires a token with the `analytics:read` scope.


        Server: `https://app.trackplay.io/api/v1`
      operationId: getVideoAnalyticsConversions
      parameters:
        - name: video
          in: path
          required: true
          schema:
            type: integer
          description: The video's numeric ID.
        - name: from
          in: query
          required: false
          schema:
            type: string
            format: date
          description: Start of the range, as an ISO date. Defaults to 30 days ago.
        - name: to
          in: query
          required: false
          schema:
            type: string
            format: date
          description: End of the range, as an ISO date. Defaults to today.
        - name: tz
          in: query
          required: false
          schema:
            type: string
            default: UTC
          description: Timezone the range is read in, as an IANA name. Defaults to `UTC`.
      responses:
        '200':
          description: Conversions grouped by name.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversionsResponse'
              examples:
                conversions:
                  value:
                    video_id: 481
                    from: '2026-06-17'
                    to: '2026-07-17'
                    conversions:
                      - event_name: conversion
                        count: 214
                        total_revenue: 63558
                      - event_name: upsell
                        count: 38
                        total_revenue: 7562
        '401':
          description: >-
            `AUTH_REQUIRED`: no token sent. `INVALID_TOKEN`: the token is
            invalid, expired, or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: '`INSUFFICIENT_SCOPE`: the token does not carry `analytics:read`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: No video with that ID exists in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: >-
            Validation failed. A date could not be parsed, or `to` fell before
            `from`.
        '429':
          description: Rate limited. Reads are capped at 600 requests per minute per token.
components:
  schemas:
    ConversionsResponse:
      type: object
      properties:
        video_id:
          type: integer
        from:
          type: string
        to:
          type: string
        conversions:
          type: array
          description: One entry per conversion name.
          items:
            type: object
            properties:
              event_name:
                type: string
                description: The conversion name, e.g. `conversion` or `upsell`.
              count:
                type: integer
                description: How many of this conversion landed in the range.
              total_revenue:
                type: number
                description: Summed revenue for this conversion name.
    ApiError:
      type: object
      description: The error shape the app API returns on a failed read or export.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: >-
                A stable error code, e.g. `INSUFFICIENT_SCOPE`,
                `VIDEO_NOT_FOUND`, `EXPORT_NOT_FOUND`.
            message:
              type: string
              description: What went wrong, in plain English.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A scoped token minted in **Settings → API tokens**. Send it as
        `Authorization: Bearer tplt_…` or `X-API-Key: tplt_…`.

````