Get Unique Values

Getting unique values of a property

This request returns the list of values of a specific asset attribute currently used. The response contains a list of values of the given attribute together with the number of matching assets.

For these examples let’s use the source (station or channel or content provider) store.

please refer to the source schema for complete list of properties


To retrieve the ID of all source documents in the store we the attribute endpoint on the property sourceId

GET: https://<base-url>/stores-active/source/attribute/sourceId?api_key=<api-key>

This will get a response similar to below

{ 
    "attribute":"sourceId",
    "values": [
        {"value":"689","count":1},
        {"value":"1198","count":1},
        {"value":"34675","count":1},
        :
        :
    ]
}

To retrieve the call-sign (call letters or textual identifier) of all the sources in the store, we use the attribute endpoint on the property sourceName

GET: https://<base-url>/stores-active/source/attribute/sourceName?api_key=<api-key>

This will get a response similar to below

{
    "attribute":"sourceName",
    "values":[
        {"value":"XEW-DT","count":1},
        {"value":"PIVOT","count":1},
        {"value":"HBOCOM","count":1},
        :
        :
    ]
}

For more details go to the API explorer

Retrieve attribute values

Retrieve all countries of origin in the catalog

GET https://<base-url>/stores-active/contentInstance/event/attribute/countriesOfOrigin.countryId

Retrieve all countries of origin of shows aired on channel HBO

GET https://<base-url>/stores-active/contentInstance/event/attribute/countriesOfOrigin.countryId?filter={"term":"source","value":"HBO"}

Retrieve all sub-attributes of the tags attribute

GET https://<base-url>/stores-active/contentInstance/event/attribute/tags