---
title: "List live ad breaks"
method: GET
path: "/v2/sites/{site_id}/live/{media_id}/ad_breaks/"
tags: ["ssai"]
---

# List live ad breaks

`GET /v2/sites/{site_id}/live/{media_id}/ad_breaks/`

## Request

- Base URL: `https://api.jwplayer.com`
- URL: `https://api.jwplayer.com/v2/sites/{site_id}/live/{media_id}/ad_breaks/`
- Auth: API key in header `Authorization`

List all live ad breaks for a media

## Path parameters

- `site_id` string, required: Unique identifier for a resource
- `media_id` string, required: Unique identifier for a resource

## Query parameters

- `page` integer
- `page_length` integer
- `from` string: lower bound of the time range
- `to` string: upper bound of the time range

## Response `200`

Request to list live ad breaks successful

- AdBreakResourcesRead
  - `page` integer: Offset for returned resources
  - `page_length` integer: Maximum number of resources to return
  - `total` integer: Number of resources available before pagination
  - `ad_breaks` AdBreakResourceRead[]: Array of all ad_breaks for a media
    - `schema` string
    - `id` string: Unique identifier for a resource
    - `created` string: Date and time at which the resource was created
    - `last_modified` string: Date and time at which the resource was most recently modified
    - `type` string: Name of the type of resource.
    - `relationships` object: Ancilliary resources associated to the primary resource being read
    - `metadata` object, required
      - `start_time` string: Date and time for when the ad should start
      - `duration` number: Duration of the ad break in seconds

## Other responses

- `404`: Resource with ID supplied does not exist in account and object namespace

## Changes

- **2026-11-03** `9fad6bd5872e`: 1 info
  - added the media type `application/json` for the response with the status `404`

[Operation history](https://skmtc.dev/jwplayer/apis/management-api-v2/changes/v2/sites/:site_id/live/:media_id/ad_breaks/get.md)

---

[API](https://skmtc.dev/jwplayer/apis/management-api-v2.md) - [All operations](https://skmtc.dev/jwplayer/apis/management-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/jwplayer/apis/management-api-v2/revisions/9fad6bd5872e?raw)
