# 快手 账号搜索 API (kuaishou.user_search)

- Canonical page: https://everyinfra.com/kuaishou-api/user_search
- Endpoint: POST /api/v1/social with {"platform": "kuaishou", "action": "user_search", "params": {...}}
- Price: $0.008 per call ($8 per 1,000 requests); failed and empty results are not charged
- Returns: list, one page of up to 20 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=kuaishou&action=user_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 账号关键词：昵称、快手号或领域词，例如 美食；返回相关的快手账号和粉丝数、作品数。 |
| page_token | not declared | no | not declared | 翻页令牌。不传是第 1 页；之后把上一页响应里的 next_page_token 原样传回取下一页，其余参数不变。每页最多 20 个账号、算一次调用；令牌 24 小时内有效；翻到底时没有 next_page_token。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| next_page_token | 翻页令牌（comments、user_search）：作为下一次请求的 page_token 原样传回取下一页（其余参数不变，24 小时内有效）；同一页每行的值相同，响应顶层也有同一个 next_page_token。没有该字段即到底。 |
| user_id | 快手数字用户 ID（rank 类能力、user_search、user_live），可传 user_live 查直播状态。 |
| nickname | 昵称。 |
| kwai_id | 快手号（账号自己设的 ID，user_search）；没设时没有。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| gender | 性别（user_search）：M 男 / F 女。 |
| verified | 是否认证账号（user_search）。 |
| follower_count | 粉丝数（search、user_posts 是作者的；user_search 是这个账号的）。 |
| video_count | 累计作品数（search、user_posts 是作者的；user_live、user_search 是这个账号的）。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "kuaishou",
  "action": "user_search",
  "params": {
    "keyword": "美食"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "kuaishou",
        "action": "user_search",
        "params": {
            "keyword": "美食",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "kuaishou",
  "action": "user_search",
  "results": [
    {
      "next_page_token": …,
      "user_id": …,
      "nickname": …,
      "kwai_id": …,
      "bio": …,
      "gender": …,
      "verified": …,
      "follower_count": …,
      "video_count": …,
      "avatar_url": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=kuaishou
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
