# Kwai Scraper — Videos by Hashtag, Trending & MP4 Download (`istmobot/kwai-video-scraper`) Actor

Get Kwai videos by hashtag or from the trending feed, without an account. Output: one row per video with creator, description, hashtags, views, likes, comments, shares, duration and the video link. Optional: save each MP4 file.

- **URL**: https://apify.com/istmobot/kwai-video-scraper.md
- **Developed by:** [Istmobot](https://apify.com/istmobot) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## Kwai Scraper — Videos by Hashtag, Trending Feed & MP4 Download

Get **Kwai videos by hashtag or from the trending feed**, with creator, description, hashtags, views, likes, comments, shares, duration and the video link. Optionally **save each video as an MP4 file**. No Kwai account, no API key, no login.

### What is Kwai Scraper?

Kwai is one of the largest short-video apps in **Brazil and Latin America**, with tens of millions of daily users that TikTok data does not cover. This Actor reads the public data the kwai.com website itself loads and returns one clean row per video.

Use it to:

- **Find viral short videos in Brazil and Latin America** for a topic: `receitas`, `futebol`, `humor`, `sertanejo`.
- **Research creators**: who gets the views on a hashtag, with a link to each profile.
- **Compare networks**: run the same hashtags here and on TikTok, Instagram Reels or YouTube Shorts.
- **Collect video files** for analysis, AI training sets, transcription or internal review.
- **Track a hashtag or the feed**: schedule a run every day and watch what rises.

### What data can I get from Kwai?

| Field | Meaning |
|---|---|
| `source` | `hashtag` or `trending` |
| `hashtag` | The hashtag the video was found under |
| `id`, `url` | Video ID and its link on kwai.com |
| `username`, `creatorName`, `creatorUrl`, `isVerified` | Creator handle, display name, profile link and verified badge |
| `description`, `hashtags` | Caption and the hashtags inside it |
| `viewCount`, `likeCount`, `commentCount`, `shareCount` | Engagement numbers |
| `durationSec`, `width`, `height` | Length and size of the video |
| `createdAt` | Date and time the video was posted |
| `thumbnailUrl` | Cover image |
| `videoUrl` | Kwai's own link to the MP4 file |
| `videoDownloadUrl` | Link to the saved MP4 file (with `downloadVideos`) |
| `scrapedAt` | Date and time of the run |

### How much does it cost to scrape Kwai?

Pay-per-event pricing: you pay only for videos you get.

| Event | Price |
|---|---|
| Actor start | $0.005 per run |
| `video` (one video in the dataset) | $0.002 per video, or **$2 per 1,000** |
| `video-download` (optional, one MP4 file saved) | $0.008 per file |

Examples:

- 5 hashtags × 100 videos, data only: $0.005 + 500 × $0.002 = **$1.005**.
- 1 hashtag × 40 videos with the MP4 files: $0.005 + 40 × $0.002 + 40 × $0.008 = **$0.405**.

Hashtags with no videos, invalid hashtags, failed requests and files that cannot be saved are **not charged**. Silver, Gold and higher Apify plans pay less per event. You can set a **maximum cost per run**; the Actor stops cleanly when it reaches it.

### How to scrape Kwai

1. Click **Try for free**.
2. Type one or more hashtags, or turn on **Include the trending feed**.
3. Set the maximum number of videos.
4. Optional: turn on **Download the video files (MP4)**.
5. Click **Start**, then download the dataset as JSON, CSV or Excel, or read it through the Apify API.

### ⬇️ Input

```json
{
    "hashtags": ["receitas", "futebol"],
    "includeTrendingFeed": true,
    "maxVideosPerSource": 40,
    "downloadVideos": false
}
```

| Field | Default | Description |
|---|---|---|
| `hashtags` | — | Hashtags with or without `#` |
| `includeTrendingFeed` | `false` | Also return videos from Kwai's public "For You" feed |
| `maxVideosPerSource` | `40` | Limit for each hashtag and for the feed (1–1,000). More pages load automatically |
| `downloadVideos` | `false` | Save each MP4 file and add `videoDownloadUrl` |

Give at least one hashtag or turn on the trending feed.

### ⬆️ Output

```json
{
    "source": "hashtag",
    "hashtag": "receitas",
    "id": "5247969572093467675",
    "url": "https://www.kwai.com/@coisasdonordesofc/video/5247969572093467675",
    "username": "coisasdonordesofc",
    "creatorName": "coisasdonordesteofc",
    "creatorUrl": "https://www.kwai.com/@coisasdonordesofc",
    "isVerified": true,
    "description": "A melhor receita de pudim #receitas #doces",
    "hashtags": ["receitas", "doces"],
    "viewCount": 125351,
    "likeCount": 8379,
    "commentCount": 131,
    "shareCount": 5277,
    "durationSec": 88.9,
    "width": 576,
    "height": 1024,
    "createdAt": "2024-02-12T19:38:46.720Z",
    "thumbnailUrl": "https://aws-br-pic.kwai.net/upic/2024/02/13/03/....webp",
    "videoUrl": "https://aws-br-cdn.kwai.net/upic/2024/02/13/03/....mp4?tag=...",
    "videoDownloadUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/video-5247969572093467675.mp4",
    "scrapedAt": "2026-11-12T09:30:00.000Z"
}
```

A hashtag or feed that returns nothing gives one free row with `errorCode` (`INVALID_HASHTAG`, `NO_VIDEOS` or `FETCH_FAILED`) and a plain explanation in `error`.

### Download the video files

Turn on **Download the video files (MP4)** and each video is saved to the run's key-value store as `video-<id>.mp4`. Its link goes in the `videoDownloadUrl` column. The file is the one Kwai serves on its public page.

- You pay per file delivered. Files over 200 MB and files that cannot be fetched are skipped and not charged.
- Files stay as long as your Apify plan keeps run storage (7 days on the free plan). Download them, or use a named key-value store, if you need them longer.
- `videoUrl` is Kwai's own link. It works without the download option, but it is signed and expires.

### Limits to know

- **Country**: Kwai has no web feed per country. The trending feed and most hashtags return mainly **Brazilian** content, then Spanish-speaking Latin America. For one country, use hashtags in its language and about its topics.
- **Hashtag match** is Kwai's own: a hashtag page can include videos that Kwai relates to the topic without the exact hashtag in the caption.
- **Search by keyword and creator profiles** are not included. Open an issue if you need them.
- A video appears once per run, even when two hashtags share it.

### Integrations & API

```bash
curl -X POST "https://api.apify.com/v2/acts/istmobot~kwai-video-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"hashtags":["futebol"],"maxVideosPerSource":20}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("istmobot/kwai-video-scraper").call(run_input={"includeTrendingFeed": True, "maxVideosPerSource": 50, "downloadVideos": True})
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(video.get("viewCount"), video.get("videoDownloadUrl"))
```

Schedule runs and send the results to Google Sheets, Slack, Make, n8n or Zapier with Apify integrations.

### 🤖 Use with AI agents (MCP)

`https://mcp.apify.com?tools=istmobot/kwai-video-scraper`. Example prompt: "Get 50 trending Kwai videos and tell me which hashtags appear most."

### Related Actors

- [TikTok Scraper (cheap)](https://apify.com/istmobot/tiktok-scraper-cheap): hashtags, trending hashtags per country and MP4 download.
- [Snapchat Spotlight Scraper](https://apify.com/istmobot/snapchat-spotlight-scraper): Spotlight videos by hashtag.
- [X (Twitter) Trends by Country](https://apify.com/istmobot/x-trends-by-country): the trends of a country, ready to use as hashtags.

### ❓ FAQ

**Do I need a Kwai account?** No. The Actor reads public data only.

**Can I get the trending videos of one country?** Kwai's web feed has no country choice and is mostly Brazilian. Use local hashtags for other countries.

**How many videos can I get per hashtag?** Up to 1,000 per run, as many as Kwai lists for the hashtag.

**Does the MP4 have a watermark?** The file is the public one Kwai serves, which usually has the Kwai watermark.

**Is it legal to scrape Kwai?** The Actor collects public data only. The videos belong to their creators; check that your use respects copyright and privacy law, and Kwai's terms.

### Your feedback

Missing a field or a source? Open an issue on the **Issues** tab.

# Actor input Schema

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

Hashtags to get Kwai videos for, one per line, with or without "#", e.g. "receitas", "futebol", "humor". Kwai's audience is mostly in Brazil and Latin America, so Portuguese and Spanish hashtags return the most videos.

## `includeTrendingFeed` (type: `boolean`):

Also return videos from Kwai's public "For You" feed. Kwai does not offer a feed per country on the web; the feed is mostly Brazilian content.

## `maxVideosPerSource` (type: `integer`):

Upper limit of videos for each hashtag and for the trending feed. Kwai gives about 20 videos per page; more pages load automatically.

## `downloadVideos` (type: `boolean`):

Save each video as an MP4 file in the run's key-value store and add its link in the "videoDownloadUrl" column. Charged per file saved. Files that cannot be saved are not charged.

## Actor input object example

```json
{
  "hashtags": [
    "receitas",
    "futebol"
  ],
  "includeTrendingFeed": false,
  "maxVideosPerSource": 40,
  "downloadVideos": false
}
```

# Actor output Schema

## `results` (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 = {
    "hashtags": [
        "receitas",
        "futebol"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("istmobot/kwai-video-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 = { "hashtags": [
        "receitas",
        "futebol",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("istmobot/kwai-video-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 '{
  "hashtags": [
    "receitas",
    "futebol"
  ]
}' |
apify call istmobot/kwai-video-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,istmobot/kwai-video-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/Jtl18PB5SXHgW1D4J/builds/5CMvEVnUcdGXkNbN0/openapi.json
