For AI

Answers

What is a Kuaishou video ID, and how do I use a v.kuaishou.com link?

Short answer

The video ID is the string starting with 3x in a www.kuaishou.com/short-video/<id> link, about 15 lowercase letters and digits. A v.kuaishou.com share link does not show it; send the link as url and okdata's Kuaishou video detail resolves it and returns the ID with caption, plays, likes and comments for $0.002. Search results carry the same ID.

Kuaishou shows the same video under several identifiers, and only one of them travels well. On the web a video lives at www.kuaishou.com/short-video/3xq7mzk2vbd9w4e, and that last segment, 3x followed by lowercase letters and digits (15 characters in every video we have looked at), is the video ID okdata uses. In the app, the share button gives you v.kuaishou.com/ plus a short code, such as v.kuaishou.com/Kq7xTz, which redirects to the video and shows no ID at all. Kuaishou's app data also has a numeric photo ID, a 64-bit number that most JSON parsers cannot hold exactly; in raw responses you often find it already rounded, ending in a row of zeros. That is why tools that key on the numeric ID end up with videos that do not exist.

Which string is which

String Example What it is
Video ID 3xq7mzk2vbd9w4e The video; after /short-video/ in web links
Share link v.kuaishou.com/Kq7xTz A redirect to one video; no ID inside
Other web links kuaishou.com/photo/3xk2…/3xq7mzk2vbd9w4e, /fw/photo/3xq7mzk2vbd9w4e The video ID is the last segment
User ID 2187465530 The account, as digits; author.id
Kuaishou handle (快手号) outdoor_lin The account's public handle; author.username
User web ID 3xk2…, same shape as a video ID The account in profile links; ext.author_eid with view=full

The user web ID is the trap: it also starts with 3x, so a profile link pasted into a "video ID" column looks valid and returns not_found.

How the API takes it

  • Kuaishou video detail takes id=3xq7mzk2vbd9w4e or url= with any of the links above, v.kuaishou.com included. One call either way.
  • Video comments also takes id or url.
  • Kuaishou video search returns id in the same form for every result.
  • The account endpoints take the numeric user ID, not the handle and not the 3x web ID.

Unlike Douyin, Kuaishou shows play counts: metrics.views is filled in when Kuaishou provides it, along with likes, comments, shares, saves and reposts. Photo-set posts (图集) come back with type: image.

Task Calls Cost
One share link to video data 1 $0.002
500 share links from a creator sheet 500 $1.00
One search page of video IDs 1 $0.02

Example

curl -G "https://api.okdata.online/v1/kuaishou/videos/get" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'url=https://v.kuaishou.com/Kq7xTz' \
  --data-urlencode 'fields=id,url,text,published_at,metrics.views,metrics.likes,author.id'

The answer's url is the canonical kuaishou.com/short-video/<id> link. Store id; it is shorter than the link and does not change.

Limits

  • People paste share text, not just links. Pull the https://v.kuaishou.com/... part out with a regular expression before sending it.
  • Deleted or private videos return not_found, which is not charged.
  • Open-source parsers often break on share links when Kuaishou answers with a captcha check. The API call needs no cookie or captcha from you.

Sources

  1. KS-Downloader README: supported links (v.kuaishou.com/分享码, kuaishou.com/short-video/作品ID)github.com · read
  2. Kuaishou share link fails to parse (video_spider issue #92)github.com · read
  3. Kuaishou share URL answered with 'antispam need captcha' (stealer issue #96)github.com · read

Where people asked this (read 2026-11-12)

Updated

Connect once, then just ask.

Every new key comes with $0.10 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp