Vionlabs Docs

Vionlabs Catalog API

External docs:SwaggerReDoc

Vionlabs API for ingesting and synchronising asset information. Catalog data is central to the operation of the system. To fully understand the models and the implications of operations, developers and integrators should consult the relevant section of the Vionlabs developer documentation.

GET
/catalog/v1/item

Authorization

X-API-Key<token>

[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.

In: header

Query Parameters

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
allow_deleted?|

Flag to indicate whether previously deleted items should be included

Defaultfalse

Response Body

application/json

application/json

curl -X GET "https://example.com/catalog/v1/item"
[
  {
    "id": "string",
    "vionlabs_id": "string",
    "type": "standalone"
  }
]
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
PUT
/catalog/v1/item

Authorization

X-API-Key<token>

[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/catalog/v1/item" \  -H "Content-Type: application/json" \  -d '{    "id": "string",    "type": "standalone",    "title": "string"  }'
null
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
GET
/catalog/v1/item/{type}/{inventory_id}

Authorization

X-API-Key<token>

[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.

In: header

Path Parameters

type*ItemType

Item type

Value in"standalone" | "series" | "season" | "episode"
inventory_id*Inventory Id

Customer identifier for item as specified in catalog

Query Parameters

allow_deleted?|

Flag to indicate whether previously deleted items should be included

Defaultfalse
asset_model?|

If set to true, the item will be returned in the Asset-based model format. Otherwise, the item will be returned in the Metadata-based model format.This flag can only be enabled for episodes.

Defaultfalse

Response Body

application/json

application/json

curl -X GET "https://example.com/catalog/v1/item/standalone/string"
{
  "id": "string",
  "type": "standalone",
  "title": "string",
  "virtual": false,
  "tag": [
    "string"
  ],
  "poster_urls": [
    "string"
  ],
  "alternative_lang_title": [
    "string"
  ],
  "external_ids": [
    {
      "provider": "IMDB",
      "id": "string"
    }
  ],
  "metadata": {
    "genres": [
      "string"
    ],
    "keywords": [
      "string"
    ],
    "categorized_keywords": [
      {
        "category": "string",
        "keyword": "string"
      }
    ],
    "cast": [
      "string"
    ],
    "roles": [
      "string"
    ],
    "crew": [
      {
        "crew_member": "Jill Smith",
        "role": "producer"
      }
    ],
    "short_description": "string",
    "long_description": "string"
  },
  "ratings": [
    {
      "rating": "PG-13",
      "scheme": "MPAA"
    }
  ],
  "window_info": {
    "start": "string",
    "end": "string"
  },
  "release_year": 1901,
  "logo_urls": {
    "property1": "string",
    "property2": "string"
  },
  "episodic_info": {
    "series_id": "string",
    "season_id": "string",
    "season_number": 1,
    "episode_number": 1
  },
  "extended_episodic_info": {
    "series_id": "string",
    "series_title": "string",
    "season_id": "string",
    "season_title": "string",
    "season_number": 1,
    "episode_number": 1
  },
  "asset_info": {
    "file_uri": "string",
    "video_playback_uri": "string",
    "duration": 1,
    "asset_params": {}
  },
  "operations": {
    "deleted": false,
    "force_asset_reprocess": false
  },
  "timestamp": "string"
}
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
PUT
/catalog/v1/delete/{type}/{inventory_id}

Authorization

X-API-Key<token>

[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.

In: header

Path Parameters

type*ItemType

Item type

Value in"standalone" | "series" | "season" | "episode"
inventory_id*Inventory Id

Customer identifier for item as specified in catalog

Response Body

application/json

application/json

curl -X PUT "https://example.com/catalog/v1/delete/standalone/string"
null
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}