keywordstring필수
Search keyword
https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-groupsSearches Xiaohongshu community groups by keyword with support for pagination, recommendation flags, and search filters.
[
{
"data": {
"code": 0,
"data": {
"group_info_list": [
{
"active_info": {
"last_active_time": 0,
"last_seven_day_active_user_num": 1,
"last_seven_day_msg_num": 1,
"yesterday_active_user_num": 0
},
"allow_group_map": true,
"avatar": "https://sns-avatar-qc.xhscdn.com/im-avatar/6705aab84a43c5000181a0cf.png?imageView2/2/w/400/format/png",
"create_source": "iconEntry",
"create_time": 1726006843000,
"group_creator_id": "5b0a501f11be105edbf57a2c",
"group_desc": "",
"group_id": "137043980683949163",
"group_live_switch": true,
"group_master_id": "5b0a501f11be105edbf57a2c",
"group_name": "分享尖端科技,Open最强AI",
"group_type": 1,
"group_user_num": 5,
"has_header_hint": false,
"is_auto_group_name": false,
"is_banned": false,
"is_dismiss": false,
"is_hidden": false,
"is_safe_risk": false,
"join_group_approval": true,
"score": 0,
"show": true,
"show_personal_page": true,
"tag_list": [],
"user_group_state": 1,
"user_num_limit": 500
}
],
"group_search_filters": [
{
"id": "order_by",
"name": "Sort by",
"options": [
{
"id": "default",
"name": "All",
"need_location_permission": false
},
{
"id": "activity",
"name": "Most active",
"need_location_permission": false
},
{
"id": "memberNum",
"name": "Most members",
"need_location_permission": false
}
]
},
{
"id": "location_at",
"name": "Location",
"options": [
{
"id": "default",
"name": "All",
"need_location_permission": false
},
{
"id": "local",
"name": "Same-city",
"need_location_permission": false
}
]
}
],
"has_more": false
},
"debug_id": "1605ab9a",
"debug_info": "gAAAAABqhswvKWGuVWfd1TO0-26PtO_oTRTBeaqYMbf-4y3urjgbLLp-bHQlWzUF5q8MfVcUdpE-KbGjiZ4275U73bWhJCw4BUlA4PyOHsZTcsYj8GQIANnTBUwKtQhrgaoMkrIIHv7E9zLmIHXa1felJWNlawfjQbYFVMV6J_LZMi5Q0NTe4PidywowZYxIKGo-BNkRR16bSCuWQbCz0lEhJvAgP3JxNpajOIteyY1y30DLUEMqJnkfdINakSQgS66WkJKP3XF6y0ymBHnS2LxK5-JEgx5vOcsMVKgoeL94qnenZlRrqH6S6v-i2iE11vAyGu4Bdc_uGXFe-lHfLoroofLvphSEE4mUEVZM2J3p4w6HZGj6RF326MXGknbZj4afRMEL0IAOJy9SGy6HRc2iE389-nfmmBvm2ELfuRB5LKmzE4zdI68=",
"msg": "成功",
"success": true
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
Searches Xiaohongshu (RED) community groups by keyword. Each result includes the group name, ID, member count, creation time and recent activity. The response also lists the sort and location filters the search offers.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-groups" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "OpenAI"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword |
is_recommend | integer | No | Is recommend, 0=no, 1=yes |
page_no | integer | No | Page number, start from 0 |
search_id | string | No | Search ID, pass value from first search response for pagination |
source | string | No | Source, default "unifiedSearchGroup" |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"group_info_list": [
{
"active_info": {
"last_active_time": 0,
"last_seven_day_active_user_num": 1,
"last_seven_day_msg_num": 1,
"yesterday_active_user_num": 0
},
"allow_group_map": true,
"avatar": "https://sns-avatar-qc.xhscdn.com/im-avatar/6705aab84a43c5000181a0cf.png?imageVie…",
"create_source": "iconEntry",
"create_time": 1726006843000,
"group_creator_id": "5b0a501f11be105edbf57a2c",
"group_desc": "",
"group_id": "137043980683949163",
"group_live_switch": true,
"group_master_id": "5b0a501f11be105edbf57a2c",
"group_name": "分享尖端科技,Open最强AI",
"group_type": 1
}
],
"group_search_filters": [
{
"id": "order_by",
"name": "Sort by",
"options": [
{
"id": "default",
"name": "All",
"need_location_permission": false
}
]
}
],
"has_more": false
},
"debug_id": "9ccc2d5c",
"debug_info": "gAAAAABq6ZFqTDryUFdcvIzj2g2mgpYHFrQuFEAhRKjaEDFMV9cV1Iy2BBPpdOdm9IiqQZ-jUEPNbVZM…",
"msg": "成功",
"success": true
}
| Field | Meaning |
|---|---|
data.group_info_list[].group_id | ID of the group, returned as a string. |
data.group_info_list[].group_name / group_desc | Name and description of the group. The description can be empty. |
data.group_info_list[].group_user_num / user_num_limit | Current member count and the maximum number of members the group allows. |
data.group_info_list[].active_info.last_seven_day_active_user_num / last_seven_day_msg_num / yesterday_active_user_num | Counts of active users and messages over the last seven days, and active users yesterday. |
data.group_info_list[].create_time | Time the group was created, as a number that looks like a Unix timestamp in milliseconds. |
data.group_info_list[].group_creator_id / group_master_id | User IDs of the group creator and the group master. |
data.group_info_list[].join_group_approval | true when joining the group needs approval. |
data.group_info_list[].is_banned / is_dismiss / is_hidden | Flags that show whether the group is banned, dismissed or hidden. |
data.group_search_filters[].id / name | Filter group, such as order_by (Sort by) or location_at (Location). |
data.group_search_filters[].options[].id / name | Choices inside a filter, such as activity (Most active) or memberNum (Most members). |
data.has_more | true when more results are available for the next page. |
page_no to 0 for the first page and raise it for later pages.search_id from the first response when you request later pages. The trimmed response shown here does not include a search_id field, so check your own response for it.data.has_more to see if another page exists.$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/search-groups" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": "unifiedSearchGroup",
"keyword": "OpenAI",
"page_no": 0,
"search_id": "",
"is_recommend": 0
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
keywordstring필수Search keyword
is_recommendintegerIs recommend, 0=no, 1=yes
기본값: 0
page_nointegerPage number, start from 0
기본값: 0
search_idstringSearch ID, pass value from first search response for pagination
기본값: ""
sourcestringSource, default "unifiedSearchGroup"
기본값: "unifiedSearchGroup"
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"code": 0,
"data": {
"group_info_list": [
{
"active_info": {
"last_active_time": 0,
"last_seven_day_active_user_num": 1,
"last_seven_day_msg_num": 1,
"yesterday_active_user_num": 0
},
"allow_group_map": true,
"avatar": "https://sns-avatar-qc.xhscdn.com/im-avatar/6705aab84a43c5000181a0cf.png?imageView2/2/w/400/format/png",
"create_source": "iconEntry",
"create_time": 1726006843000,
"group_creator_id": "5b0a501f11be105edbf57a2c",
"group_desc": "",
"group_id": "137043980683949163",
"group_live_switch": true,
"group_master_id": "5b0a501f11be105edbf57a2c",
"group_name": "分享尖端科技,Open最强AI",
"group_type": 1,
"group_user_num": 5,
"has_header_hint": false,
"is_auto_group_name": false,
"is_banned": false,
"is_dismiss": false,
"is_hidden": false,
"is_safe_risk": false,
"join_group_approval": true,
"score": 0,
"show": true,
"show_personal_page": true,
"tag_list": [],
"user_group_state": 1,
"user_num_limit": 500
}
],
"group_search_filters": [
{
"id": "order_by",
"name": "Sort by",
"options": [
{
"id": "default",
"name": "All",
"need_location_permission": false
},
{
"id": "activity",
"name": "Most active",
"need_location_permission": false
},
{
"id": "memberNum",
"name": "Most members",
"need_location_permission": false
}
]
},
{
"id": "location_at",
"name": "Location",
"options": [
{
"id": "default",
"name": "All",
"need_location_permission": false
},
{
"id": "local",
"name": "Same-city",
"need_location_permission": false
}
]
}
],
"has_more": false
},
"debug_id": "1605ab9a",
"debug_info": "gAAAAABqhswvKWGuVWfd1TO0-26PtO_oTRTBeaqYMbf-4y3urjgbLLp-bHQlWzUF5q8MfVcUdpE-KbGjiZ4275U73bWhJCw4BUlA4PyOHsZTcsYj8GQIANnTBUwKtQhrgaoMkrIIHv7E9zLmIHXa1felJWNlawfjQbYFVMV6J_LZMi5Q0NTe4PidywowZYxIKGo-BNkRR16bSCuWQbCz0lEhJvAgP3JxNpajOIteyY1y30DLUEMqJnkfdINakSQgS66WkJKP3XF6y0ymBHnS2LxK5-JEgx5vOcsMVKgoeL94qnenZlRrqH6S6v-i2iE11vAyGu4Bdc_uGXFe-lHfLoroofLvphSEE4mUEVZM2J3p4w6HZGj6RF326MXGknbZj4afRMEL0IAOJy9SGy6HRc2iE389-nfmmBvm2ELfuRB5LKmzE4zdI68=",
"msg": "成功",
"success": true
}
}
]더 살펴보기
| 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/search-groups에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.01, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: keyword (string). 선택: is_recommend (integer), page_no (integer), search_id (string) 및 source (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Xiaohongshu (RED) Group Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Xiaohongshu API 액세스를 별도로 신청할 필요는 없습니다.