Vionlabs Docs

Vionlabs Contextual Ad Breaks API

Vionlabs API for retrieval of the Contextual Ad Breaks results.

Get Adbreaks

Get Contextual Ad Break for an item in the customer catalog (movie only)

GET
/results/contextual_adbreak/v1/{inventory_id}
key<token>

In: query

Path Parameters

inventory_idInventory Id

Customer identifier of the asset in the catalog

Query Parameters

version?Version

Contextual Ad Break results version code

Response Body

curl -X GET "https://loading/results/contextual_adbreak/v1/string?version=string"
{
  "inventory_id": "string",
  "type": "movie",
  "vionlabs_id": "string",
  "version_id": "string",
  "context_adbreak": [
    {
      "timestamp": 0,
      "frame_number": 0,
      "rank": 1,
      "contains_nudity": true,
      "contains_profanity": true,
      "keyword": {
        "house": 0.8338738679885864,
        "home invasion": 0.6720908284187317
      },
      "mood_tag": {
        "amusing": 0.7611500024795532,
        "suspenseful": 0.5756270885467529
      },
      "iab_version": "3.0",
      "iab_tier": {
        "Houses": 0.4657664895057678,
        "Home Entertaining": 0.3500327467918396,
        "Special Interest  Indie or Art House": 0.3367156684398651,
        "Smart Home": 0.3314751386642456,
        "Home Security": 0.32824498414993286,
        "Home Improvement": 0.3170643746852875,
        "Home Appliances": 0.3063124120235443
      },
      "iab_uid": {
        "326": 0.3500327467918396,
        "665": 0.4657664895057678,
        "712": 0.3314751386642456,
        "743": 0.32824498414993286,
        "788": 0.3367156684398651,
        "809": 0.3170643746852875,
        "833": 0.3063124120235443
      },
      "iab_all_versions": {
        "2.0": {
          "iab_tier": {
            "Utility/Online Tool": 0.58,
            "Remodeling & Construction": 0.56
          },
          "iab_uid": {
            "276": 0.56,
            "1008": 0.58
          }
        },
        "2.2": {
          "iab_tier": {
            "Utility/Online Tool": 0.58,
            "Remodeling & Construction": 0.56
          },
          "iab_uid": {
            "276": 0.56,
            "1008": 0.58
          }
        },
        "3.0": {
          "iab_tier": {
            "Remodeling & Construction": 0.56,
            "Interior Decorating": 0.47
          },
          "iab_uid": {
            "276": 0.56,
            "283": 0.47
          }
        }
      }
    }
  ]
}
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Get item Contextual Ad Breaks result status and data

Get Contextual Ad Break for an item in the customer catalog

GET
/results/contextual_adbreak/v2/{inventory_id}
key<token>

In: query

Path Parameters

inventory_idInventory Id

Customer identifier of the asset in the catalog

Query Parameters

version?Version

Contextual Ad Break results 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/contextual_adbreak/v2/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": "string",
    "type": "movie",
    "vionlabs_id": "string",
    "version_id": "string",
    "context_adbreak": [
      {
        "timestamp": 0,
        "frame_number": 0,
        "rank": 1,
        "contains_nudity": true,
        "contains_profanity": true,
        "keyword": {
          "house": 0.8338738679885864,
          "home invasion": 0.6720908284187317
        },
        "mood_tag": {
          "amusing": 0.7611500024795532,
          "suspenseful": 0.5756270885467529
        },
        "iab_version": "3.0",
        "iab_tier": {
          "Houses": 0.4657664895057678,
          "Home Entertaining": 0.3500327467918396,
          "Special Interest  Indie or Art House": 0.3367156684398651,
          "Smart Home": 0.3314751386642456,
          "Home Security": 0.32824498414993286,
          "Home Improvement": 0.3170643746852875,
          "Home Appliances": 0.3063124120235443
        },
        "iab_uid": {
          "326": 0.3500327467918396,
          "665": 0.4657664895057678,
          "712": 0.3314751386642456,
          "743": 0.32824498414993286,
          "788": 0.3367156684398651,
          "809": 0.3170643746852875,
          "833": 0.3063124120235443
        },
        "iab_all_versions": {
          "2.0": {
            "iab_tier": {
              "Utility/Online Tool": 0.58,
              "Remodeling & Construction": 0.56
            },
            "iab_uid": {
              "276": 0.56,
              "1008": 0.58
            }
          },
          "2.2": {
            "iab_tier": {
              "Utility/Online Tool": 0.58,
              "Remodeling & Construction": 0.56
            },
            "iab_uid": {
              "276": 0.56,
              "1008": 0.58
            }
          },
          "3.0": {
            "iab_tier": {
              "Remodeling & Construction": 0.56,
              "Interior Decorating": 0.47
            },
            "iab_uid": {
              "276": 0.56,
              "283": 0.47
            }
          }
        }
      }
    ]
  }
}
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Get paginated list of items with Contextual Ad Breaks results statuses and data ordered by creation/update timestamp

Gets paginated list of items with Contextual Ad Breaks results statuses for the customer catalog

GET
/results/contextual_adbreak/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

Default500
Range1 <= value
type?AssetTypeSelector

Specify type of assets

Default"all"
version?Version

Specifies result version code

Response Body

curl -X GET "https://loading/results/contextual_adbreak/v2/?from_utcdatetime=2024-03-06T20%3A00%3A00&to_utcdatetime=2024-03-07T20%3A00%3A00&page_num=0&page_size=500&type=all&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"
    }
  ]
}