# Kwai Scraper \[Just 💰$0.8] — Videos, Hashtags & Creator Stats (`blackfalcondata/kwai-com-scraper`) Actor

Scrape kwai.com — short videos by keyword or topic URL. Each record carries the caption and hashtags plus view, like, comment and share counts. Video and cover URLs and the creator handle come with every row; optional detail enrichment adds creator followers and bio.

- **URL**: https://apify.com/blackfalcondata/kwai-com-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 results

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

### What does Kwai Scraper do?

Kwai Scraper extracts structured video data from [kwai.com](https://kwai.com): the caption, hashtags, view, like, comment and share counts, video and cover URLs and the creator handle for every video. Search by keyword or paste a Kwai topic URL, set how many results you want, and turn on detail enrichment to add creator followers, video count and bio.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

- **👀 Views and engagement:** `viewCount`, `likeCount`, `commentCount` and `shareCount` show how far each video reached and how people reacted.
- **#️⃣ Hashtags and mentions:** `hashtags` on every video, so you can filter by topic without parsing the message.
- **🔍 Keyword search:** search kwai.com by keyword with the `query` input. A `#hashtag` query or a kwai.com/topic/<name> URL reads that exact topic feed, and keyword search also continues into the keyword's hashtag feed for extra depth when `expandSearchWithHashtag` is on (default true). Each row carries `searchSurface` (`search` or `topic`) saying which feed it came from.
- **🔗 Paste-mode:** paste kwai.com URLs into `startUrls` to scrape exactly the pages you picked in the browser.
- **📋 Creator stats enrichment:** on by default (`includeDetails`): one extra creator-profile request per creator, not per video, adds the creator's followers, following, video count, total likes, bio and verified flag to each of their videos. Switch it off for the fastest runs.
- **♻️ Incremental mode:** recurring runs emit only videos that are new or updated since the last run, so scheduled monitoring of a hashtag or keyword does not re-deliver the whole feed. Saves 80-95% on repeat runs.
- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.
- **📦 Compact mode:** `compact` keeps the core video fields for AI agents and pipelines: `videoId`, `url`, `caption`, `hashtags`, `createTime`, `duration`, `viewCount`, `likeCount`, `commentCount`, `shareCount`, `videoUrl`, `coverUrl`, the author's `authorKwaiId`, `authorName`, `authorUrl`, plus `sourceKeyword` and `changeType`.
- **🔌 MCP connectors:** export your results into Notion via Apify's MCP connectors — a clean run-summary page, no glue code. Opt-in via the App connector field; deterministic field-mapping, no AI. Built on Apify's connector framework, so more destinations open up as their catalog grows.
- **📌 Change classification:** each video carries a `changeType` of NEW / UPDATED / UNCHANGED / REAPPEARED / EXPIRED. Default emits NEW + UPDATED + REAPPEARED; opt into the others with `emitUnchanged` / `emitExpired`. With `emitExpired`, a video that disappeared from the feed comes back as a tombstone row with its video id, `changeType` EXPIRED and when it disappeared.
- **🧹 Empty-field stripping:** drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards that already handle missing fields gracefully.

### What data can you extract from kwai.com?

Each result includes Core video fields (`recordType`, `videoId`, `url`, `caption`, `createTime`, `duration`, `width`, and `height`, and more) and detail fields when enrichment is enabled (`detailFetched`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Detail enrichment is on by default and fetches each record's detail page — extra fields the search results omit.

### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Keywords or hashtags to search on Kwai (e.g. "dance", "futebol", "#viral"). Use a JSON array for several, e.g. \["dance","remix"]. Required if no startUrls provided.
- **`maxResults`** — Maximum total results (0 = unlimited). (default: `100`)
- **`startUrls`** — Paste Kwai topic URLs (e.g. https://www.kwai.com/topic/dance). Each URL becomes its own task; results are merged and deduped by video ID across all URLs. When provided, startUrls REPLACE the query field (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error). (default: `[]`)
- **`expandSearchWithHashtag`** — Kwai's keyword search returns only ~10-15 videos. When on, a keyword search continues into that keyword's hashtag (topic) feed for more videos; every row says which feed it came from in `searchSurface` (`search` or `topic`). Turn off to get keyword-search results only. A `#hashtag` query or a topic URL always reads exactly that topic feed. (default: `true`)
- **`includeDetails`** — Also fetch each creator's profile (followers, following, video count, total likes, bio, verified). One extra request per creator, not per video. (default: `true`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`excludeEmptyFields`** — Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards. (default: `false`)
- **`incrementalMode`** — Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (keywords, startUrls) so different searches never share state. (default: `false`)
- **`stateKey`** — Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.
- **`skipReposts`** — When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection). (default: `false`)
- **`emitUnchanged`** — When incremental mode is on, also emit listings whose content has not changed since the last run. (default: `false`)
- **`emitExpired`** — When incremental mode is on, also emit listings that were seen before but are no longer found. (default: `false`)
- ...and 14 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "dance",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit videos that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "dance",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "dance-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "dance",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured video records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example video record

```json
{
  "recordType": "video",
  "videoId": "5230799600130073478",
  "url": "https://www.kwai.com/@bujxr744/video/5230799600130073478",
  "caption": "O MELHOR DO DANCE REMIX. #música #Dance #remix _-💜-_TOP_DANCE_REMIX_-❤️-_▶️_🎶🎧🎶_🔊",
  "hashtags": [
    "música",
    "Dance",
    "remix"
  ],
  "createTime": "2024-02-28T22:31:24.095Z",
  "duration": 143,
  "width": 720,
  "height": 1280,
  "viewCount": 89743,
  "likeCount": 6956,
  "commentCount": 136,
  "shareCount": 4927,
  "videoUrl": "https://ak-br-cdn.kwai.net/upic/2024/02/29/06/BMjAyNDAyMjkwNjI4MTdfMTUwMDAwMTgyNjI1Mjk3XzE1MDEwNTQyMDQ5MDQyN18yXzM=_b_B0048abb1c25e4999bfe933386a46e9d4.mp4?tag=1-1794269896-s-0-uhrgdzx9iv-615c416cd36b...",
  "videoUrlVariants": [
    "https://ak-br-cdn.kwai.net/upic/2024/02/29/06/BMjAyNDAyMjkwNjI4MTdfMTUwMDAwMTgyNjI1Mjk3XzE1MDEwNTQyMDQ5MDQyN18yXzM=_b_B0048abb1c25e4999bfe933386a46e9d4.mp4?tag=1-1794269896-s-0-uhrgdzx9iv-615c416cd36b...",
    "https://aws-br-cdn.kwai.net/upic/2024/02/29/06/BMjAyNDAyMjkwNjI4MTdfMTUwMDAwMTgyNjI1Mjk3XzE1MDEwNTQyMDQ5MDQyN18yXzM=_b_B0048abb1c25e4999bfe933386a46e9d4.mp4?tag=1-1794269896-s-1-f888axvukn-030922b38db..."
  ],
  "coverUrl": "https://aws-br-pic.kwai.net/upic/2024/02/29/06/BMjAyNDAyMjkwNjI4MTdfMTUwMDAwMTgyNjI1Mjk3XzE1MDEwNTQyMDQ5MDQyN18yXzM=_oscn2_B0a30998b15c39434b9ea4393b4e40725.webp",
  "firstFrameUrl": "https://aws-br-pic.kwai.net/upic/2024/02/29/06/BMjAyNDAyMjkwNjI4MTdfMTUwMDAwMTgyNjI1Mjk3XzE1MDEwNTQyMDQ5MDQyN18yXzM=_offn_B223ce7fee6412b74948327e4a0d3006b.webp?tag=1-1794269896-s-0-og7wmpshhk-bcc5061...",
  "musicArtist": "🎧 _-💜-_▶PLAY®REMIX_-🤎-_ 🔊",
  "musicId": "9754854631",
  "musicUrl": "https://aws-br-pic.kwai.net/bs2/ost/MTUwMTA1NDIwNDkwNDI3XzE1MDAwMDE4MjYyNTI5Nw.m4a",
  "authorId": "150000182625297",
  "authorName": "🎧 _-💜-_▶PLAY®REMIX_-🤎-_ 🔊",
  "authorKwaiId": "bujxr744",
  "authorBio": "🎧 _-💜-_▶PLAY®REMIX_-🤎-_ 🔊 🎚️🎛️  O MELHOR DO DANCE COMERCIAL. ▶ .🎶🎧🎶. 🔊",
  "authorAvatar": "https://aws-br-pic.kwai.net/bs2/overseaHead/20260915170636_BMTUwMDAwMTgyNjI1Mjk3_t.jpg",
  "authorVerified": false,
  "authorUrl": "https://www.kwai.com/@bujxr744",
  "sourceKeyword": "dance",
  "createdAt": "2024-02-28T22:31:24.095Z",
  "durationSec": 142.6,
  "authorHandle": "bujxr744",
  "authorAvatarUrl": "https://aws-br-pic.kwai.net/bs2/overseaHead/20260915170636_BMTUwMDAwMTgyNjI1Mjk3_t.jpg",
  "authorFollowers": 124368,
  "authorFollowing": 3696,
  "authorVideoCount": 2389,
  "authorTotalLikes": 1198172,
  "listingId": "078bf9a303a23291454c588c21ef54296b09e39c545ef6ac7c32bf2d8779d004",
  "searchQuery": "dance",
  "contentQuality": "full",
  "detailFetched": true,
  "portalUrl": "https://www.kwai.com/@bujxr744/video/5230799600130073478",
  "scrapedAt": "2026-11-10T00:18:15.316Z",
  "source": "kwai.com",
  "contentHash": "fdb30b3f7b83ee0ae6d428ba5d42bb7e5e33afd64883b692df9ecec758b3c925"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape kwai.com

1. Go to [Kwai Scraper](https://apify.com/blackfalcondata/kwai-com-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Keep `includeDetails` on (the default) for the extra detail-page fields, or turn it off for faster, cheaper runs.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract video data from kwai.com for market research and competitive analysis.
- Monitor new and changed videos on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape kwai.com?

Kwai Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.0009 per run
- **Per result:** $0.0008 per video record

Example costs:

- 10 results: **$0.0089**
- 25 results: **$0.021**
- 100 results: **$0.081**
- 200 results: **$0.16**
- 500 results: **$0.4**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of videos that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 videos per run, daily polling (30 runs/month). Costs scale linearly with the number of videos.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.20 | $0.01 | $0.19 (95%) | $0.33 |
| 15% — moderate broad query | $0.20 | $0.03 | $0.17 (85%) | $0.93 |
| 30% — high-volume aggregator | $0.20 | $0.06 | $0.14 (70%) | $1.83 |

Full re-scrape monthly cost at the same cadence: $6.03. First month with incremental costs $0.52 / $1.10 / $1.97 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

**Run limits**: A run stops on its own after 12 hours if you set no timeout or a timeout longer than 12 hours. It also stops if it finds no new results for 60 minutes. Results collected before the stop are saved in your dataset.

### FAQ

#### How many results can I get from kwai.com?

The number of results depends on the search query and available videos on kwai.com. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Kwai Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed videos on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Kwai Scraper with other apps?

Yes. Kwai Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Kwai Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Kwai Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape kwai.com?

This actor extracts publicly available data from kwai.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/kwai-com-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Douyin Hot Board Scraper — Trending Topics & Heat](https://apify.com/blackfalcondata/douyin-com-scraper?fpr=1h3gvi) — Scrape Douyin — the live hot board (抖音热榜) and rising topics as structured JSON: rank, heat score,.
- [Loom Video Scraper — Transcripts & Metadata](https://apify.com/blackfalcondata/loom-com-scraper?fpr=1h3gvi) — Scrape Loom videos from share or embed URLs or from 32-character video IDs. Every row carries the.
- [Pexels Scraper — Photos, Videos & Engagement Data](https://apify.com/blackfalcondata/pexels-scraper?fpr=1h3gvi) — This Pexels scraper extracts photos and videos by search, curated feed, photo ID, user, collection.
- [Snapchat Profile Scraper \[Just 💰$0.03\]](https://apify.com/blackfalcondata/snapchat-com-scraper?fpr=1h3gvi) — Scrape Snapchat public profiles of creators and brands by keyword or profile URL. Each row has.
- [Video & Audio Transcriber · Whisper Speech-to-Text, SRT & VTT](https://apify.com/blackfalcondata/video-audio-transcriber?fpr=1h3gvi) — Whisper speech-to-text for any video, audio or podcast URL: full transcript with timestamped.
- [YouTube Comment Scraper — Comments, Replies, Likes](https://apify.com/blackfalcondata/youtube-comment-scraper?fpr=1h3gvi) — Scrape YouTube comments and their reply threads from any video, channel, or search query. Each.
- [YouTube Scraper $2/1K — Videos, Channels, Comments, Transcripts](https://apify.com/blackfalcondata/youtube-data-scraper?fpr=1h3gvi) — Scrape YouTube videos, channels, comments, and transcripts in one tool — by keyword or by video,.
- [Bluesky Scraper - Posts, Search and Profile Feeds](https://apify.com/blackfalcondata/bsky-app-scraper?fpr=1h3gvi) — Scrape Bluesky posts by keyword search, @handle or profile URL. Each post includes its full text.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on kwai.com. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with Kwai's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Kwai or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

kwai scraper, kwai api, apify kwai, kwai data extraction, kwai.com scraper, kwai.com data, kwai.com api, social media scraper, video data, creator data.

# Changelog

This Actor's version history is a separate document: https://apify.com/blackfalcondata/kwai-com-scraper/changelog.md

# Actor input Schema

## `query` (type: `string`):

Keywords or hashtags to search on Kwai (e.g. "dance", "futebol", "#viral"). Use a JSON array for several, e.g. \["dance","remix"]. Required if no startUrls provided.

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

Maximum total results (0 = unlimited).

## `startUrls` (type: `array`):

Paste Kwai topic URLs (e.g. https://www.kwai.com/topic/dance). Each URL becomes its own task; results are merged and deduped by video ID across all URLs. When provided, startUrls REPLACE the query field (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error).

## `expandSearchWithHashtag` (type: `boolean`):

Kwai's keyword search returns only ~10-15 videos. When on, a keyword search continues into that keyword's hashtag (topic) feed for more videos; every row says which feed it came from in `searchSurface` (`search` or `topic`). Turn off to get keyword-search results only. A `#hashtag` query or a topic URL always reads exactly that topic feed.

## `includeDetails` (type: `boolean`):

Also fetch each creator's profile (followers, following, video count, total likes, bio, verified). One extra request per creator, not per video.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (keywords, startUrls) so different searches never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection).

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit listings whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit listings that were seen before but are no longer found.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

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

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

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

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `descriptionFormat` (type: `string`):

Choose which representation of the listing description to include. `all` keeps every variant; the others keep only the selected one.

## Actor input object example

```json
{
  "query": "dance",
  "maxResults": 100,
  "startUrls": [],
  "expandSearchWithHashtag": true,
  "includeDetails": true,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5,
  "descriptionFormat": "all"
}
```

# 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 = {
    "query": "dance",
    "maxResults": 100,
    "excludeEmptyFields": false,
    "descriptionFormat": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/kwai-com-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 = {
    "query": "dance",
    "maxResults": 100,
    "excludeEmptyFields": False,
    "descriptionFormat": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/kwai-com-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 '{
  "query": "dance",
  "maxResults": 100,
  "excludeEmptyFields": false,
  "descriptionFormat": "all"
}' |
apify call blackfalcondata/kwai-com-scraper --silent --output-dataset

```

## MCP server setup

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