Vionlabs Docs

Vionlabs Ad Breaks API

Vionlabs API for retrieval of adbreaks results.

Get Adbreaks Millisec

Get Ad Breaks for an item in the customer catalog (movie or series)

GET
/results/adbreaks/v2/filter/millisec/{inventory_id}
key<token>

In: query

Path Parameters

inventory_idInventory Id

Customer identifier for a movie or series item in the catalog

Query Parameters

version?Version

Ad Breaks version code

window?Window

A number of minutes to check for an Ad Break presence

Default5
Range0 < value
separation?Separation

A number of minutes of minimum separation between Ad Breaks

Default1
Range0 < value
skip_first?Skip First

A number of first minutes to skip checking for an Ad Break presence

Default1
Range0 < value
skip_last?Skip Last

A number of last minutes to skip checking for an Ad Break presence

Default1
Range0 < value

Response Body

curl -X GET "https://loading/results/adbreaks/v2/filter/millisec/string?version=string&window=5&separation=1&skip_first=1&skip_last=1"
{
  "inventory_id": "402077_1080p",
  "type": "movie",
  "vionlabs_id": "33880c61819a5d50",
  "version_id": "op-adbreak-v6",
  "adbreak": [
    {
      "rank": 1,
      "candidates": [
        10.6,
        1352.08,
        1886.6,
        2401.6
      ]
    },
    {
      "rank": 2,
      "candidates": [
        1535.4,
        2101.3
      ]
    },
    {
      "rank": 3,
      "candidates": [
        746.68,
        1596.84,
        2290.56
      ]
    },
    {
      "rank": 4,
      "candidates": [
        865.26,
        2550.066
      ]
    }
  ]
}
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Get Adbreaks Frame

Get Ad Breaks for an item in the customer catalog (movie or series)

GET
/results/adbreaks/v2/filter/frame/{inventory_id}
key<token>

In: query

Path Parameters

inventory_idInventory Id

Customer identifier for a movie or series item in the catalog

Query Parameters

version?Version

Ad Breaks version code

window?Window

A number of minutes to check for an Ad Break presence

Default5
Range0 < value
separation?Separation

A number of minutes of minimum separation between Ad Breaks

Default1
Range0 < value
skip_first?Skip First

A number of first minutes to skip checking for an Ad Break presence

Default1
Range0 < value
skip_last?Skip Last

A number of last minutes to skip checking for an Ad Break presence

Default1
Range0 < value

Response Body

curl -X GET "https://loading/results/adbreaks/v2/filter/frame/string?version=string&window=5&separation=1&skip_first=1&skip_last=1"
{
  "inventory_id": "402077_1080p",
  "type": "movie",
  "vionlabs_id": "33880c61819a5d50",
  "version_id": "op-adbreak-v6",
  "adbreak": [
    {
      "rank": 1,
      "candidates": [
        265,
        25247,
        50837,
        60040
      ]
    },
    {
      "rank": 2,
      "candidates": [
        38385,
        45901
      ]
    },
    {
      "rank": 3,
      "candidates": [
        18667,
        39921,
        57264
      ]
    },
    {
      "rank": 4,
      "candidates": [
        7650,
        22711
      ]
    }
  ]
}
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

List Adbreaks

Get paginated list of inventory items with updated Ad Break results ordered by creation/update timestamp.

GET
/results/adbreaks/v2/
key<token>

In: query

Query Parameters

from_utcdatetime?From Utcdatetime

Specifies start of time window (ISO 8601). If not specified then all results will be returned

Formatdate-time
to_utcdatetime?To Utcdatetime

Specifies end of time window (ISO 8601). If not specified then utcnow() value will be used.It is recommended to fix this argument while looping across pages to establish a fixed time window

Formatdate-time
page_num?Page Num

Specifies a positional number of page with results

Default0
Range0 <= value
page_size?Page Size

Specifies a max number of results per page

Default1000
Range1 <= value
version?Version

Adbreaks version code

Response Body

curl -X GET "https://loading/results/adbreaks/v2/?from_utcdatetime=2024-03-06T20%3A00%3A00&to_utcdatetime=2024-03-07T20%3A00%3A00&page_num=0&page_size=1000&version=string"
{
  "page_num": 0,
  "page_size": 0,
  "total_count": 0,
  "item": [
    {
      "inventory_id": "string",
      "type": "movie",
      "vionlabs_id": "string"
    }
  ]
}
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Get item Ad Break result status and data, expressed in seconds

Get the ad breaks result status and data in seconds for an item in the customer catalog

GET
/results/adbreaks/v3/filter/millisec/{inventory_id}
key<token>

In: query

Path Parameters

inventory_idInventory Id

Customer identifier for a movie or series item in the catalog

