# Kuaishou Scraper & API | EveryInfra (`blushing_parachute/everyinfra-kuaishou-api`) Actor

Unofficial Kuaishou data via one Actor: search, user_posts, trending, video, comments, hot_boards, live_rank, shopping_rank, brand_rank, hot_person_board, user_live, user_search. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-kuaishou-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** Videos, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 31.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $39.10 / 1,000 search requests

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Kuaishou Scraper & API | EveryInfra

This Kuaishou API searches public videos by keyword, returns user posts, reads the hot list, opens a single video and pages through its comments, all as JSON. For user posts, pass an author ID or a profile URL; for a video or its comments, pass the video link or ID.

Query videos by keyword and obtain author identifiers directly from search result items. The short video IDs on hot-list entries go straight into `video` and `comments`.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `search` | Search Kuaishou videos by `keyword` and get view, like, comment and share counts, duration, cover, author details and a spoken-word transcript when available. Duration is in milliseconds, and user accounts are not part of the results. | keyword | — | 20 (up to 100) | $0.0391 |
| `user_posts` | Pull videos from a Kuaishou account by user ID or profile link in `user_id`. Get views, likes, comments, shares, duration, cover and transcript when available. Take the ID from a search result's `author_id` or `author_url`. Full history and deleted videos are not guaranteed. | user_id | — | 20 (up to 100) | $0.0391 |
| `trending` | Take Kuaishou's hot list in one call, up to 50 entries. Each entry has its rank (the pinned entry is first), title, heat value as a whole number, badge such as new or exclusive, cover image and, usually, the short IDs of the videos behind it. Those IDs work directly in `video` and `comments`. `limit` can only lower the count. | — | — | 50 (up to 50) | $0.0015 |
| `video` | Read one Kuaishou video from its link, its 3x short ID or its numeric ID. Get caption, duration in milliseconds, view, like, comment, share and save counts, publish time, cover, and the author's ID, Kuaishou handle, gender and verification. Counts are a snapshot at the time of the call. | url | — | 1 | $0.0088 |
| `comments` | Read the top-level comments on a Kuaishou video, one page per call. Each comment has text, likes, time, the commenter's name, gender, verification and IP region, and whether the video's author liked it. A page usually holds about 10 comments and can hold up to about 50; pass `next_page_token` back as `page_token` until there is none. Replies under a comment are not included. | url | page_token | all the source returns | $0.0009 |
| `hot_boards` | Read one of Kuaishou's topic boards in one call: the hot board, entertainment, society or useful, about 50 entries. Each entry has its rank, title, heat as a whole number and view count; the pinned entry is first and carries a label. For the hot board with cover images and video IDs, use `trending`. | — | board | 50 (up to 50) | $0.0015 |
| `live_rank` | See which Kuaishou live hosts draw the biggest crowds right now, overall or in a category such as music, dance or gaming, up to 50 per call. Each host has rank, name, numeric user ID, avatar, stream title, live stream ID and popularity as a whole number. The board changes minute by minute. | — | category | 50 (up to 50) | $0.0015 |
| `shopping_rank` | Read Kuaishou's shopping board: the top selling hosts, or with `board` set to `products`, the best-selling products, up to 50 per call. Host rows have user ID, avatar and live stream ID; product rows have product ID, seller ID, price in CNY, badges such as coupons, and image. Both carry rank and popularity. | — | board | 50 (up to 50) | $0.0015 |
| `brand_rank` | Read Kuaishou's brand board for one industry, such as beauty, auto or phones, up to 50 brand accounts in one call. Each account has its rank, name, numeric user ID, avatar, live stream ID while it is live, and popularity as a whole number. Popularity is Kuaishou's own score; compare it only within one board. | — | category | 50 (up to 50) | $0.0016 |
| `hot_person_board` | Read Kuaishou's hot-people board in one call, about 50 accounts. Each account has its rank, name, numeric user ID, avatar, popularity and Kuaishou's own reason for the entry, such as a new video or a jump in searches. Pass a smaller `limit` to keep only the top accounts. | — | — | 50 (up to 50) | $0.0017 |
| `user_live` | Check whether a Kuaishou account is live right now from its numeric `user_id`, such as one from `live_rank` or `user_search`. You get `is_live` and the account's video count. It does not return the stream itself or past streams. | user_id | — | 1 | $0.0009 |
| `user_search` | Find Kuaishou accounts by nickname, handle or topic `keyword`, 20 per page. Each account has numeric user ID, nickname, Kuaishou handle when set, bio, gender, verification, follower and video counts and avatar. Pass the `user_id` to `user_live`, and page on with `next_page_token`. | keyword | page_token | all the source returns | $0.0088 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "search",
  "keyword": "\u9732\u8425\u88c5\u5907"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `search`: `id`, `url`, `text`, `duration_ms`, `view_count`, `like_count`, `comment_count`, `share_count`, `posted_at`, `author_id`, `author_name`, `author_kwai_id`, `author_url`, `author_verified`, `follower_count`, `video_count`, `cover_url`, `avatar_url`, `transcript`, `platform`
