GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeDataSourceType

A data source tells a Web SDK widget or player which content to fetch. Build one with BlazeSDK.DataSourceBuilder(), then pass it as options.dataSource to a widget method or to playContent.

Pages in this section

For the concepts behind data sources, see Data sources and Content recommendations. For the widget methods that consume a data source, see BlazeSDK class.

BlazeDataSourceType

BlazeDataSourceType is the object every DataSourceBuilder method returns.

PropertyTypeRequiredDescription
sourceType

'labels'

|

'ids'

|

'text'

|

'recommendations'

YesThe type of data source: 'labels', 'ids', 'text', or 'recommendations'.
labelsstring

string

[

]

BlazeWidgetLabel

`

`

`

NoA string, array of strings, or BlazeWidgetLabel representing the labels.
labelsPriority

string

|

string

[

]

|

BlazeWidgetLabel

[

]

NoA string, array of strings, or array of BlazeWidgetLabel for priority.
ids

string

[

]

NoAn array of strings representing the IDs.
textstringNoSearch term for text-based content search (case-insensitive). Searches across video catalog metadata.
orderTypeOrderTypeNoThe order type
maxItemsnumberNoThe maximum number of items.
advancedOrderingAdvancedOrderingNoAdvanced ordering configCurrently supports only 'LiveFirst'
recommendationsBlazeRecommendationsNoObject representing the recommendations.
personalizedBlazePersonalized (see below)NoOptional BlazePersonalized filter when sourceType is labels (see above). For Concepts vs this API name, see Content recommendations.
type BlazePersonalizedIds = {
  type: 'ids';
  teams?: Array<string>;
  players?: Array<string>;
};

type BlazePersonalizedLabels = {
  type: 'labels';
  labelsFilterExpression: string | string[] | BlazeWidgetLabel;
  labelsPriority: string | string[] | BlazeWidgetLabel[];
};

type BlazePersonalized = BlazePersonalizedIds | BlazePersonalizedLabels;


Did this page help you?