Breakdown Data

​

Read viewer metrics for one workspace, grouped by a breakdown field, for a date range of at most 60 days. This does not change assets or delivery.

Body

application/json
  • Breakdown fields and metrics to retrieve data for. Supports 1 to 3 breakdowns per request.

    Properties: 4
  • The timeframe to get the data for. The maximum range between start_at and end_at is 60 days.

    Properties: 2
  • The five to ten character unique identifier of the Gumlet workspace ID available on the Video Workspaces.

  • Build segments of users using multiple filters on the data, value should be an exact match

    Properties: 3

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/insights/breakdown-data
import Gumlet from '@gumlet/nodejs-sdk';

const client = new Gumlet({
  apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});

const videoAnalytic = await client.videoAnalytics.breakdownData({
  date_range: { start_at: '2026-07-20', end_at: '2026-08-20' },
  filters: [],
  breakdowns: [
    { name: 'custom_video_id', metric: 'views', page: 1, page_size: 10 },
    { name: 'custom_video_title', metric: 'completion_percent_by_views', page: 1, page_size: 10 },
  ],
  workspace_id: '6694c405e63913eecf3cf5fb',
});

console.log(videoAnalytic);
{
  "views": {
    "data": [
      {
        "key": "6710e83eb340677d98c71df7",
        "value": 253,
        "unit": "views"
      },
      {
        "key": "6710e83eb340677d98c71dd8",
        "value": 120,
        "unit": "views"
      }
    ],
    "has_next_page": true,
    "current_page": 1
  }
}