快手 · 内容详情

用户视频

传入数字用户 ID,返回每个用户最新或最热门的视频,含描述、播放数、点赞数、评论数和发布时间。

POST/v1/kuaishou/userVideos/jobs

$0.0018每条

1,000 条
≈ $1.80
每页(15 条)最低
$0.008

可用试用额度一次返回,没有 cursor

在控制台里试

怎么发

这个接口只能用任务跑:提交到 /jobs,查状态,结束后取结果。单次请求的路径返回 409 use_jobs,不收费。key 放在 Authorization 头里。

curl -X POST "https://api.silklinedata.com/v1/kuaishou/userVideos/jobs" \
  -H "Authorization: Bearer $SILKLINE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":5,"users":["4964950383"]}'

# then, with the id from the answer:
curl "https://api.silklinedata.com/v1/jobs/JOB_ID" -H "Authorization: Bearer $SILKLINE_KEY"
curl "https://api.silklinedata.com/v1/jobs/JOB_ID/results?offset=0&limit=1000" -H "Authorization: Bearer $SILKLINE_KEY"

返回什么

这是 2026-11-09 一次真实请求返回的记录。普通用户的名字、头像和主页链接显示为 <masked>;长文字只在这里截短,接口里是完整的。

200 OK · 取数日期 2026-11-09
{
  "data": [
    {
      "type": "video",
      "videoId": "5198843035388263225",
      "url": "https://www.kuaishou.com/short-video/…",
      "workType": "video",
      "description": "#美食教程  #健康饮食  #炖羊肉牢记三放…",
      "hashtags": [
        "美食教程",
        "健康饮食",
        "炖羊肉牢记三放三不放"
      ],
      "createdAt": "2026-11-09T08:38:56Z",
      "durationSeconds": 8,
      "playCount": 235,
      "likeCount": 7,
      "commentCount": 7,
      "shareCount": 1,
      "collectCount": 1,
      "downloadCount": null,
      "authorId": "<masked>",
      "authorName": "<masked>",
      "authorKwaiId": null,
      "authorGender": null,
      "authorVerified": "<masked>",
      "authorAvatarUrl": "<masked>",
      "authorProfileUrl": "<masked>",
      "musicId": "5xvf7zpzdzq3x69",
      "musicTitle": "挡不住的思念(电子琴版)",
      "musicArtist": "天使萝莉",
      "coverUrl": "http://zj66.a.kwimgs.com/upic/2026/11…",
      "videoUrl": "http://v5.kwaicdn.com/ksc1/PO8vrHjFbl…",
      "width": 720,
      "height": 1280,
      "ipLocation": "<masked>",
      "aiDisclosure": null,
      "sourceUserId": "<masked>"
    },
    {
      "type": "video",
      "videoId": "5232338559497194524",
      "url": "https://www.kuaishou.com/short-video/…",
      "workType": "video",
      "description": "#美食教程  #立冬不端饺子碗冻掉耳朵没…",
      "hashtags": [
        "美食教程",
        "立冬不端饺子碗冻掉耳朵没人管",
        "家常菜谱"
      ],
      "createdAt": "2026-11-08T09:27:56Z",
      "durationSeconds": 7.9,
      "playCount": 11918,
      "likeCount": 70,
      "commentCount": 40,
      "shareCount": 23,
      "collectCount": 35,
      "downloadCount": null,
      "authorId": "<masked>",
      "authorName": "<masked>",
      "authorKwaiId": null,
      "authorGender": null,
      "authorVerified": "<masked>",
      "authorAvatarUrl": "<masked>",
      "authorProfileUrl": "<masked>",
      "musicId": "5xvf7zpzdzq3x69",
      "musicTitle": "挡不住的思念(电子琴版)",
      "musicArtist": "天使萝莉",
      "coverUrl": "http://zj66.a.kwimgs.com/upic/2026/11…",
      "videoUrl": "http://v23-3.kwaicdn.com/upic/2026/11…",
      "width": 720,
      "height": 1280,
      "ipLocation": "<masked>",
      "aiDisclosure": null,
      "sourceUserId": "<masked>"
    }
  ],
  "cursor": null,
  "meta": {
    "request_id": "req_01JD8Q…",
    "charged_usd": "0.008000",
    "balance_usd": "9.875000",
    "items": 2
  }
}

