# Kwai & Kuaishou Videos Scraper (`neuro-scraper/kwai-kuaishou-videos-scraper`) Actor

Kwai & Kuaishou Videos Scraper SD - Kwai & Kuaishou Videos Scraper is a logged-out tool that extracts Kwai videos by keyword, hashtag, creator or link (views, likes, comments, shares, mp4 and cover URLs, music, creator stats) plus the trending feed and the Kuaishou hot list.

- **URL**: https://apify.com/neuro-scraper/kwai-kuaishou-videos-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Videos, Social media, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

./README.md

# Actor input Schema

## `operation` (type: `string`):

What to scrape. Auto = every input below is used (search terms -> search results, hashtags -> hashtag videos, profile links -> the creator's videos, video links -> one video each). User profile = one row per creator (followers, following, videos, likes received, bio) instead of their videos. Trending = Kwai's For You feed (no other input needed). Kuaishou hot list = the public 快手 hot list from kuaishou.com/brilliant.

## `searchTerms` (type: `array`):

Keywords to search on Kwai, one per line, e.g. futebol or gol bonito. A term starting with # is read as a hashtag. Results page 10 at a time (offset cursor) until Max items or Kwai's last result.

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

Optional. One more search keyword (same as a line in Search terms), e.g. receitas.

## `hashtags` (type: `array`):

Hashtags (with or without #) or hashtag links (https://www.kwai.com/topic/neymar), one per line. Kwai's topic list is followed with its own pcursor until Max items or the end.

## `urls` (type: `array`):

Kwai links, one per line: a profile (https://www.kwai.com/@Futecem or @Futecem), a video (https://www.kwai.com/@Futecem/video/5253317596671093874), a share link (https://k.kwai.com/p/...), a numeric user id (15 digits) or a video id (19 digits). The Kuaishou hot list page https://www.kuaishou.com/brilliant is accepted too. startUrls and profile_url are read as the same list.

## `userId` (type: `string`):

Optional. One Kwai creator: handle (Futecem), numeric user id or eid (3x...). Same as a profile line in the links list.

## `videoId` (type: `string`):

Optional. One Kwai video id (19 digits, the number after /video/ in a link), e.g. 5253317596671093874.

## `maxItems` (type: `integer`):

How many videos to return for each search term, hashtag and profile (and in total for Trending and the hot list). The platform's own cursor is followed page by page until this number or the list's end.

## `maxTotalItems` (type: `integer`):

Optional cap on all rows of the run together. 0 = only the per-target limit applies.

## `maxPages` (type: `integer`):

Optional. Stop each search term / hashtag / profile after this many pages (search pages hold 10 videos, hashtag pages about 20, profile pages 20).

## `profileSortBy` (type: `string`):

latest = the creator's newest videos first, as Kwai lists them. popular = most viewed first: the newest 'Popular: videos to scan' are read, sorted by views, and the top Max items are kept (Kwai has no popular sort logged out).

## `popularScanDepth` (type: `integer`):

With Popular sort: how many of the newest videos are read per profile before picking the most viewed.

## `includeAuthorStats` (type: `boolean`):

Read each creator's profile once (one extra request per creator) and fill authorFollowers, authorFollowing, authorVideoCount and authorLikesReceived on every row. Profile rows always carry them.

## `proxyConfiguration` (type: `object`):

Kwai's main market is Brazil; residential Brazil is the default (measured to return the same data as direct). Pick another country to see that country's Kwai.

## Actor input object example

```json
{
  "operation": "auto",
  "searchTerms": [
    "futebol"
  ],
  "hashtags": [],
  "urls": [],
  "maxItems": 30,
  "maxTotalItems": 0,
  "maxPages": 0,
  "profileSortBy": "latest",
  "popularScanDepth": 200,
  "includeAuthorStats": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}
```

# 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 = {
    "searchTerms": [
        "futebol"
    ],
    "hashtags": [],
    "urls": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "BR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/kwai-kuaishou-videos-scraper").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 = {
    "searchTerms": ["futebol"],
    "hashtags": [],
    "urls": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "BR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/kwai-kuaishou-videos-scraper").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 '{
  "searchTerms": [
    "futebol"
  ],
  "hashtags": [],
  "urls": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}' |
apify call neuro-scraper/kwai-kuaishou-videos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/kwai-kuaishou-videos-scraper"
        }
    }
}
```

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/j3xrAHG1C0LJCMLJp/builds/TGpalTsX6p9SbUGar/openapi.json
