Interactions Statistics
These functions are not enabled by default due to higher resource consumption. Contact support@recombee.com if you need to enable them.
| Name | Description | Example |
|---|---|---|
| num_item_bookmarks | Returns the number of bookmarks of an item | |
| num_item_detail_views | Returns the number of detail views of an item | |
| num_item_purchases | Returns the number of purchases of an item | |
| num_item_ratings | Returns the number of ratings of an item |
Number of Bookmarks
Returns number of bookmarks of an item specified by its ID.
Definition
| Argument | Type | Meaning |
|---|---|---|
id |
| ID of an item |
Example
Number of Detail Views
Returns number of detail views of an item specified by its ID.
Definition
| Argument | Type | Meaning |
|---|---|---|
id |
| ID of an item |
Example
Number of Purchases
Returns number of purchases of an item specified by its ID.
You can use this function for example for recommending only items that have just few purchases and you need to sell them.
Definition
| Argument | Type | Meaning |
|---|---|---|
id |
| ID of an item |
Example
Number of Ratings
Returns number of ratings of an item specified by its ID.
Optionally you can get number of only the positive ratings (> 0) or negative (< 0) ratings.
You can use this function for example for recommending only items that have already a certain number of positive ratings.
Definition
| Argument | Type | Meaning |
|---|---|---|
id |
| ID of an item |
rating_type |
| Optional. Take into consideration only |