Read Kuaishou (China) profiles, posts, live status, videos, comment threads, hashtag feeds, leaderboards and four kinds of search as structured JSON. 14 endpoints priced per endpoint at 1, 2, 10 or 40 credits.
---
name: scavio-kuaishou
description: Read Kuaishou (China) profiles, posts, live status, videos, comment threads, hashtag feeds, leaderboards and four kinds of search as structured JSON. 14 endpoints priced per endpoint at 1, 2, 10 or 40 credits.
version: 1.0.0
tags: kuaishou, china, chinese-social-media, short-video, creator-data, influencer-research, video-data, comments, live-streaming, hashtag-feed, trending, social-listening, competitor-research, agents, langchain, crewai, autogen, structured-data, json, ai-agents
metadata:
openclaw:
requires:
env:
- SCAVIO_API_KEY
primaryEnv: SCAVIO_API_KEY
timeout: 120
throttle: 1
emoji: "\U0001F3AC"
homepage: https://scavio.dev/docs/kuaishou-profile
---
# Kuaishou (China) via Scavio
Read public data from Kuaishou, the Chinese short-video platform: user profiles, their posts and live status, single videos and batches of them, comment threads and their replies, hashtag feeds, the platform leaderboards, and four separate search endpoints. All endpoints return structured JSON.
**This is Kuaishou China (kuaishou.com), not Kwai.** Kwai international (kwai.com) is not served by this API. See Guardrails.
**Pricing is per endpoint, from 1 to 40 credits.** There is no flat platform price. Read the cost column before every call.
## When to trigger
Use this skill when the user asks to:
- Look up a Kuaishou creator's profile, posts or current live status
- Turn a Kuaishou share link into a user id
- Read a Kuaishou video by photo id or URL, or several at once
- Read the comments on a Kuaishou video, or the replies under one comment
- Search Kuaishou for videos, users, live streams, or all of them at once
- Pull the posts under a Kuaishou hashtag
- Read the Kuaishou hot, live, shopping, brand or music leaderboards
- Research Chinese short-video creators or trends
## Setup
Get a free API key at [scavio.dev](https://scavio.dev/?utm_source=clawhub&utm_medium=skill&utm_campaign=scavio-kuaishou) (50 free credits to get started, no card required):
```bash
export SCAVIO_API_KEY=sk_live_your_key
```
Every request is a `POST` with a JSON body and:
```
Authorization: Bearer $SCAVIO_API_KEY
```
## Endpoints
Base URL: `https://api.scavio.dev`. **Costs differ by up to 40x between endpoints.** Copy the path verbatim from this table.
| Endpoint | Credits | Description |
|---|---|---|
| `POST /api/v1/kuaishou/profile` | **10** | Profile details for a user |
| `POST /api/v1/kuaishou/user/posts` | 1 | A user's top posts, cursor-paginated |
| `POST /api/v1/kuaishou/user/live` | 1 | A user's current live-stream status |
| `POST /api/v1/kuaishou/user/resolve` | 1 | Turns a Kuaishou share link into a user id |
| `POST /api/v1/kuaishou/video` | **2** | A single video by photo id or URL |
| `POST /api/v1/kuaishou/video/comments` | 1 | Comments on a video, cursor-paginated |
| `POST /api/v1/kuaishou/video/sub-comments` | 1 | Replies under one root comment, cursor-paginated |
| `POST /api/v1/kuaishou/videos/batch` | **40** | Up to 20 videos in one call |
| `POST /api/v1/kuaishou/search` | **10** | Mixed-result search |
| `POST /api/v1/kuaishou/search/videos` | **10** | Video search |
| `POST /api/v1/kuaishou/search/users` | **10** | User search |
| `POST /api/v1/kuaishou/search/live` | **10** | Live-stream search |
| `POST /api/v1/kuaishou/tag/feed` | 1 | Posts under a hashtag, cursor-paginated |
| `POST /api/v1/kuaishou/trending` | 1 | Hot, live, shopping, brand and music leaderboards |
Summary of the four tiers: `videos/batch` is 40. `profile` and all four search endpoints are 10. `video` is 2. Everything else is 1.
### Cost planning
- `/profile` at 10 credits is the dearest single-object call on the platform. If all you need is a creator's recent posts, `/user/posts` at 1 credit may be enough on its own.
- `/videos/batch` at 40 credits is the dearest call, full stop. It is capped at 20 photo ids. Twenty individual `/video` calls would cost 40 credits too, so batching saves round trips, not money. Do not reach for it to fetch two or three videos.
- The four search endpoints each cost 10. Do not fan out a keyword across all four when one will answer the question.
## Workflow
1. **From a share link:** call `/kuaishou/user/resolve` with `share_link` (1 credit) to get a `user_id`.
2. **Creator research:** `/kuaishou/user/posts` with `user_id` (1 credit) for the feed. Only spend the 10 credits on `/kuaishou/profile` if you need the profile fields themselves.
3. **Live check:** `/kuaishou/user/live` with `user_id` (1 credit).
4. **A video:** `/kuaishou/video` with `photo_id` or `url` (2 credits).
5. **Comments:** `/kuaishou/video/comments` with `photo_id` (1 credit). To expand one thread, call `/kuaishou/video/sub-comments` with the same `photo_id` plus that comment's `root_comment_id`.
6. **Discovery:** `/kuaishou/search` (mixed), `/kuaishou/search/videos`, `/kuaishou/search/users` or `/kuaishou/search/live`, all with `keyword`, all 10 credits. `/kuaishou/tag/feed` and `/kuaishou/trending` are 1 credit each and are the cheap discovery route.
Cursor-paginated: `user/posts`, `video/comments`, `video/sub-comments`, all four search endpoints, and `tag/feed`. Each returns `next_cursor`; pass it back as `cursor` and stop when it is null. **Every page of a search costs another 10 credits.**
Not paginated at all: `profile`, `user/live`, `user/resolve`, `video`, `videos/batch`, `trending`.
## Parameters
### Profile (`/profile`) — 10 credits
| Parameter | Type | Default | Description |
|---|---|---|---|
| `user_id` | string | required | Kuaishou user id, e.g. `5518803932` |
### User posts (`/user/posts`) — 1 credit
| Parameter | Type | Default | Description |
|---|---|---|---|
| `user_id` | string | required | Kuaishou user id |
| `cursor` | string | -- | Pagination cursor from a prior `next_cursor` |
### User live (`/user/live`) — 1 credit
| Parameter | Type | Default | Description |
|---|---|---|---|
| `user_id` | string | required | Kuaishou user id |
### User resolve (`/user/resolve`) — 1 credit
| Parameter | Type | Default | Description |
|---|---|---|---|
| `share_link` | string (URL) | required | A `kuaishou.com` or `v.kuaishou.com` link, e.g. `https://v.kuaishou.com/KcdKDwFp`. `kwai.com` is not supported |
### Video (`/video`) — 2 credits
`photo_id` or `url` is required.
| Parameter | Type | Default | Description |
|---|---|---|---|
| `photo_id` | string | one of | Kuaishou photo id, e.g. `3xtdqvdnqd3psuc` |
| `url` | string (URL) | one of | A Kuaishou video URL |
### Video comments (`/video/comments`) — 1 credit
| Parameter | Type | Default | Description |
|---|---|---|---|
| `photo_id` | string | required | Kuaishou photo id |
| `cursor` | string | -- | Pagination cursor from a prior `next_cursor` |
### Comment replies (`/video/sub-comments`) — 1 credit
| Parameter | Type | Default | Description |
|---|---|---|---|
| `photo_id` | string | required | Kuaishou photo id |
| `root_comment_id` | string | required | The id of the comment whose replies you want |
| `cursor` | string | -- | Pagination cursor from a prior `next_cursor` |
| `count` | integer 1-50 | -- | Replies per page |
### Videos batch (`/videos/batch`) — 40 credits
| Parameter | Type | Default | Description |
|---|---|---|---|
| `photo_ids` | array of string | required | 1 to 20 photo ids. The cap of 20 is hard |
### Search (`/search`, `/search/videos`, `/search/users`, `/search/live`) — 10 credits each
| Parameter | Type | Default | Description |
|---|---|---|---|
| `keyword` | string | required | Search keyword (1-200 chars) |
| `cursor` | string | -- | Pagination cursor from a prior `next_cursor` |
### Tag feed (`/tag/feed`) — 1 credit
| Parameter | Type | Default | Description |
|---|---|---|---|
| `tag` | string | required | Hashtag text (1-200 chars) |
| `cursor` | string | -- | Pagination cursor from a prior `next_cursor` |
### Trending (`/trending`) — 1 credit
| Parameter | Type | Default | Description |
|---|---|---|---|
| `board` | string | `hot` | `hot`, `live`, `shopping`, `brand`, `music` |
## Examples
```python
import requests
BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1. Share link -> user id (1 credit)
resolved = requests.post(f"{BASE}/api/v1/kuaishou/user/resolve", headers=HEADERS,
json={"share_link": "https://v.kuaishou.com/KcdKDwFp"}).json()
user_id = "5518803932"
# 2. Their posts (1 credit) - far cheaper than /profile, which is 10
posts = requests.post(f"{BASE}/api/v1/kuaishou/user/posts", headers=HEADERS,
json={"user_id": user_id}).json()
# 3. Full profile - 10 credits, only call it if you need the profile fields
profile = requests.post(f"{BASE}/api/v1/kuaishou/profile", headers=HEADERS,
json={"user_id": user_id}).json()
# 4. A single video (2 credits)
video = requests.post(f"{BASE}/api/v1/kuaishou/video", headers=HEADERS,
json={"photo_id": "3xtdqvdnqd3psuc"}).json()
# 5. Comments (1 credit), then one thread's replies (1 credit).
# NOTE the path is /video/sub-comments.
comments = requests.post(f"{BASE}/api/v1/kuaishou/video/comments", headers=HEADERS,
json={"photo_id": "5218546261880462502"}).json()
replies = requests.post(f"{BASE}/api/v1/kuaishou/video/sub-comments", headers=HEADERS,
json={"photo_id": "5218546261880462502",
"root_comment_id": "14000000123456789", "count": 20}).json()
# 6. Search - 10 credits PER PAGE
found = requests.post(f"{BASE}/api/v1/kuaishou/search/videos", headers=HEADERS,
json={"keyword": "美妆"}).json()
# 7. Cheap discovery: hashtag feed and leaderboards, 1 credit each
tag = requests.post(f"{BASE}/api/v1/kuaishou/tag/feed", headers=HEADERS,
json={"tag": "挑战"}).json()
board = requests.post(f"{BASE}/api/v1/kuaishou/trending", headers=HEADERS,
json={"board": "hot"}).json()
# 8. Batch - 40 credits, max 20 ids
batch = requests.post(f"{BASE}/api/v1/kuaishou/videos/batch", headers=HEADERS,
json={"photo_ids": ["5228960823332207296", "5196309727975443273"]}).json()
```
## Response
Every response uses the envelope `{ data, response_time, credits_used, credits_remaining }`.
- **profile**, **user/live**, **user/resolve**, **video** and **trending** return a single object each: profile details, live status, the resolved user id, the video, and the requested leaderboard.
- **user/posts**, **video/comments**, **video/sub-comments**, the four search endpoints and **tag/feed** return their rows plus `next_cursor`. A null `next_cursor` means the end of the data.
- **videos/batch** returns the requested videos in one payload.
Always read `credits_used` off the response rather than assuming. The per-call cost ranges from 1 to 40.
## Guardrails
- **Call it Kuaishou, or Kuaishou (China). Never Kwai.** This API serves kuaishou.com only. Kwai international (kwai.com) is not served: a real kwai.com photo id comes back as an empty envelope, not an error. If the user says "Kwai" or gives a kwai.com link, tell them this API covers Kuaishou China only before spending any credits.
- `/user/resolve` accepts `kuaishou.com` and `v.kuaishou.com` links only.
- **Quote the per-endpoint cost, never a platform cost.** Saying "Kuaishou calls cost 1 credit" is wrong by up to 40x. `profile` is 10, `video` is 2, `videos/batch` is 40, all four search endpoints are 10, everything else is 1.
- Before a multi-page search, tell the user the running cost. Ten pages of `/search/videos` is 100 credits.
- `/videos/batch` is capped at 20 photo ids. That cap exists precisely because this is the one call that fans out upstream spend. Do not attempt to work around it by chaining batches without telling the user what it will cost.
- **The path is `/api/v1/kuaishou/video/sub-comments`.** Do not derive it from the name "comment replies". Copy the path from the table.
- Never fabricate view counts, follower counts, video ids, comment text or leaderboard positions. Only return data the API returned.
- Content and interface text are largely in Chinese. Translate for the user when helpful, but keep the original text alongside so ids and handles stay verifiable.
- Live status is a snapshot. A creator shown as live may have ended the stream seconds later; say so when it matters.
## Failure handling
Kuaishou uses a narrow set of error codes. **There is no `400`, no `404` and no `503` here.**
- `422` means a missing identifier, e.g. no `photo_id` and no `url` on `/video`. Send one.
- `401` means the API key is invalid or missing. Check `SCAVIO_API_KEY`.
- `429` means a rate or usage limit was exceeded. Wait before retrying. See https://scavio.dev/docs/rate-limits.
- `502` is the one to understand. **Kuaishou hides its errors inside HTTP 200 responses**, returning a success status with a failure code in the body. Those are detected and surfaced to you as a `502`. So a 502 here does not necessarily mean the upstream is down; it often means the id, link or keyword was rejected. Re-check the identifier before retrying blindly, and do not retry more than once or twice.
- An empty result set from a kwai.com id is expected, not a bug. See Guardrails.
- If a paginated call returns a null `next_cursor`, that is the end of the data. Stop paging, especially on the 10-credit search endpoints.
- If `SCAVIO_API_KEY` is not set, prompt the user to export it before continuing.
## Docs
- Profile: https://scavio.dev/docs/kuaishou-profile
- User posts: https://scavio.dev/docs/kuaishou-user-posts
- User live: https://scavio.dev/docs/kuaishou-user-live
- User resolve: https://scavio.dev/docs/kuaishou-user-resolve
- Video: https://scavio.dev/docs/kuaishou-video
- Video comments: https://scavio.dev/docs/kuaishou-video-comments
- Comment replies: https://scavio.dev/docs/kuaishou-comment-replies
- Videos batch: https://scavio.dev/docs/kuaishou-videos-batch
- Search: https://scavio.dev/docs/kuaishou-search
- Video search: https://scavio.dev/docs/kuaishou-video-search
- User search: https://scavio.dev/docs/kuaishou-user-search
- Live search: https://scavio.dev/docs/kuaishou-live-search
- Tag feed: https://scavio.dev/docs/kuaishou-tag-feed
- Trending: https://scavio.dev/docs/kuaishou-trending
don't have the plugin yet? install it then click "run inline in claude" again.
added explicit intent, structured inputs with external connection details, numbered procedure steps with detailed inputs-outputs for all 11 endpoints, 15 decision points covering kwai rejection, cost warnings, pagination, rate limits and
use this skill to fetch public data from kuaishou.com (the chinese short-video platform): creator profiles, their posts and live status, individual videos or batches, comment threads and replies, hashtag feeds, platform leaderboards, and four separate search types. all data comes back as structured JSON. this is kuaishou china only, not kwai international (kwai.com). pricing is per endpoint and ranges from 1 to 40 credits, so read the cost before every call.
external connection: Scavio API
https://api.scavio.devAuthorization headerSCAVIO_API_KEY (required, get a free key with 50 credits at https://scavio.dev)platform context
common identifiers you will need
user_id: kuaishou creator numeric id, e.g. 5518803932photo_id: kuaishou video id, e.g. 3xtdqvdnqd3psucshare_link: kuaishou share url, format https://v.kuaishou.com/XXXXXXXX or https://kuaishou.com/...keyword: search term (1-200 chars)tag: hashtag text (1-200 chars)board: one of hot, live, shopping, brand, musicresolve a share link to user id (if needed): call POST /api/v1/kuaishou/user/resolve with share_link parameter. costs 1 credit. returns { data: { user_id }, response_time, credits_used, credits_remaining }. use this user id for all downstream calls.
fetch creator posts (cheapest creator research): call POST /api/v1/kuaishou/user/posts with user_id. costs 1 credit. returns { data: [ { photo_id, description, stats, ... } ], next_cursor, response_time, credits_used, credits_remaining }. if next_cursor is not null, store it for pagination. only spend 10 credits on /profile if you need the profile record itself, not just posts.
check if creator is live: call POST /api/v1/kuaishou/user/live with user_id. costs 1 credit. returns { data: { is_live, stream_url, viewers, ... }, response_time, credits_used, credits_remaining }. live status is a snapshot; creator may end stream seconds after you fetch.
fetch a single video: call POST /api/v1/kuaishou/video with either photo_id or url. costs 2 credits. returns { data: { photo_id, description, video_url, stats, ... }, response_time, credits_used, credits_remaining }.
fetch multiple videos at once: call POST /api/v1/kuaishou/videos/batch with photo_ids array (1-20 ids). costs 40 credits regardless of count. returns { data: [ { ... } ], response_time, credits_used, credits_remaining }. do not use this for 2-3 videos; 20 individual calls also cost 40 credits.
fetch video comments: call POST /api/v1/kuaishou/video/comments with photo_id. costs 1 credit. returns { data: [ { root_comment_id, text, author, replies_count, ... } ], next_cursor, response_time, credits_used, credits_remaining }. if next_cursor is not null, paginate by calling again with cursor set to that value. every page costs 1 credit.
fetch replies to one comment: call POST /api/v1/kuaishou/video/sub-comments with photo_id, root_comment_id, and optional cursor and count (1-50 replies per page). costs 1 credit. returns { data: [ { text, author, ... } ], next_cursor, response_time, credits_used, credits_remaining }. if next_cursor is not null, paginate. every page costs 1 credit.
search kuaishou (four options):
POST /api/v1/kuaishou/search with keyword. costs 10 credits.POST /api/v1/kuaishou/search/videos with keyword. costs 10 credits.POST /api/v1/kuaishou/search/users with keyword. costs 10 credits.POST /api/v1/kuaishou/search/live with keyword. costs 10 credits.all search calls return { data: [ { ... } ], next_cursor, response_time, credits_used, credits_remaining }. paginate by passing cursor back; every additional page costs 10 credits.
fetch posts under a hashtag (cheaper discovery): call POST /api/v1/kuaishou/tag/feed with tag. costs 1 credit. returns { data: [ { photo_id, description, ... } ], next_cursor, response_time, credits_used, credits_remaining }. paginate with cursor; every page costs 1 credit.
fetch leaderboards (cheapest trend check): call POST /api/v1/kuaishou/trending with optional board parameter (defaults to hot). costs 1 credit. returns { data: [ { rank, user, video, stats, ... } ], response_time, credits_used, credits_remaining }. not paginated.
fetch full creator profile (most expensive): call POST /api/v1/kuaishou/profile with user_id. costs 10 credits. returns { data: { user_id, name, bio, followers, videos_count, ... }, response_time, credits_used, credits_remaining }. not paginated. only call this if you need profile fields themselves; /user/posts at 1 credit is usually enough.
read credits_used from every response: do not assume per-endpoint costs. the actual cost is in the response body credits_used field. verify before making chains of calls.
if the user provides a kwai.com link or id:
if the user asks for a share link resolution:
kuaishou.com or v.kuaishou.com format before calling /user/resolve.if the user wants creator research:
/user/posts (1 credit) to see recent uploads./profile (10 credits) if the user explicitly needs follower count, verification status, bio, or other profile fields./trending (1 credit) first; the leaderboards include stats.if the user wants to search and you have a keyword:
/search/videos if looking for video content, /search/users for creators, /search/live for active streams./search (mixed) once; it still costs 10 credits.if the user asks to paginate search results:
/search/videos is 100 credits.next_cursor is null; that signals end of results.if the user asks for multi-page comment threads:
/video/comments or /video/sub-comments costs 1 credit.next_cursor is null.if the user wants to fetch many videos at once:
/video calls (2 credits each). example: 3 videos = 6 credits./video calls = 20 credits total./videos/batch call = 40 credits./videos/batch caps at 20 ids; if the user has 25 ids, you must chain: one batch of 20 (40 credits) + 5 individual videos (10 credits) = 50 credits total.if api key is missing:
SCAVIO_API_KEY env var is set.export SCAVIO_API_KEY=sk_... (get a free key at https://scavio.dev).if the response is http 401:
if the response is http 429:
if the response is http 502:
if the response is http 422:
/video with neither photo_id nor url.if a paginated endpoint returns next_cursor: null:
if the user mentions "live" or "live stream":
/user/live to check a creator's current status (1 credit, snapshot)./search/live to find active streams by keyword (10 credits per page)./trending?board=live to see the live leaderboard (1 credit).if the user asks about content in chinese:
response envelope (all endpoints): all api responses follow this structure:
{
"data": { /* endpoint-specific content */ },
"response_time": "ms",
"credits_used": 1,
"credits_remaining": 49
}
single-object endpoints (do not paginate):
/profile: returns one profile record with user_id, name, bio, followers, videos_count, verification_status, etc./user/live: returns one live status record with is_live, stream_url, viewers, started_at, etc./user/resolve: returns one record with user_id resolved from the share link./video: returns one video record with photo_id, description, video_url, thumbnail_url, stats (likes, comments, shares), author, duration, etc./trending: returns one leaderboard array with rank, user, video, stats for the requested board type.paginated endpoints (cursor-based):
/user/posts: returns array of posts plus next_cursor. each row contains photo_id, description, stats, timestamp. pass cursor to get the next page. stop when next_cursor is null./video/comments: returns array of root comments plus next_cursor. each row contains root_comment_id, text, author, replies_count, timestamp. stop when next_cursor is null./video/sub-comments: returns array of replies plus next_cursor. each row contains comment_id, text, author, timestamp. stop when next_cursor is null./search, /search/videos, /search/users, /search/live: return array of results plus next_cursor. each row contains id, name, type, stats. stop when next_cursor is null. each page costs 10 credits./tag/feed: returns array of posts under the hashtag plus next_cursor. each row contains photo_id, description, stats, author. stop when next_cursor is null.batch endpoint (not paginated):
/videos/batch: returns array of videos (1-20). no next_cursor.error responses:
SCAVIO_API_KEY.empty results:
next_cursor will be null and data will be an empty array.next_cursor will be null and data will be an empty array.the user knows the skill worked when:
after a share link resolve: you print the resolved user id. example: "resolved share link to user id 5518803932."
after fetching posts: you display the posts in readable format (title, stats, timestamp, link). the user can see the creator's recent content.
after checking live status: you say if the creator is live right now. example: "alice is currently live with 1,250 viewers" or "alice is not currently streaming."
after fetching a video: you display the video title, stats (likes, comments, shares), duration, thumbnail link, and video url. the user can click through.
after fetching comments: you display the comment threads in a readable tree (root comment + replies). the user can read viewer reactions.
after a search: you display the top search results with names, types (video/user/live), and stats. the user can see matching content and click through.
after fetching a hashtag feed: you display posts under that tag, sorted by relevance or recency. the user sees trending content for that hashtag.
after fetching leaderboards: you display the ranked list (top 10, top 20, etc.) with positions, creators, videos, and stats. the user knows who is trending on kuaishou.
always: you quote the actual credits_used from the response (not your assumption), and remind the user of credits_remaining. example: "this cost 10 credits. you have 40 credits left."
on error: you print the http status, error code (if any), and actionable next steps. example: "http 502: the user id may not exist. double-check and retry, or try a search instead."
on pagination: you tell the user how many pages you fetched and the total cost. example: "fetched 3 pages of comments (3 credits total). stopped because next_cursor was null."