Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Xiaohongshu (RED) Group Search

API 文件
https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-groups

Searches Xiaohongshu community groups by keyword with support for pagination, recommendation flags, and search filters.

價格
$0.01美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 4 個選填

Playground

輸入
Search keyword
Is recommend, 0=no, 1=yes
Page number, start from 0
Search ID, pass value from first search response for pagination
Source, default "unifiedSearchGroup"
輸出範例
回應outputs · 2.9 KB · 88 行
[
  {
    "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
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Xiaohongshu (RED) Group Search API

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.

Use cases

  • Find active Xiaohongshu groups about a brand or topic such as OpenAI.
  • Compare group sizes and recent activity to choose which communities to monitor.
  • Collect group IDs and creator IDs to track who runs groups in a niche.
  • Read the available sort options to see how group results can be ranked.

Request

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.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword
is_recommendintegerNoIs recommend, 0=no, 1=yes
page_nointegerNoPage number, start from 0
search_idstringNoSearch ID, pass value from first search response for pagination
sourcestringNoSource, default "unifiedSearchGroup"

Example response

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
}

Response fields

FieldMeaning
data.group_info_list[].group_idID of the group, returned as a string.
data.group_info_list[].group_name / group_descName and description of the group. The description can be empty.
data.group_info_list[].group_user_num / user_num_limitCurrent 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_numCounts of active users and messages over the last seven days, and active users yesterday.
data.group_info_list[].create_timeTime the group was created, as a number that looks like a Unix timestamp in milliseconds.
data.group_info_list[].group_creator_id / group_master_idUser IDs of the group creator and the group master.
data.group_info_list[].join_group_approvaltrue when joining the group needs approval.
data.group_info_list[].is_banned / is_dismiss / is_hiddenFlags that show whether the group is banned, dismissed or hidden.
data.group_search_filters[].id / nameFilter group, such as order_by (Sort by) or location_at (Location).
data.group_search_filters[].options[].id / nameChoices inside a filter, such as activity (Most active) or memberNum (Most members).
data.has_moretrue when more results are available for the next page.

Notes

  • Set page_no to 0 for the first page and raise it for later pages.
  • Pass the 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.
  • Check data.has_more to see if another page exists.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON

指南:Best Xiaohongshu API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Xiaohongshu (RED) Group Search API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/search-groups。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Xiaohongshu (RED) Group Search API 的費用是多少?

每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Xiaohongshu (RED) Group Search API 接受哪些參數?

必要:keyword (string)。 選填:is_recommend (integer), page_no (integer), search_id (string) 和 source (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Xiaohongshu (RED) Group Search API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Xiaohongshu 開發者帳號或 API 金鑰嗎?

不需要。Xiaohongshu (RED) Group Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Xiaohongshu API 存取權。