# Kwai Scraper - Videos, Profiles, Hashtags, Creators, MP4 (`pomlabs/kwai-scraper`) Actor

Kwai without login: video search, hashtags, profiles with every video, related videos, no-watermark MP4 saved to your storage, ranked creators by niche, monitors with alerts and the feed of other countries. $1.50 per 1,000.

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

## Pricing

from $1.00 / 1,000 videos delivered

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/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, Profiles, Hashtags, Creators, MP4

Get data from **Kwai** (kwai.com) **without login, cookies or proxy**: **videos by keyword or hashtag**, **profiles** with followers and latest videos, a single **video with its related videos**, the **"for you" feed of a country**, **music search**, **top creators of a niche with a ranking**, **MP4 and cover downloads**, and **follower monitoring with a webhook alert**.

### Why this one

- **One field for everything:** put keywords, `#hashtags`, `@usernames`, profile links and video links in the same list. The input names of other Kwai actors work too (`searchQueries`, `searchTerms`, `keywords`, `videoUrls`, `profileUrls`, `urls`, `startUrls`, `hashtags`, `usernames`).
- **Clean fields:** views, likes, comments, shares, engagement rate, duration in seconds, ISO dates, hashtags list, AI-generated flag, cover, MP4 link and every resolution Kwai lists.
- **Filters that save you money:** `minViews`, `minLikes`, `minComments`, `publishedAfter`, `publishedBefore`, `postedWithinDays`, `captionContains`, `verifiedOnly`, `excludeAiVideos`.
- **Creators by niche, ranked:** `mode: creators` samples up to 1,000 videos of a niche and returns the creators ranked by median views times engagement, with followers, likes and bio.
- **MP4 and covers kept for you:** `saveVideos` and `saveCovers` store the files in your key-value store and put the link in each row.
- **Transcripts and summaries:** `includeTranscript` adds, for each video, the speech as text with timed segments and the detected language; `summarize` adds a short summary in the language you choose.
- **Monitoring:** `deltaMode` returns only videos not delivered before; `monitorFollowers` returns the follower change of each profile since the last run, and `webhookUrl` posts the alert to you.
- **Any country feed:** `country` returns the "for you" feed that Kwai shows in Indonesia, India, Pakistan and more.
- **Music search:** songs with id, name, artist and audio link.
- Failed lookups are free.

### Input

| Field | What it does |
|---|---|
| `queries` | Keywords, `#hashtags`, `@usernames`, profile links, video links |
| `mode` | `search` (default), `profile`, `user_videos`, `creators`, `music`, `feed`, `monitor` |
| `maxResults` | Results per query (default 40) |
| `country` | Country of the feed: ID, IN, PK, PH, ES, MX, NG, BR, EG, TR, SA |
| `minViews`, `minLikes`, `minComments` | Keep only videos above these numbers |
| `publishedAfter`, `publishedBefore`, `postedWithinDays` | Date filters |
| `captionContains`, `verifiedOnly`, `excludeAiVideos` | Caption words, verified authors only, skip AI videos |
| `expandWithHashtag` | Search the hashtag of each keyword too |
| `includeAuthorStats` | Add followers, following and likes of the author to each video |
| `includeRelated`, `includeAlbums`, `includeQualities` | Related videos, profile albums, every resolution |
| `saveVideos`, `saveCovers`, `kvStoreName` | Save MP4 and cover files to a key-value store |
| `includeTranscript`, `transcriptLanguage`, `transcriptTimestamps`, `maxTranscripts` | Speech to text of each video, with timed segments |
| `summarize`, `summaryLanguage` | A short summary of each transcript |
| `maxCreators`, `sampleVideos` | Creators ranking size and sample size |
| `deltaMode`, `deltaStateKey` | Return only what is new since the last run with this key |
| `monitorFollowers`, `minFollowerChange`, `webhookUrl`, `webhookHeaders` | Follower change alerts |

### Output

Each row has a `type`: `video`, `user`, `creator`, `followerChange`, `music`, `transcript` or `video-download`.

A `video` row: `videoId`, `url`, `caption`, `hashtags`, `author`, `authorId`, `authorUrl`, `authorVerified`, `views`, `likes`, `comments`, `shares`, `engagementRate`, `durationSec`, `publishedAt`, `aiGenerated`, `cover`, `videoUrl`, `qualities`, `music`.

A `transcript` row: `videoId`, `url`, `language`, `text`, `segments`, `summary`.

A `user` row: `authorId`, `name`, `bio`, `verified`, `followers`, `following`, `likesReceived`, `videos`, `niche`, `region`.

### Use cases

- Find the videos and creators winning a hashtag or a niche in Kwai.
- Build a list of creators for influencer outreach, ranked by real reach.
- Track a competitor or a creator: new videos and follower growth, with an alert.
- Download MP4 and covers for research or reposting workflows.
- See what Kwai shows in Indonesia, India or Pakistan today.

### Pricing

Priced per result, less on higher Apify plans. Files saved to your key-value store are charged as their own event.

### Notes

- Comments and follower lists of a profile are not returned: Kwai shows them only inside its app.
- A profile returns its latest videos (about 40 per page, more with `maxResults`); the full count comes in the profile row.
- The country feed changes for real in Indonesia, India and Pakistan; other countries return a feed close to the default.

### Support, feedback and requests

Questions, bug reports, complaints, feature requests, or an idea for a new tool? Email us at **support@trawlyard.com**, in any language. We read our inbox every day and answer every message. Suggestions and feedback of every kind are welcome: tell us what you need and we will look into it.

# Actor input Schema

## `queries` (type: `array`):

