sku_idstring필수
Product SKU ID (required), e.g. "669ddd44e05f3700011067ed"
https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/product-recommendationsReturns a list of recommended products based on a specified product SKU ID. Supports region-based filtering and cursor pagination.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns a list of recommended products for a given Xiaohongshu (RED) product SKU. Each item has an image, a price, sales tags and a pagination cursor. The only required input is sku_id.
item_on_shelf_time.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/product-recommendations" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sku_id": "669ddd44e05f3700011067ed"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sku_id | string | Yes | Product SKU ID (required), e.g. "669ddd44e05f3700011067ed" |
cursor_score | string | No | Pagination cursor, leave empty for first request, pass cursor_score value from previous response for next page |
region | string | No | Region, default "US" |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"components": [
{
"component_data": {
"component_v_o_list": [
{
"card_type": "defaultGoodsComponentVO",
"data": {
"base_info": {
"buyable": true,
"display_lines": 0,
"distributor_sub": false,
"has_explain": false,
"image": {
"height": 4032,
"url": "https://mall-i10.xhscdn.com/arkgoods/1040g3no31p1407j3i60g5p3mul0k3qndsireqh8?im…",
"width": 3024
},
"in_curation": false,
"item_id": "691c17cfccb9e00001b25114",
"item_on_shelf_time": 1763448869
},
"detail_preload": "{\"type\":\"vision\",\"goods_detail_type\":null,\"original\":null,\"vision\":{\"ver\":\"1.0\",…",
"empty": false,
"image_card_display": {},
"marketing_info": {
"price_info": {
"expected_price": {
"currency": "$",
"price": 5.89,
"price_str": "$5.89",
"price_type": 0
}
}
},
"subscribe_info": {
"status": 0
},
"tag_strategy_map": {
"after_price": [
{
"able_popup": false,
"content": "1533 sold",
"tag_content": {
"content": "1533 sold"
},
"tag_content_list": [
{
"content": "1533 sold"
}
],
"tag_ext_info": {
"sold": "1533"
},
"tag_type": 1,
"type": "sold"
}
],
"behavior": [
{
"able_popup": false,
"content": "6k added to cart",
"style_info": {
"cornerRadius": "2",
"fontColor": "#000000",
"fontColorRgba": "rgba(0, 0, 0, 0.45)",
"fontSize": "12",
"fontTransparency": "0.45",
"frameColor": "#000000",
"frameColorRgba": "rgba(0, 0, 0, 0.20)",
"frameTransparency": "0.2"
},
"tag_content": {
"content": "6k added to cart",
"cornerRadius": "2",
"fontColor": "#000000",
"fontColorRgba": "rgba(0, 0, 0, 0.45)",
"fontSize": "12",
"fontTransparency": "0.45",
"frameColor": "#000000",
"frameColorRgba": "rgba(0, 0, 0, 0.20)"
},
"tag_content_list": [
{
"content": "6k added to cart",
"cornerRadius": "2",
"fontColor": "#000000",
"fontColorRgba": "rgba(0, 0, 0, 0.45)",
"fontSize": "12",
"fontTransparency": "0.45",
"frameColor": "#000000",
"frameColorRgba": "rgba(0, 0, 0, 0.20)"
}
],
"tag_type": 1,
"type": "add_cart_people_threshold"
}
],
"upon_title": [
{
"able_popup": false,
"content": "“确实好用,洗了两次头感觉油的没以前那么快了,味道也很好闻,客服回应很快会帮忙备注”",
"style_info": {
"fontColor": "#9F6A37",
"fontColorDark": "#BFA177",
"fontColorDarkRgba": "rgba(191, 161, 119, 1)",
"fontColorRgba": "rgba(159, 106, 55, 1)",
"fontDarkTransparency": "1.0",
"fontSize": "12.0",
"fontTransparency": "1.0"
},
"tag_content": {
"content": "“确实好用,洗了两次头感觉油的没以前那么快了,味道也很好闻,客服回应很快会帮忙备注”",
"fontColor": "#9F6A37",
"fontColorDark": "#BFA177",
"fontColorDarkRgba": "rgba(191, 161, 119, 1)",
"fontColorRgba": "rgba(159, 106, 55, 1)",
"fontDarkTransparency": 1,
"fontSize": 12,
"fontTransparency": 1
},
"tag_content_list": [
{
"content": "“确实好用,洗了两次头感觉油的没以前那么快了,味道也很好闻,客服回应很快会帮忙备注”",
"fontColor": "#9F6A37",
"fontColorDark": "#BFA177",
"fontColorDarkRgba": "rgba(191, 161, 119, 1)",
"fontColorRgba": "rgba(159, 106, 55, 1)",
"fontDarkTransparency": 1,
"fontSize": 12,
"fontTransparency": 1
}
],
"tag_ext_info": {
"commentId": "572376817738793668",
"reviewerAvatar": "https://sns-avatar-qc.xhscdn.com/avatar/62580edcd24df9e45cc36aaa.jpg?imageView2/…"
},
"tag_type": 1,
"type": "positive_review_with_profile"
}
]
},
"track": {
"cursor_score": 1793692009,
"model_type": "sku",
"track_id": "dssmu2i_dssm@52f30abc-2654-400a-b238-ca79a07febc8"
}
},
"empty": false
}
],
"empty": false,
"extra_info": {
"title": "You may also like"
},
"general_param": "{\"biz_name\":\"goods_detail\",\"cursor_score\":\"\",\"is_pull_down\":false,\"region\":\"US\",…",
"has_more": true,
"total": 0
},
"component_name": "DefaultMixCardComponentV2"
}
],
"result": {
"success": true
}
},
"debug_id": "663a80bf",
"debug_info": "gAAAAABq6ZFqoJ2G_JKLzuCuRBvUzFLdBLhe4f3FG8VNAHNQaDMVjp7RVtDWcxwHHMsXR-rAsPUfqkcg…",
"msg": "ok",
"success": true
}
| Field | Meaning |
|---|---|
data.components[].component_data.component_v_o_list[] | The list of recommended product cards. Each entry is one product. |
data.components[].component_data.component_v_o_list[].data.base_info.item_id | ID of the recommended product. |
data.components[].component_data.component_v_o_list[].data.base_info.image.url | Product image URL. width and height sit next to it in the same object. |
data.components[].component_data.component_v_o_list[].data.base_info.buyable | Whether the product can be bought. |
data.components[].component_data.component_v_o_list[].data.base_info.item_on_shelf_time | Unix timestamp in seconds for when the item went on shelf. |
data.components[].component_data.component_v_o_list[].data.marketing_info.price_info.expected_price.price / price_str / currency | Price as a number, as a display string such as $5.89, and the currency symbol. |
data.components[].component_data.component_v_o_list[].data.tag_strategy_map.after_price[].content | Sales text shown after the price, such as 1533 sold or 5005 sold by shop. The type field names the tag kind, for example sold or seller_sales. |
data.components[].component_data.component_v_o_list[].data.tag_strategy_map.upon_title[].content | Review quote shown above the title on some items. It can be in Chinese. |
data.components[].component_data.component_v_o_list[].data.track.cursor_score | Cursor value for this item. Use the value from the last item to request the next page. |
data.components[].component_data.has_more | Shows whether more recommendations are available. |
track.cursor_score as cursor_score to get the next page. Leave cursor_score empty on the first request.has_more is true when another page exists.region defaults to US. Prices in the sample response are in $.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/product-recommendations" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"region": "US",
"sku_id": "669ddd44e05f3700011067ed",
"cursor_score": ""
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
sku_idstring필수Product SKU ID (required), e.g. "669ddd44e05f3700011067ed"
cursor_scorestringPagination cursor, leave empty for first request, pass cursor_score value from previous response for next page
기본값: ""
regionstringRegion, default "US"
기본값: "US"
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/product-recommendations에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.01, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: sku_id (string). 선택: cursor_score (string) 및 region (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Xiaohongshu (RED) Product Recommendations은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Xiaohongshu API 액세스를 별도로 신청할 필요는 없습니다.