Recommended Items
Returns recommended items for a profile
Field | Type | Required | options |
---|---|---|---|
profileId | id | yes | profileId is available from either getUserByUsername or getUserByUserId |
limit | number | yes |
index.ts
await api.getRecommendedItems(profileId, limit);
Here a Sample of the function:
sample.ts
// sample
await api.getRecommendedItems(user.profileId, 20);
Example response
{
"items": [
{
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-e3c5f6cf-b6c9-4df0-b14a-a0f8fd72fad0",
"assetUrl": "https://ubiservices.cdn.ubi.com/0d2ae42d-4c27-4cb7-af6c-2099062302bb/DeployerAssetsJune2023/f843c6b1_ba62_dc85_9392_a708bd22815d.png",
"itemId": "e3c5f6cf-b6c9-4df0-b14a-a0f8fd72fad0",
"name": "BLACK ICE",
"tags": [
"F2",
"Texture",
"W_AR_FAMASG2",
"Y1S1",
"sku_china",
"sku_ww",
"type_weapon_skins",
"type_weaponskin",
"rarity_superrare",
"lc_classic-edition-v0",
"lc_yttrium-edition-v0"
],
"type": "WeaponSkin",
"marktetData": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-e3c5f6cf-b6c9-4df0-b14a-a0f8fd72fad0",
"sellStats": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-e3c5f6cf-b6c9-4df0-b14a-a0f8fd72fad0-9ef71262-515b-46e8-b9a8-b6b6ad456c67-sell",
"paymentItemId": "9ef71262-515b-46e8-b9a8-b6b6ad456c67",
"lowestPrice": 210,
"highestPrice": 1000000,
"activeCount": 2703
},
"buyStats": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-e3c5f6cf-b6c9-4df0-b14a-a0f8fd72fad0-9ef71262-515b-46e8-b9a8-b6b6ad456c67-buy",
"paymentItemId": "9ef71262-515b-46e8-b9a8-b6b6ad456c67",
"lowestPrice": 10,
"highestPrice": 180,
"activeCount": 1174
},
"lastSoldAt": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-e3c5f6cf-b6c9-4df0-b14a-a0f8fd72fad0-9ef71262-515b-46e8-b9a8-b6b6ad456c67-last",
"paymentItemId": "9ef71262-515b-46e8-b9a8-b6b6ad456c67",
"price": 180,
"performedAt": "2024-10-06T11:33:09.881Z"
}
}
},
{
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-452d6796-8176-4af1-858b-7d87dabad8a5",
"assetUrl": "https://ubiservices.cdn.ubi.com/0d2ae42d-4c27-4cb7-af6c-2099062302bb/DeployerAssetsJune2023/02143738_7e78_0d62_f5e3_41458fa33730.png",
"itemId": "452d6796-8176-4af1-858b-7d87dabad8a5",
"name": "BLACK ICE",
"tags": [
"C8-SFW",
"Texture",
"W_AR_C8SFW",
"Y1S1",
"sku_china",
"sku_ww",
"type_weapon_skins",
"type_weaponskin",
"rarity_superrare",
"lc_classic-edition-v0",
"lc_classic-edition-v17",
"lc_classic-edition-v18",
"lc_classic-edition-v19",
"lc_classic-edition-v20",
"lc_platinum-edition-v0",
"lc_classic-edition-v22",
"lc_classic-edition-v21"
],
"type": "WeaponSkin",
"marktetData": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-452d6796-8176-4af1-858b-7d87dabad8a5",
"sellStats": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-452d6796-8176-4af1-858b-7d87dabad8a5-9ef71262-515b-46e8-b9a8-b6b6ad456c67-sell",
"paymentItemId": "9ef71262-515b-46e8-b9a8-b6b6ad456c67",
"lowestPrice": 500,
"highestPrice": 1000000,
"activeCount": 3565
},
"buyStats": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-452d6796-8176-4af1-858b-7d87dabad8a5-9ef71262-515b-46e8-b9a8-b6b6ad456c67-buy",
"paymentItemId": "9ef71262-515b-46e8-b9a8-b6b6ad456c67",
"lowestPrice": 10,
"highestPrice": 461,
"activeCount": 3560
},
"lastSoldAt": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-452d6796-8176-4af1-858b-7d87dabad8a5-9ef71262-515b-46e8-b9a8-b6b6ad456c67-last",
"paymentItemId": "9ef71262-515b-46e8-b9a8-b6b6ad456c67",
"price": 510,
"performedAt": "2024-10-06T11:32:37.031Z"
}
}
},
{
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-8b9b75a2-4ed6-49aa-a403-a1f4122c75c6",
"assetUrl": "https://ubiservices.cdn.ubi.com/0d2ae42d-4c27-4cb7-af6c-2099062302bb/DeployerAssetsJune2023/42fcb009_21d9_4458_02c6_b8e54e9fd453.png",
"itemId": "8b9b75a2-4ed6-49aa-a403-a1f4122c75c6",
"name": "BLACK ICE",
"tags": [
"416-C_CARBINE",
"Texture",
"W_AR_HK416",
"Y1S1",
"sku_china",
"sku_ww",
"type_weapon_skins",
"type_weaponskin",
"rarity_superrare",
"lc_classic-edition-v0",
"lc_classic-edition-v17",
"lc_classic-edition-v18",
"lc_classic-edition-v19",
"lc_classic-edition-v20",
"lc_platinum-edition-v0",
"lc_classic-edition-v22",
"lc_classic-edition-v21"
],
"type": "WeaponSkin",
"marktetData": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-8b9b75a2-4ed6-49aa-a403-a1f4122c75c6",
"sellStats": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-8b9b75a2-4ed6-49aa-a403-a1f4122c75c6-9ef71262-515b-46e8-b9a8-b6b6ad456c67-sell",
"paymentItemId": "9ef71262-515b-46e8-b9a8-b6b6ad456c67",
"lowestPrice": 299,
"highestPrice": 1000000,
"activeCount": 4606
},
"buyStats": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-8b9b75a2-4ed6-49aa-a403-a1f4122c75c6-9ef71262-515b-46e8-b9a8-b6b6ad456c67-buy",
"paymentItemId": "9ef71262-515b-46e8-b9a8-b6b6ad456c67",
"lowestPrice": 10,
"highestPrice": 267,
"activeCount": 2642
},
"lastSoldAt": {
"id": "0d2ae42d-4c27-4cb7-af6c-2099062302bb-8b9b75a2-4ed6-49aa-a403-a1f4122c75c6-9ef71262-515b-46e8-b9a8-b6b6ad456c67-last",
"paymentItemId": "9ef71262-515b-46e8-b9a8-b6b6ad456c67",
"price": 289,
"performedAt": "2024-10-06T11:32:29.498Z"
}
}
}
]
}