当前浏览的是 v7 预览版文档(v7 尚未正式发布,API 可能随版本调整)。本页是 v7 新增内容,去 v6 正式版文档首页
@ikenxuan/amagi

搜索用户结果列表

按关键词或小红书号搜用户,返回 user_id 等。翻页手动传 `page`。

GET
/api/xiaohongshu/fetch_search_user

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

keyword*string

搜索关键词或小红书号

Length1 <= length
page?integer

页码,从 1 开始,默认 1

Range1 <= value <= 9007199254740991
page_size?integer

每页条数,默认 15

Range1 <= value <= 100

Response Body

application/json

application/json

curl -X GET "https://example.com/api/xiaohongshu/fetch_search_user?keyword=string"
{  "success": true,  "data": {    "code": 0,    "data": {      "has_more": true,      "result": {        "code": 0,        "message": "string",        "success": true      },      "users": [        {          "fans": "string",          "followed": true,          "id": "string",          "image": "string",          "is_self": true,          "link": "string",          "live_info": {            "has_draw": true,            "has_goods": true,            "has_red_packet": true,            "start_time": 0,            "status": 0          },          "name": "string",          "note_count": 0,          "profession": "string",          "red_id": "string",          "red_official_verified": true,          "red_official_verify_type": 0,          "show_red_official_verify_icon": true,          "sub_title": "string",          "update_time": "string",          "vshow": 0,          "xsec_token": "string"        }      ]    },    "msg": "string",    "success": true  },  "error": {    "kind": "validation",    "code": "string",    "message": "string",    "retryable": true,    "platform": {      "code": "string",      "message": "string"    },    "http": {      "status": 0,      "statusText": "string"    },    "issues": [      {        "path": "string",        "message": "string",        "received": null      }    ]  },  "message": "string",  "meta": {    "requestId": "string",    "clientId": "string",    "platform": "douyin",    "endpoint": "string",    "durationMs": 0,    "attempts": 0,    "trace": [      {        "url": "string",        "method": "string",        "status": 0,        "durationMs": 0,        "reason": "initial",        "retryOf": "string"      }    ]  },  "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}