字段 31

字段类型示例值
typestringvideo
videoIdstring5198843035388263225
urlstringhttps://www.kuaishou.com/short-video/3xtr6nidybbz6wu
workTypestringvideo
descriptionstring#美食教程 #健康饮食 #炖羊肉牢记三放三不放 @快***(O40300118) @快***(O181506050…
hashtagsarray["美食教程","健康饮食","炖羊肉牢记三放三不放"]
createdAtstring2026-11-09T08:38:56Z
durationSecondsnumber8
playCountnumber235
likeCountnumber7
commentCountnumber7
shareCountnumber1
collectCountnumber1
downloadCountnullnull
authorIdstring<masked>
authorNamestring<masked>
authorKwaiIdnullnull
authorGendernullnull
authorVerifiedstring<masked>
authorAvatarUrlstring<masked>
authorProfileUrlstring<masked>
musicIdstring5xvf7zpzdzq3x69
musicTitlestring挡不住的思念(电子琴版)
musicArtiststring天使萝莉
coverUrlstringhttp://zj66.a.kwimgs.com/upic/2026/11/09/16/BMjAyNjExMDkxNjM…
videoUrlstringhttp://v5.kwaicdn.com/ksc1/PO8vrHjFblXO-VuOsO-WcWtvVz1WpHxiA…
widthnumber720
heightnumber1280
ipLocationstring<masked>
aiDisclosurenullnull
sourceUserIdstring<masked>

参数 2

参数名类型必填说明示例
limitinteger否返回的记录条数,1 到 100。一次请求返回的条数不会超过这个值。5
usersarray是数字用户 ID,例如 2613731401(用户搜索结果里的 `userId` 字段),或包含数字 ID 的主页链接,例如 https://www.kuaishou.com/profile/2613731401。不支持带字母编码的主页链接(/profile/3x...)和短链接(v.kuaishou.com):请从用户搜索里取数字 ID。没有在直播且没有视频的 ID 视为未找到。留空时回退到一个示例用户。["4964950383"]

翻页

一个任务只跑一块,最多 100 条,没有 cursor。收费和同样一次单次请求一样,按交付的结果收。

一次请求花多少

按交付的条数计费,或按你查的每个对象(一个关键词、一个用户、一个链接)每一页一个最低收费,两者取多的;查了没查到的对象也算一页;只有超时和出错(我们这边或平台那边)不收费。

这个接口一页最多 15 条,每页最低收费 $0.008;一个对象要 100 条会取 7 页,一次请求里每个对象的页数各算各的。

  • 1 条:最多 $0.008
  • 20 条:最多 $0.036
  • 100 条:最多 $0.18

返回的 meta 里写着这次扣了多少(charged_usd)和还剩多少(balance_usd)。我们这边出错不收费。

常见问题

「用户视频」要传哪些参数?

必填:users。另外都可以传 limit(1 到 100)。

怎么调用?

这个接口只能用任务跑:POST /v1/kuaishou/userVideos/jobs 提交,GET /v1/jobs/{id} 查到结束,再从 GET /v1/jobs/{id}/results 取记录。单次请求的路径返回 409 use_jobs,不收费。结果保留 7 天。

一个任务最多返回多少条?

最多 100 条(limit 1 到 100),一个任务只跑一块,没有 cursor。每页最多 15 条,要 100 条时这一块取 7 页。要更多就再提交一个任务,按新任务收费。

怎么收费?

每条 记录 $0.0018。每个对象每页最低收费 $0.008:按条算的总数比各页最低收费加起来少时,按各页最低收费的总和收。一个对象取 100 条最多 $0.18。提交时从余额里预留的和同样一次单次请求一样多,结束时按交付的结果收,多的退回。试用额度能付,和单次请求一样。

任务失败或者没有结果时怎么收费?

在我们这边出错的任务不收钱,已经扣了的自动退回。一条记录都没交付的任务,和同样参数的单次请求一样:查了没查到的每个对象收一个最低价,出错、超时的不收;什么都没查到的以 succeeded 结束、没有 reason,中途失败、收了钱的原因是 no_records。任务对象的 charged_usd 是实际收的钱,reason 是结束的原因。