keywordstring必填
The search keyword to find users.
https://api.sandbase.ai/v1/api/kuaishou/search-userSearch public Kuaishou user accounts by keyword with page-number pagination. Use it to discover relevant creators or accounts before requesting profile and published-video data.
您的输出将显示在这里
完成输入,然后点击运行。
Returns a list of public Kuaishou user accounts that match a search keyword. Each account includes its ID, display name, bio, follower count, avatar and verification status. The only required input is keyword.
美食, and rank them by fansCount.user_id values to feed into profile and video list requests.kwaiId handles and bios to screen accounts for outreach.curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/search-user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "美食"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | The search keyword to find users. |
page | integer | No | Page number for results, starting from 1. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extParams": {
"disablePhotoInsert": false,
"dynamicShard": false,
"isShowPymkUserPhotos": true,
"isShowScrollTopButton": false,
"rsRecoAfterPlayInterval": 2,
"searchTaskParam": {},
"sessionParams": "",
"streamExtParams": "{\"single\":false,\"predict\":false,\"searchDetailCost\":{\"filterItem\":0,\"getView\":14}…",
"subtagWithPic": false
},
"host-name": "public-bjmt-c26-kce-node826.idchb1az4.hb1.kwaidc.com",
"llsid": "2006455000852273746",
"pcursor": "1",
"portalFlag": true,
"recoPcursor": "no_more",
"recoPymkFlag": false,
"responseCode": 0,
"result": 1,
"userFoldIndex": -1,
"users": [
{
"extra": {
"userInfoExposed": {
"lineSecond": "2"
}
},
"fans": false,
"fansCount": 1229553,
"feedLogCtx": {
"stidContainer": "In8xfDIwMDY0NTUwMDA4NTIyNzM3NDZ8QkFTRTo0MDMwMDA1OHx7InBnIjoic3VmIn18eyJiaXoiOiJz…"
},
"following": false,
"headurl": "http://p4.a.yximgs.com/uhead/AB/2021/02/18/12/BMjAyMTAyMTgxMjA0MTRfNDAzMDAwNThfM…",
"headurls": [
{
"cdn": "p4.a.yximgs.com",
"url": "http://p4.a.yximgs.com/uhead/AB/2021/02/18/12/BMjAyMTAyMTgxMjA0MTRfNDAzMDAwNThfM…"
}
],
"isBanned": false,
"isFavorited": false,
"is_followed": 0,
"kwaiId": "kuaishoumeishi",
"messageLink": "kwai://message/40300058"
}
],
"ussid": "MV81NzQ1MDc3MzkyXzE3OTM2OTEzNzUxNjBfXzQ0NzU"
}
| Field | Meaning |
|---|---|
users[] | List of matching user accounts for the requested page, in search rank order. |
users[].user_id | Numeric ID of the account. Use it to request profile or video data. |
users[].user_name | Display name of the account. |
users[].kwaiId | Public Kuaishou handle of the account. |
users[].user_text | Bio text written by the account owner. |
users[].fansCount | Number of followers the account has. |
users[].user_sex | Gender code of the account. The response shows F and U. |
users[].verified | true if the account is verified. When verified, verifiedDetail.description holds the badge text. |
users[].headurl / users[].headurls[].url | Avatar image URL. headurls lists the same image on different CDN hosts. |
pcursor | Cursor value returned with the page. It was 1 for the first page. |
page to get more results. It starts at 1 and defaults to 1.user_id is a number. Pass it to Kuaishou User Profile or Kuaishou User Published Videos to get more about an account.$0.014286 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/kuaishou/search-user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"keyword": "美食"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
keywordstring必填The search keyword to find users.
pageintegerPage number for results, starting from 1.
默认值:1
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Kuaishou User Search此 API Kuaishou | $0.014286 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/kuaishou/search-user 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.014286,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:keyword (string)。 可选:page (integer)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Kuaishou User Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Kuaishou API 访问权限。