One per line: a keyword (video search), a #hashtag, an @creator or profile link (https://www.kwai.com/@name), a video link or id (https://www.kwai.com/@name/video/5203777995084625720), or the word feed (the "for you" feed, in the Country you pick). Up to 20. The input names of other Kwai scrapers work too (searchQueries, searchTerms, videoUrls, startUrls, profileUrls, usernames, hashtags).

## `mode` (type: `string`):

Optional shortcut. Search reads Queries as usual; Creators ranks the creators of the niche word or #hashtag in the query by median views and engagement; Search with the whole sound returns videos with the music id, name, artist and audio link; Follower monitor returns the follower count of each profile and its change since the last run with the same State key.

## `maxResults` (type: `integer`):

1 to 5,000 videos per query (search, hashtag, profile). A profile gives all its videos when this is high enough. In Creators mode it is the number of creators (up to 100).

## `country` (type: `string`):

Which country's Kwai the run reads. The for-you feed really changes for ID (Indonesia), IN (India) and PK (Pakistan), where the app runs as SnackVideo; for the other countries the server reports the country but the feed stays close to the default.

## `minViews` (type: `integer`):

Keep only videos with at least this many views.

## `minLikes` (type: `integer`):

Keep only videos with at least this many likes.

## `minComments` (type: `integer`):

Keep only videos with at least this many comments (the count; the comment list itself is not returned).

## `publishedAfter` (type: `string`):

Keep only videos published on or after this date (YYYY-MM-DD).

## `publishedBefore` (type: `string`):

Keep only videos published on or before this date (YYYY-MM-DD).

## `postedWithinDays` (type: `integer`):

Keep only videos published in the last N days.

## `captionContains` (type: `array`):

Keep only videos whose caption has at least one of these words (case-insensitive).

## `verifiedOnly` (type: `boolean`):

Keep only videos of verified creators.

## `excludeAiVideos` (type: `boolean`):

Drop videos Kwai labels as AI-generated.

## `expandWithHashtag` (type: `boolean`):

For keyword queries, also read the hashtag of the same word and merge, which goes deeper than the search alone.

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

Adds authorStats (followers, following, likes received, videos, bio, niche) to every video, read once per creator.

## `includeRelated` (type: `boolean`):

For video links: also the videos Kwai shows next to it.

## `includeAlbums` (type: `boolean`):

For profiles: the creator's albums (playlists) with video count, views and first caption.

## `includeQualities` (type: `boolean`):

Adds the list of resolutions Kwai has for each video (width, height, codec, bitrate, link). Every video already carries videoUrl, the no-watermark MP4 link.

## `saveVideos` (type: `boolean`):

Save each video's MP4 (no watermark) to the run's key-value store before the link expires; the file goes in videoFile. Charged per stored file.

## `saveCovers` (type: `boolean`):

Save each video's cover image to the key-value store; the file goes in coverFile. Charged per stored file.

## `kvStoreName` (type: `string`):

Optional named key-value store for the saved files (kept after the run). Empty = the run's own store.

## `includeTranscript` (type: `boolean`):

For each video returned, add a transcript row with the speech as text (language detected), timed segments and an optional summary. Charged per transcript; videos without speech are free.

## `transcriptLanguage` (type: `string`):

Language code of the speech (en, pt, es, id, hi...) or auto to detect it.

## `transcriptTimestamps` (type: `boolean`):

Add the timed segments (start, end, text) to each transcript.

## `summarize` (type: `boolean`):

Add a 2 to 3 sentence summary to each transcript (needs Transcribe the videos).

## `summaryLanguage` (type: `string`):

Language of the summary, as a name (English, Portuguese...). Empty: the language of the speech.

## `maxTranscripts` (type: `integer`):

The most transcripts of one run, counted from the first video (default 20).

## `maxCreators` (type: `integer`):

Creators mode: how many ranked creators to return (up to 100).

## `sampleVideos` (type: `integer`):

Creators mode: how many videos of the niche are read to find its creators (more videos, more creators found, slower).

## `deltaMode` (type: `boolean`):

Return only videos this account has not received in earlier runs with the same State key (kept 30 days). For schedules and alerts.

## `deltaStateKey` (type: `string`):

Name of the monitor memory, so different schedules do not mix (default: default).

## `monitorFollowers` (type: `boolean`):

Adds followersChange (previous count, time of the previous run, change) to each profile row, compared with the last run with the same State key.

## `minFollowerChange` (type: `integer`):

With follower monitoring: skip profiles whose follower count moved by less than this since the last run.

## `webhookUrl` (type: `string`):

Receives a POST with the run, dataset, count and a sample of rows when the run delivers (use with Only new videos for alerts).

## `webhookHeaders` (type: `object`):

Headers sent with the webhook, for example an authorization token.

## Actor input object example

```json
{
  "queries": [
    "receita"
  ],
  "mode": "search",
  "maxResults": 20,
  "country": "",
  "minViews": 0,
  "minLikes": 0,
  "minComments": 0,
  "verifiedOnly": false,
  "excludeAiVideos": false,
  "expandWithHashtag": false,
  "includeAuthorStats": false,
  "includeRelated": false,
  "includeAlbums": false,
  "includeQualities": false,
  "saveVideos": false,
  "saveCovers": false,
  "includeTranscript": false,
  "transcriptLanguage": "auto",
  "transcriptTimestamps": true,
  "summarize": false,
  "maxTranscripts": 20,
  "maxCreators": 30,
  "sampleVideos": 300,
  "deltaMode": false,
  "monitorFollowers": false,
  "minFollowerChange": 0
}
```

# 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 = {
    "queries": [
        "receita"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/kwai-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 = {
    "queries": ["receita"],
    "maxResults": 20,
}

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

```

## MCP server setup

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