1.8 Alpha3 - How do you get a list of the playlist via the API?

It’s not well documented, but possible and described in my api guide - 1.8 API Introduction

So pretty much
GET Layouts (might be used with filters) to see list of layouts - so you will have layoutId, regionId on that layout and playlistId in that region.

Example response:

{
    "layoutId": 287,
    "ownerId": 2,
    "campaignId": 287,
    "backgroundImageId": null,
    "schemaVersion": 3,
    "layout": "4K UHD Video",
    "description": null,
    "backgroundColor": "#ffffff",
    "createdDt": "2016-11-14 12:19:04",
    "modifiedDt": "2016-11-14 15:35:52",
    "status": 1,
    "retired": 0,
    "backgroundzIndex": 0,
    "width": 1080,
    "height": 1920,
    "displayOrder": null,
    "duration": 140,
    "statusMessage": null,
    "regions": [
      {
        "regionId": 1127,
        "layoutId": 287,
        "ownerId": 2,
        "name": "Video-1",
        "width": "1080.0000",
        "height": "1704.0000",
        "top": "0.0000",
        "left": "0.0000",
        "zIndex": 0,
        "playlists": [
          {
            "playlistId": 1112,
            "ownerId": 2,
            "name": "Video-1",
            "tags": [],
            "widgets": [],
            "permissions": [],
            "displayOrder": "1"
          }
        ],

If there are more regions / playlist they will be listed there as well.

1 Like