搜索群聊/Search groups
Changed on[中文]
用途:
- 根据关键词搜索小红书群聊列表,支持分页
参数:
- keyword: 搜索关键词(必需),如 "上海"
- page_no: 页码,从 0 开始
- search_id: 搜索ID,翻页时传入首次搜索返回的值
- source: 来源,默认 "unifiedSearchGroup"
- is_recommend: 是否推荐,0=否, 1=是
返回:
- 搜索结果数据,包含群聊列表和分页信息
翻页说明:
- 首次请求:search_id 留空(自动生成),page_no 传 0
- 翻页请求:传入首次搜索返回的 search_id,page_no 递增
[English]
Purpose:
- Search Xiaohongshu groups by keyword, supports pagination
Parameters:
- keyword: Search keyword (required), e.g. "上海"
- page_no: Page number, start from 0
- search_id: Search ID, pass value from first search response for pagination
- source: Source, default "unifiedSearchGroup"
- is_recommend: Is recommend, 0=no, 1=yes
Return:
- Search result data, including group list and pagination info
Pagination Guide:
- First request: leave search_id empty (auto-generated), page_no pass 0
- Next page: pass search_id from first search response, increment page_no
[示例/Example]
keyword="上海" page_no=0
Request
- Base URLhttps://api.tikhub.io (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Query parameters
搜索关键词/Search keyword
页码,从0开始/Page number, start from 0
搜索ID,翻页时传入首次搜索返回的值/Search ID for pagination
来源/Source
是否推荐:0=否, 1=是/Is recommend: 0=no, 1=yes
Response
Successful Response
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
the
response's property default value changed fromThis request will be cached. You can access the cached result directly using the URL belowvalid for 24 hours. Accessing the cache will not incur additional charges.toThis response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.for the status - info
the
response's property default value changed from本次请求将被缓存,你可以使用下面的 URL 直接访问缓存结果,有效期为 24 小时,访问缓存不会产生额外费用。to本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。for the status
- info