# 快手 视频详情 API (kuaishou.video)

- Canonical page: https://everyinfra.com/kuaishou-api/video
- Endpoint: POST /api/v1/social with {"platform": "kuaishou", "action": "video", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

快手视频详情按作品链接或作品 ID 读取单条视频，返回一个对象：文案 `text`、时长 `duration_ms`、浏览量、点赞评论分享数，加上独有的收藏数 `collect_count` 和作者性别 `author_gender`，还有作者昵称、快手号、主页链接、是否认证和封面图。复核一条爆款、核对被引用的视频数据，就用它。

`url` 可以是 https://www.kuaishou.com/short-video/ 后面跟作品 ID 的完整链接，也可以直接填作品 ID：3x 开头的短 ID，或纯数字 ID。`author_gender` 取 M 或 F，分别是男和女。作者的粉丝数、累计作品数和口播转写不在这里，要这些用用户内容或关键词搜索。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 快手作品链接（https://www.kuaishou.com/short-video/<作品ID>），也可以直接填作品 ID：3x 开头的短 ID（如 3xmbjwnf3ugq3z4，trending 结果的 video_ids 里就是这种）或纯数字 ID。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| duration_ms | 时长，**毫秒**。 |
| view_count | 这条热点的浏览量（hot_boards）。 |
| like_count | 点赞数。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| share_count | 分享/转发数。null 表示不公开，不等于 0。 |
| collect_count | 收藏数。null 表示不公开，不等于 0。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_name | 作者昵称（显示名）。 |
| author_kwai_id | 快手号（用户自定义 ID）。 |
| author_url | 作者在原平台的主页链接。 |
| author_verified | 作者是否认证（comments 上是评论者）。 |
| author_gender | 作者性别（video、comments：M 男 / F 女）。 |
| cover_url | 封面图（trending 上是这条热点的配图）。 |
| 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": "video",
  "params": {
    "url": "https://www.kuaishou.com/short-video/3xjcagsdmwcnjzu"
  }
}'
```

```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": "video",
        "params": {
            "url": "https://www.kuaishou.com/short-video/3xjcagsdmwcnjzu",
        },
    },
    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": "video",
  "results": {
    "id": …,
    "url": …,
    "text": …,
    "duration_ms": …,
    "view_count": …,
    "like_count": …,
    "comment_count": …,
    "share_count": …,
    "collect_count": …,
    "posted_at": …,
    "author_id": …,
    "author_name": …,
    "author_kwai_id": …,
    "author_url": …,
    "author_verified": …,
    "author_gender": …,
    "cover_url": …,
    "avatar_url": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `url` 里能填什么？

三种写法都行：完整的作品链接，3x 开头的短 ID（例如 3xmbjwnf3ugq3z4），或纯数字 ID。从热榜结果里拿到的作品 ID 就是短 ID 这一种，可以直接填。

### 收藏数和作者性别在哪里读？

`collect_count` 是收藏数，`author_gender` 是作者性别，M 代表男、F 代表女。用户内容返回的视频里不带这两项。`collect_count` 为 null 表示不公开，不等于 0。

### 读完一条视频，怎么看它的作者还发过什么？

把 `author_id` 或 `author_url` 交给用户内容，就能列出这个作者主页上的视频。注意作者的粉丝数和累计作品数不在视频详情里，用户内容和关键词搜索的结果才带。

## 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
