Item Segments Handling

NameDescriptionExample
segment_items

Get items in a Segment

'itemId' in segment_items("genres", "thriller")
item_segments

Get Item Segments to which the item belongs

"thriller" in item_segments("genres", 'itemId')
Gets Items belonging to an Item Segment.
segment_items(segmentation_id, segment_id)
ArgumentTypeMeaning

segmentation_id

string

ID of an Item Segmentation

segment_id

string

ID of a Segment from the given Segmentation

// Allow only thrillers
'itemId' in segment_items("genres", "thriller")
Given an Item Segmentation and an Item, get a set of Item Segments to which the Item belongs.
item_segments(segmentation_id, item_id)
ArgumentTypeMeaning

segmentation_id

string

ID of an Item Segmentation

item_id

string

ID of an Item

// Allow only thrillers
"thriller" in item_segments("genres", 'itemId')
© Copyright 2026, Recombee s.r.o
docs.recombee.com