# Recommending Segments

> Source: https://docs.recombee.com/segmentations/recommending-segments

> For the complete documentation index, see [llms.txt](/llms.txt).

# Recommending Segments

## Requesting Recommendations

The Segments can be recommended or searched using the following endpoints:

* [Recommend Item Segments To User](/api/recommendations#request-recommend-item-segments-to-user)
* [Recommend Item Segments To Item](/api/recommendations#request-recommend-item-segments-to-item)
* [Recommend Item Segments To Item Segment](/api/recommendations#request-recommend-item-segments-to-item-segment)
* [Search Item Segments](/api/search#request-search-item-segments)

Before you can use any of that endpoints, you need to[create an Item Segmentation](/segmentations#creating-an-item-segmentation) and then set up a[Scenario](/scenarios) in the Admin UI which will use that Segmentation.

[![Create a Scenario which returns Segments](/img/segmentations/admin_ui_scenario_type.png)](/img/segmentations/admin_ui_scenario_type.png)

Create a Scenario which returns Segments

[![Choose the Segmentation which shall be used in the Scenario](/img/segmentations/admin_ui_scenario_choose_segmentation.png)](/img/segmentations/admin_ui_scenario_choose_segmentation.png)

Choose the Segmentation which shall be used in the Scenario

The ID of that Scenario needs to be provided in the `scenario` parameter of the recommendation request:

```js
const recommended = await client.send(
  new recombee.RecommendItemSegmentsToUser('2c169e', 5, {
    scenario: 'top_categories',
    cascadeCreate: true,
  }),
);
```

These are some examples of how recommending Segments can be used on your website or in your app:

* [Recommending the top genres/categories for a user, and re-ordering homepage rows accordingly](/recipes/video/fully-personalized-homepage/personalized-re-ordering-of-rows-advanced)
* [Recommending the top brands for a user](/recipes/e-commerce/fully-personalized-homepage/brands-for-you)
* [Recommending the top artists or actors for a user](/recipes/video/fully-personalized-homepage/actors-for-you)

## Filtering and Boosting

Recommended Segments can be [filtered or boosted using ReQL](/reql). You can access the ID of a Segment in ReQL using `'segmentId'`.

**Examples of filters:**

* Do not recommend the _coupons_ category to the users  
ReQL  
```  
'segmentId' != "coupons"  
```
* Do not recommend horror movies to kids  
ReQL  
```  
if context_user["is_child_profile"] then 'segmentId' != "Horror" else true  
```

**Example of a booster:**

* Boosting the _Editors Pick_ section  
ReQL  
```  
if 'segmentId' == "Editors Pick" then 2 else 1  
```