---
updatedAt: 2026-07-13T16:28:15.000Z
agentTools:
  projectIndex: https://docs.uplynk.com/llms.txt
---

# Get Virtual Linear Playlist

v4

Retrieves a specific virtual linear playlist. Identify a virtual linear playlist by its system-defined ID.

### Request

Request syntax:

GET /linear-playlist/[Playlist ID](#GETPlaylistID)

Define the following variable when submitting the above request:

| Variable<br />A variable represents a value that must be replaced. A variable consists of either a URL segment (e.g., "0001" in /0001/) or a query string value (e.g., "3" in mediaTypes=3). | Description                                                                                                                                                                                                                                                          |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Playlist ID  Required                                                                                                                                                                        | Replace this variable with the system-defined ID assigned to the desired virtual linear playlist.  Use the [Get All Virtual Linear Playlists endpoint](#GetMultiplePublishingSchedules) to retrieve a list of virtual linear playlists and their system-defined IDs. |

### Response

The response for a successful request contains the following properties:

| Name                  | Data Type | Description                                                                                                                                                                                                                                                                                                                                    |
| --------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| @id                   | String    | Indicates the relative path to this endpoint.                                                                                                                                                                                                                                                                                                  |
| @type                 | String    | Returns LinearPlaylist.                                                                                                                                                                                                                                                                                                                        |
| active                | Integer   | Determines the playlist's status. Valid values are:   *0: Inactive* 1: Active                                                                                                                                                                                                                                                                  |
| ad\_slate\_fill       | Integer   | Determines whether ad breaks with insufficient ads will be filled with ad slate. Valid values are:   *0: Disables ad slate and returns back to content.* 1: Enables ad slate.                                                                                                                                                                  |
| beam\_break\_duration | Integer   | Determines whether ad breaks defined within an asset are honored and their duration. Valid values are:   *0: Ad breaks are ignored.* #: Sets the duration, in seconds, for all ad breaks.                                                                                                                                                      |
| desc                  | String    | Sets the virtual linear playlist's description.                                                                                                                                                                                                                                                                                                |
| id                    | String    | Indicates the virtual linear playlist system-defined ID.                                                                                                                                                                                                                                                                                       |
| playlist              | List      | Contains an ordered list of assets and ad breaks.  A virtual linear playlist supports up to 600 assets.                                                                                                                                                                                                                                        |
| profile               | String    | Reserved for future use.                                                                                                                                                                                                                                                                                                                       |
| repeat                | Integer   | Determines the number of times that the playlist will be repeated. Valid values are:   *0: The playlist will not repeat.* -1: The playlist will repeat indefinitely. \* #: The playlist will repeat the specified number of times.                                                                                                             |
| skip\_drm             | Integer   | Determines whether playback of the virtual linear playlist requires a [digital signature](../Setup/Playback-URLs.htm#SigningPURLs). Valid values are:   *0: Playback requires a digital signature.* 1: Playback is allowed without a digital signature.   This property takes precedence over an asset's Require a token for playback setting. |
| studio\_drm\_required | Integer   | Determines whether playback of the virtual linear playlist will be secured via [Studio DRM](../Security/Studio-DRM.htm). Valid values are:   *0: Playback is not secured by Studio DRM.* 1: Playback is secured via DRM.   This property takes precedence over an asset's Require studio approved DRM for playback setting.                    |

#### playlist List

The playlist list defines a virtual linear playlist via the following properties:

| Name | Data Type  | Description                                                                                                                                    |
| ---- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| beam | Dictionary | Contains an id property.                                                                                                                       |
| id   | String     | beam dictionary  Indicates the system-defined ID for the asset that will be added to the virtual linear playlist.                              |
| ad   | Dictionary | Contains a dur property.                                                                                                                       |
| dur  | Integer    | ad dictionary  Indicates the duration, in seconds, for an ad break that occurs immediately after the asset defined within the beam dictionary. |

### Sample Request/Response

The code below (Python 3) shows how to get a virtual playlist.

This code imports names from the `api_auth` module for V4 APIs (see below).

<TutorialTile
  backgroundColor="#018FF4"
  emoji="🦉"
  id="682d18228dd6230012097fad"
  link="https://docs.uplynk.com/v2.0/recipes/api-auth-for-classic-authentication-v4-apis"
  slug="api-auth-for-classic-authentication-v4-apis"
  title="API Auth for Classic Authentication (V4 APIs)"
/>

```python
import requests
from api_auth import APICredentials, APIParams

class VirtualLinearPlaylist:
    def __init__(self):
        self.host = "https://services.uplynk.com"

    def run(self):
        self._get_virtual_linear_playlist()

    def _get_virtual_linear_playlist(self):
        playlist_id = 'abce801613f94955b17db4f7c8e8137c' # Replace with the desired playlist ID.
        url = "{}{}{}".format(self.host, "/api/v4/linear-playlist/", playlist_id)

        headers = {'Content-Type': 'application/json'}

        response = requests.get(
            url, params=APIParams(APICredentials()).get_params({}), headers=headers
        )

        print(response.json())

VirtualLinearPlaylist().run()
```

Response:

```json
{
	"@id": "/api/v4/linear-playlist/abce801613f94955b17db4f7c8e8137c",
	"@type": "LinearPlaylist",
	"id": "abce801613f94955b17db4f7c8e8137c",
	"desc": "Sample Playlist",
	"repeat": -1,
	"profile": "",
	"beam_break_duration": 30,
	"ad_slate_fill": 0,
	"active": 1,
	"skip_drm": 0,
	"studio_drm_required": 0,
	"playlist": [{
			"beam": {
				"id": "abc123456defghi789jklmno012345pq"
			}
		}, {
			"ad": {
				"dur": 20
			}
		}, {
			"beam": {
				"id": "1df8d13992cd4222a7343b8fafd89cd7"
			}
		}
	]
}
```

<br />