Query Parameters

version?Version

Ad breaks version code

minimum_separation?Minimum Separation

A number of minutes of minimum separation between Ad Breaks

Default1
Range0 < value
maximum_separation?Maximum Separation

A number of minutes of maximum separation between Ad Breaks

Default5
Range0 < value
skip_first?Skip First

A number of first minutes to skip checking for an Ad Break presence

Default1
Range0 < value
skip_last?Skip Last

A number of last minutes to skip checking for an Ad Break presence

Default1
Range0 < value

Response Body

curl -X GET "https://loading/results/adbreaks/v3/filter/millisec/string?version=string&minimum_separation=1&maximum_separation=5&skip_first=1&skip_last=1"
{
  "status": "success",
  "error": "string",
  "updated": "2019-08-24T14:15:22Z",
  "version_id": "string",
  "inventory_id": "string",
  "type": "movie",
  "data": {
    "inventory_id": "402077_1080p",
    "type": "movie",
    "vionlabs_id": "33880c61819a5d50",
    "version_id": "op-adbreak-v6",
    "adbreak": [
      {
        "rank": 1,
        "candidates": [
          10.6,
          1352.08,
          1886.6,
          2401.6
        ]
      },
      {
        "rank": 2,
        "candidates": [
          1535.4,
          2101.3
        ]
      },
      {
        "rank": 3,
        "candidates": [
          746.68,
          1596.84,
          2290.56
        ]
      },
      {
        "rank": 4,
        "candidates": [
          865.26,
          2550.066
        ]
      }
    ]
  }
}
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Get item ad break result status and data in frames

Get the ad breaks result status and data in frames for an item in the customer catalog

GET
/results/adbreaks/v3/filter/frame/{inventory_id}
key<token>

In: query

Path Parameters

inventory_idInventory Id

Customer identifier for a movie or series item in the catalog

Query Parameters

version?Version

Ad breaks version code

minimum_separation?Minimum Separation

A number of minutes of minimum separation between Ad Breaks

Default1
Range0 < value
maximum_separation?Maximum Separation

A number of minutes of maximum separation between Ad Breaks

Default5
Range0 < value
skip_first?Skip First

A number of first minutes to skip checking for an Ad Break presence

Default1
Range0 < value
skip_last?Skip Last

A number of last minutes to skip checking for an Ad Break presence

Default1
Range0 < value

Response Body

curl -X GET "https://loading/results/adbreaks/v3/filter/frame/string?version=string&minimum_separation=1&maximum_separation=5&skip_first=1&skip_last=1"
{
  "status": "success",
  "error": "string",
  "updated": "2019-08-24T14:15:22Z",
  "version_id": "string",
  "inventory_id": "string",
  "type": "movie",
  "data": {
    "inventory_id": "402077_1080p",
    "type": "movie",
    "vionlabs_id": "33880c61819a5d50",
    "version_id": "op-adbreak-v6",
    "adbreak": [
      {
        "rank": 1,
        "candidates": [
          265,
          25247,
          50837,
          60040
        ]
      },
      {
        "rank": 2,
        "candidates": [
          38385,
          45901
        ]
      },
      {
        "rank": 3,
        "candidates": [
          18667,
          39921,
          57264
        ]
      },
      {
        "rank": 4,
        "candidates": [
          7650,
          22711
        ]
      }
    ]
  }
}
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Get paginated list of the updated inventory_id items with the ad break results statuses ordered by creation/update timestamp

Get paginated list of inventory items with the updated ad break results ordered by creation/update timestamp.

GET
/results/adbreaks/v3/
key<token>

In: query

Query Parameters

from_utcdatetime?From Utcdatetime

Specifies start of time window (ISO 8601). If not specified then all results will be returned

Formatdate-time
to_utcdatetime?To Utcdatetime

Specifies end of time window (ISO 8601). If not specified then utcnow() value will be used.It is recommended to fix this argument while looping across pages to establish a fixed time window

Formatdate-time
page_num?Page Num

Specifies a positional number of page with results

Default0
Range0 <= value
page_size?Page Size

Specifies a max number of results per page

Default500
Range1 <= value
version?Version

Ad breaks version code

Response Body

curl -X GET "https://loading/results/adbreaks/v3/?from_utcdatetime=2024-03-06T20%3A00%3A00&to_utcdatetime=2024-03-07T20%3A00%3A00&page_num=0&page_size=500&version=string"
{
  "page_num": 0,
  "page_size": 0,
  "total_count": 0,
  "data": [
    {
      "status": "success",
      "error": "string",
      "updated": "2019-08-24T14:15:22Z",
      "version_id": "string",
      "inventory_id": "string",
      "type": "movie"
    }
  ]
}
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}