- `user_posts`: `id`, `url`, `text`, `duration_ms`, `view_count`, `like_count`, `comment_count`, `share_count`, `posted_at`, `author_id`, `author_name`, `author_kwai_id`, `author_url`, `author_verified`, `follower_count`, `video_count`, `cover_url`, `avatar_url`, `transcript`, `platform`
- `trending`: `rank`, `title`, `hot_value`, `label`, `cover_url`, `video_ids`, `platform`
- `video`: `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`
- `comments`: `next_page_token`, `id`, `text`, `like_count`, `posted_at`, `author_id`, `author_name`, `author_avatar_url`, `author_gender`, `author_verified`, `ip_location`, `liked_by_author`, `platform`
- `hot_boards`: `rank`, `title`, `hot_value`, `view_count`, `label`, `platform`
- `live_rank`: `rank`, `name`, `type`, `user_id`, `avatar_url`, `subtitle`, `live_stream_id`, `popularity`, `platform`
- `shopping_rank`: `rank`, `name`, `type`, `user_id`, `seller_id`, `product_id`, `price_cny`, `promotion`, `avatar_url`, `image_url`, `live_stream_id`, `popularity`, `platform`
- `brand_rank`: `rank`, `name`, `type`, `user_id`, `avatar_url`, `live_stream_id`, `popularity`, `platform`
- `hot_person_board`: `rank`, `name`, `type`, `user_id`, `avatar_url`, `reason`, `popularity`, `platform`
- `user_live`: `user_id`, `is_live`, `video_count`, `platform`
- `user_search`: `next_page_token`, `user_id`, `nickname`, `kwai_id`, `bio`, `gender`, `verified`, `follower_count`, `video_count`, `avatar_url`, `platform`

#### Field notes

- `rank`: Hot-list position from 1 (trending), in Kuaishou's order; the pinned entry is first.
- `hot_value`: Heat value shown on the hot list (trending), converted from text such as 12.442 million to the whole number 12442000; the pinned entry may have none. Compare it only within the list.
- `label`: Hot-list badge as shown (trending), such as pinned, new or exclusive; absent when there is no badge.
- `cover_url`: Cover image; on trending, the picture for the hot-list entry.
- `video_ids`: Short IDs (starting with 3x) of the videos behind a hot-list entry (trending); pass one as `url` to video or comments. Sometimes the list carries no video IDs, and the field is then absent.
- `duration_ms`: Duration in **milliseconds**.
- `author_kwai_id`: The author's Kuaishou handle (a user-chosen ID).
- `author_verified`: Whether the author is verified; on comments, the commenter.
- `author_gender`: Author gender on video and comments: M or F.
- `author_avatar_url`: The commenter's avatar link (comments).
- `ip_location`: The commenter's IP region as Kuaishou displays it, usually a province (comments).
- `liked_by_author`: Whether the video's author liked this comment (comments).
- `next_page_token`: Page token (comments, user_search): pass it back unchanged as page_token for the next page. Every row of a page carries the same value, which also appears at the top level of the response; absent on the last page.
- `view_count`: Views of the topic (hot_boards).
- `name`: Name of the ranked entry (rank actions): the host's or brand account's nickname, or the product title on product rows.
- `type`: What the ranked entry is (rank actions): `user` for an account, `product` for a product (products board of shopping_rank only).
- `user_id`: Numeric Kuaishou user ID (rank actions, user_search, user_live); pass it to user_live.
- `seller_id`: Numeric user ID of the account selling the product (product rows of shopping_rank).
- `product_id`: Kuaishou shop product ID (product rows of shopping_rank).
- `price_cny`: Product price in CNY as shown on the board (product rows of shopping_rank).
- `promotion`: Product badges as shown, such as coupons or a positive-review rate (product rows of shopping_rank).
- `subtitle`: The line under the name on the board; on live_rank, the stream title.
- `reason`: Why the account is on the board, in Kuaishou's words, such as a new video or a jump in searches (hot_person_board).
- `live_stream_id`: ID of the live stream in progress (host rows of live_rank, shopping_rank and brand_rank); absent when not live.
- `popularity`: Popularity or heat shown on the board, as a whole number (a board figure of 15.5 × 10,000 becomes 155000); compare it only within one board.
- `is_live`: Whether the account is live right now (user_live).
- `kwai_id`: The account's Kuaishou handle (user_search); absent when the account has not set one.
- `gender`: Gender on user_search: M or F.
- `verified`: Whether the account is verified (user_search).
- `nickname`: Nickname.
- `transcript`: Transcript of the video's spoken narration (returned when available).
- `video_count`: Total number of works (for search and user_posts it is the author's; for user_live and user_search it is this account's).

