Core Request Parameters & Objects - Content Management
Core Request Parameters & Objects
Requests are built using specific Kaltura objects passed as form parameters.
ks(String): Your valid Kaltura Session string.format(Integer): Response format. Use1for JSON (recommended).searchParams(Object): The primary container for your search criteria. The specific type depends on the action (e.g.,KalturaESearchEntryParamsforsearchEntry).searchOperator(Object, e.g.,KalturaESearchEntryOperator): Defines the core search logic.operator(EnumKalturaESearchOperatorType): How to combine thesearchItems.1(AND_OP): All conditions must be met.2(OR_OP): At least one condition must be met.3(NOT_OP): Excludes items matching the nested conditions (typically used within an AND/OR operator).
searchItems(Array): An array of one or more Search Item objects (see Section 7) defining the specific criteria.
orderBy(ObjectKalturaESearchOrderBy, optional): Defines sorting.orderItems(Array): Each item specifies sorting. Use the concrete type for the search action:KalturaESearchEntryOrderByItemforsearchEntry,KalturaESearchCategoryOrderByItemforsearchCategory,KalturaESearchUserOrderByItemforsearchUser,KalturaESearchGroupOrderByItemforsearchGroup. The abstractKalturaESearchOrderByItemreturnsOBJECT_TYPE_ABSTRACT.sortField(Enum, e.g.,KalturaESearchEntryOrderByFieldName): Field likecreated_at,plays,name,last_played_at.sortOrder(EnumKalturaESearchSortOrder):ascordesc.
aggregations(ObjectKalturaESearchAggregation, optional): Defines aggregations (see Example G in Section 8). Note the double nesting:searchParams[aggregations][aggregations][0]— the outeraggregationsis the container object, the inneraggregationsis the array of items.aggregations(Array ofKalturaESearchAggregationItem): Each item specifies:fieldName(Enum, e.g.,KalturaESearchEntryAggregateByFieldName): Field to group by, likemedia_type.size(Integer): Max number of aggregation buckets to return.
pager(ObjectKalturaPager, optional): Controls pagination.pageIndex(Integer): The page number to retrieve (starts at 1).pageSize(Integer): Number of results per page (default 30, max 500).