Logo Kuaishou Scraper Api

Kuaishou Scraper Api

Cộng đồng
scavio-ai
kuaishou-scraper-api

Kuaishou (China) public data: creator profiles, posts, live status, single and batched videos, comment threads and replies, hashtag feeds, leaderboards, and video, user, live and mixed search. 14 endpoints at 1, 2, 10 or 40 credits each. Kuaishou.com only - Kwai international is not covered.

Tổng quan

Nhà phát hànhscavio-ai
Kho mãskills
Tên kỹ năngkuaishou-scraper-api
Sao
67
Bản fork
0
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được scavio-ai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Kuaishou Scraper Api trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/scavio-ai/skills/tree/main/skills/kuaishou-scraper-api
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scavio-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/kuaishou-scraper-api .claude/skills/kuaishou-scraper-api
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Kuaishou Scraper Api trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Kuaishou Scraper Api ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Kuaishou Scraper Api với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Kuaishou Scraper API - Profiles, Videos, Comments, Search

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 (50 free credits to get started, no card required):

bash
export SCAVIO_API_KEY=sk_live_your_key

If you do not have a key yet

An agent running this skill without SCAVIO_API_KEY set will get 401 on every call below. The whole path from nothing to a working key is self-serve:

  1. Sign up at dashboard.scavio.dev - email or Google, no card required.
  2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
  3. A new account starts with 50 credits. Endpoints in this skill cost 1 credit each unless the table below says otherwise.

When the balance runs out the API answers 402 with a JSON body carrying billing_url. Topping up needs no code change - the same key keeps working. The smallest purchase is 2,500 credits for $25, and monthly plans work out cheaper per credit if the usage is steady rather than one-off.

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.

EndpointCreditsDescription
POST /api/v1/kuaishou/profile10Profile details for a user
POST /api/v1/kuaishou/user/posts1A user's top posts, cursor-paginated
POST /api/v1/kuaishou/user/live1A user's current live-stream status
POST /api/v1/kuaishou/user/resolve1Turns a Kuaishou share link into a user id
POST /api/v1/kuaishou/video2A single video by photo id or URL
POST /api/v1/kuaishou/video/comments1Comments on a video, cursor-paginated
POST /api/v1/kuaishou/video/sub-comments1Replies under one root comment, cursor-paginated
POST /api/v1/kuaishou/videos/batch40Up to 20 videos in one call
POST /api/v1/kuaishou/search10Mixed-result search
POST /api/v1/kuaishou/search/videos10Video search
POST /api/v1/kuaishou/search/users10User search
POST /api/v1/kuaishou/search/live10Live-stream search
POST /api/v1/kuaishou/tag/feed1Posts under a hashtag, cursor-paginated
POST /api/v1/kuaishou/trending1Hot, 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

ParameterTypeDefaultDescription
user_idstringrequiredKuaishou user id, e.g. 5518803932

User posts (/user/posts) — 1 credit

ParameterTypeDefaultDescription
user_idstringrequiredKuaishou user id
cursorstring--Pagination cursor from a prior next_cursor

User live (/user/live) — 1 credit

ParameterTypeDefaultDescription
user_idstringrequiredKuaishou user id

User resolve (/user/resolve) — 1 credit

ParameterTypeDefaultDescription
share_linkstring (URL)requiredA 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.

ParameterTypeDefaultDescription
photo_idstringone ofKuaishou photo id, e.g. 3xtdqvdnqd3psuc
urlstring (URL)one ofA Kuaishou video URL

Video comments (/video/comments) — 1 credit

ParameterTypeDefaultDescription
photo_idstringrequiredKuaishou photo id
cursorstring--Pagination cursor from a prior next_cursor

Comment replies (/video/sub-comments) — 1 credit

ParameterTypeDefaultDescription
photo_idstringrequiredKuaishou photo id
root_comment_idstringrequiredThe id of the comment whose replies you want
cursorstring--Pagination cursor from a prior next_cursor
countinteger 1-50--Replies per page

Videos batch (/videos/batch) — 40 credits

ParameterTypeDefaultDescription
photo_idsarray of stringrequired1 to 20 photo ids. The cap of 20 is hard

Search (/search, /search/videos, /search/users, /search/live) — 10 credits each

ParameterTypeDefaultDescription
keywordstringrequiredSearch keyword (1-200 chars)
cursorstring--Pagination cursor from a prior next_cursor

Tag feed (/tag/feed) — 1 credit

ParameterTypeDefaultDescription
tagstringrequiredHashtag text (1-200 chars)
cursorstring--Pagination cursor from a prior next_cursor

Trending (/trending) — 1 credit

ParameterTypeDefaultDescription
boardstringhothot, 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 into many lookups. 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 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

Câu hỏi thường gặp

Kỹ năng AI Kuaishou Scraper Api làm được gì?

Kuaishou (China) public data: creator profiles, posts, live status, single and batched videos, comment threads and replies, hashtag feeds, leaderboards, and video, user, live and mixed search. 14 endpoints at 1, 2, 10 or 40 credits each. Kuaishou.com only - Kwai international is not covered.

Vì sao nên dùng Kuaishou Scraper Api trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Kuaishou Scraper Api là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Kuaishou Scraper Api trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/scavio-ai/skills/tree/main/skills/kuaishou-scraper-api. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Kuaishou Scraper Api?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Kuaishou Scraper Api với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Kuaishou Scraper Api với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Kuaishou Scraper Api có miễn phí không?

Có. Kỹ năng này được scavio-ai phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