### Pricing

Pay per event, charged only when a run delivers data:

- `search`: $0.0391, one event per started block of 20 results.
- `user_posts`: $0.0391, one event per started block of 20 results.
- `trending`: $0.0015, one event per non-empty request, whatever the row count.
- `video`: $0.0088, one event per non-empty request, whatever the row count.
- `comments`: $0.0009, one event per non-empty request, whatever the row count.
- `hot_boards`: $0.0015, one event per non-empty request, whatever the row count.
- `live_rank`: $0.0015, one event per non-empty request, whatever the row count.
- `shopping_rank`: $0.0015, one event per non-empty request, whatever the row count.
- `brand_rank`: $0.0016, one event per non-empty request, whatever the row count.
- `hot_person_board`: $0.0017, one event per non-empty request, whatever the row count.
- `user_live`: $0.0009, one event per non-empty request, whatever the row count.
- `user_search`: $0.0088, one event per non-empty request, whatever the row count.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by Kuaishou or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

## `keyword` (type: `string`):

Used by `search` (required), `user_search` (required). Search query for public Kuaishou videos (excludes user accounts).

## `user_id` (type: `string`):

Used by `user_posts` (required), `user_live` (required). Kuaishou user ID or author profile link (supports /profile/{id} and /@{user} formats). Used by user_posts to fetch videos and obtainable directly from video search results via author_id / author_url.

## `url` (type: `string`):

Used by `video` (required), `comments` (required). A Kuaishou video link (https://www.kuaishou.com/short-video/<video ID>) or the video ID itself: a short ID starting with 3x, such as the ones in `trending` rows' `video_ids`, or a numeric ID.

## `page_token` (type: `string`):

Used by `comments`, `user_search`. Page token for `comments` and `user_search`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page is one call; the last page has no `next_page_token`.

## `board` (type: `string`):

Used by `hot_boards`, `shopping_rank`. Board: `hot` (default), `entertainment`, `society` or `useful`. Each call returns the whole board, about 50 entries.

## `category` (type: `string`):

Used by `live_rank`, `brand_rank`. Live category: `all` (default), `music`, `dance`, `looks`, `chinese_art`, `dating`, `gaming`, `anime`, `story`, `group_live` or `multi_host`. Each call returns up to 50 hosts of that category.

## `limit` (type: `integer`):

How many results to request for list actions. Defaults and maximums per action: `search` 20 (max 100); `user_posts` 20 (max 100); `trending` 50 (max 50); `hot_boards` 50 (max 50); `live_rank` 50 (max 50); `shopping_rank` 50 (max 50); `brand_rank` 50 (max 50); `hot_person_board` 50 (max 50). Billing: `search` one event per started block of 20 results; `user_posts` one event per started block of 20 results; `trending` one event per non-empty request, whatever the row count; `hot_boards` one event per non-empty request, whatever the row count; `live_rank` one event per non-empty request, whatever the row count; `shopping_rank` one event per non-empty request, whatever the row count; `brand_rank` one event per non-empty request, whatever the row count; `hot_person_board` one event per non-empty request, whatever the row count.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "search",
  "keyword": "露营装备"
}
```

# Actor output Schema

## `records` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keyword": "露营装备"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-kuaishou-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "keyword": "露营装备" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-kuaishou-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keyword": "露营装备"
}' |
apify call blushing_parachute/everyinfra-kuaishou-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blushing_parachute/everyinfra-kuaishou-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xu7UP3qakmd3RzWUR/builds/JsITpgowRARmepMbX/openapi.json
