🎯 GUAIKEI TikTok Creator Screening & KOL Recommendations
1. Capability Overview
💡Value in one sentence: A single conversational instruction fetches public TikTok video/author/comment data and outputs structured JSON — for creator screening, data analysis, market research, sentiment monitoring, viral topic discovery, competitor account monitoring, comment sentiment analysis, and trend tracking. No more manual scrolling through TikTok.
| Capability | Entry Script | Required Parameters | Returns |
|---|---|---|---|
| Keyword Search | scripts/tiktok/search-cli.js | --keyword | Video list: author, likes/comments/shares/bookmarks, tags, play URL |
| Creator Posts | scripts/tiktok/post-cli.js | --url (profile or username) | Public video list of the creator (supports newest / hottest sorting) |
| Video Comments | scripts/tiktok/comment-cli.js | --url (video link or ID) | Comment text, commenter, like count, reply count |
Target Audiences
- 🎯 Brands — Ride trending topics for organic content
- 🏢 MCN Agencies — Discover high-engagement potential accounts
- ✍️ Content Creators — Find benchmark accounts and gain creative inspiration
- 📊 Content Operators — Weekly topic selection and competitor analysis
Prerequisite: Must be executed from the skill root directory, and the environment variable
GUAIKEI_API_TOKENmust be configured. If not configured, all commands return exit code3witherror_code=AUTH_REQUIRED— in this case, directly prompt the user to configure the Token, do not retry or change parameters.
2. When to Call / When Not to Call
2.1 Should Call
- The user wants to look up TikTok public content (videos/images/authors/comments/trends).
- The user is conducting viral topic research, competitor account monitoring, influencer screening, comment sentiment analysis, or content style breakdown.
- The user has provided TikTok keywords, video URLs, or creator profile URLs and expects structured data.
- After getting the data, the user intends to perform summarization, comparison, sorting, clustering, or generate reports/tables.
2.2 Should Not Call
- The user only wants copy/text/titles/scripts without querying TikTok data.
- The platform is not TikTok but other platforms (Douyin, Xiaohongshu, Bilibili, Weibo, WeChat Official Accounts) — route to the corresponding skill. This skill handles TikTok only.
- The request requires login credentials, private information, or hidden data — not supported.
- Both a keyword and an identifiable link are present, but the goal is unclear — ask clarifying questions first, do not guess.
2.3 Capability Boundaries (Explicitly Not Supported)
Write operations such as posting, liking, commenting, following, or direct messaging are not supported under any circumstances. No account login is performed. No private fields like phone numbers, locations, or DMs are collected. The skill does not make marketing decisions on behalf of the user — its duty is to fetch data; analysis is left to the upper layer.
3. Call Routing (Check First, Then Execute)
| User Intent | Script | Trigger Words |
|---|---|---|
| Search keywords, find certain content, find viral content | search-cli | search / find / keyword / viral / most popular |
| View a creator/influencer's posts, profile, account, recent uploads | post-cli | posts / profile / account / creator / influencer / KOL |
| View comments/messages on a specific video | comment-cli | comments / messages / comment section opinions |
3.1 Disambiguation Rules (Must Follow)
- When "video" appears alone, do not default to
post-cli.- If "keyword" is present without "comments" →
search-cli(user wants to search for such videos). - If explicitly "comments/messages on this video" →
comment-cli. - Only when "posts / profile / account / creator / influencer" appears →
post-cli.
- If "keyword" is present without "comments" →
- Comments take priority over posts: If a
/video/<id>link is given and the user asks about comments →comment-cli; if they ask about "this person's posts" →post-cli(using@username). - If a user provides a
/video/<id>link but requests a "post list" → first confirm whether they want the author's posts or the video's comments.
3.2 Parameter Inference Rules
| User Phrase | Parameter |
|---|---|
| Relevance / default | --sort 0 (search) |
| Most popular / most liked / viral / hottest | --sort 1 (search) |
| Most recent / reverse chronological | --sort 0 (posts) |
| Hottest posts | --sort 1 (posts) |
| One day / 24 hours | --time 1 |
| One week / 7 days | --time 7 |
| One month / three months / half year | --time 30 / 90 / 180 |
| N items / top N / want N | --limit N |
Default values: sort=0, time=0, limit=10.
⚠️ Do not confuse the
--sortfor search with the--sortfor posts: the former is "relevance / most likes", the latter is "newest / hottest".
If any parameter is reverted due to an invalid value, it will appear in the warnings array of the output JSON. This must be echoed to the user; do not pretend the original value was used.
4. Execution
See references/options.md for full parameter documentation; field-level schemas are in the 6 JSON Schema files (draft-07) under
assets/.
# Keyword search
node scripts/tiktok/search-cli.js --keyword "AI" --sort 1 --limit 20
node scripts/tiktok/search-cli.js --keyword "AI model" --time 7 --limit 20
# Creator posts
node scripts/tiktok/post-cli.js --url "https://www.tiktok.com/@username" --limit 30
node scripts/tiktok/post-cli.js --url "https://www.tiktok.com/@username" --sort 1 --limit 30
# Video comments
node scripts/tiktok/comment-cli.js --url "https://www.tiktok.com/@username/video/1234567890123456789" --limit 40
Acceptable Input Formats
- Creator:
https://www.tiktok.com/@username, URL with parametershttps://www.tiktok.com/@username?lang=en, or directlyauthor_sec_uid - Video:
https://www.tiktok.com/@username/video/<id>, short link, or directly the video<id>
Execution Discipline
- Treat stdout as the only machine-readable output (pure JSON); banners, progress logs, and error logs go to stderr — do not mix them.
- For a single call,
--limitis recommended to be ≤ 1000. - Do not automatically relax conditions and retry upon receiving an empty result: first inform the user of the empty result, and let the user decide whether to change keywords or widen
--time.
5. Output Contract (Mandatory for AI Parsing)
All entry points output the same envelope; successful and failure structures are identical:
{
"status": "success | empty | error",
"error_code": "OK | NO_MATCH | AUTH_REQUIRED | INVALID_KEYWORD | ...",
"message": "Human-readable explanation",
"timestamp": "2026-09-16 21:00:00",
"request": {
"command": "search",
"keyword": "AI",
"sort": 1,
"time": 0,
"limit": 20
},
"metadata": {
"skill_version": "1.0.0",
"skill_name": "tiktok-creator-videos",
"runtime_version": "22.22.2",
"execution_time": 8421
},
"results": [],
"warnings": ["Invalid count 99999, reverted to 10"]
}
5.1 status Semantics
| status | Meaning | results | Action to Take |
|---|---|---|---|
success | Data retrieved successfully | Non-empty array | Analyze directly |
empty | Request succeeded, but no data found | null | Treat as a valid result; inform the user nothing was found, do not treat as failure |
error | Request failed | null | Handle based on error_code; do not fabricate data |
5.2 Exit Codes
| Exit Code | Meaning | Agent Behavior |
|---|---|---|
0 | Success (success or empty) | Continue analysis |
1 | Runtime error (network/timeout/API exception/invalid parameter) | Display message, ask the user whether to retry with different parameters |
3 | AUTH_REQUIRED: Token missing or malformed | Stop immediately, prompt to configure GUAIKEI_API_TOKEN, do not retry |
5.3 Error Code Handling
| error_code | Handling |
|---|---|
AUTH_REQUIRED | Stop and prompt to configure Token. Do not retry, do not circumvent with different parameters |
INVALID_KEYWORD | Prompt that keyword must be 2–100 characters and cannot contain < > " ' & or HTTP links |
NO_MATCH | Valid empty result; suggest changing keywords or widening --time |
NETWORK_ERROR | Built-in retry already performed; if still fails, suggest checking network; at most 1 manual retry |
TIMEOUT_ERROR | Built-in retry already performed; if still fails, suggest reducing --limit and retrying |
| Other (server-side codes) | Display error_code + message as-is; do not guess the meaning |
5.4 warnings Must Be Echoed
When an invalid parameter is automatically reverted (e.g., --sort 9, --limit 99999), the warnings array will state "which parameter was changed to what." Must inform the user verbatim; do not pretend the original value took effect.
5.5 Prohibited Behaviors
- ❌ Do not fabricate, supplement, or fill in any data from memory.
- ❌ When
AUTH_REQUIREDis received, do not retry, switch scripts, or modify parameters. - ❌ Do not treat
emptyas a conclusion beyond "the content the user wants does not exist" (it does not mean the API is broken). - ❌ Do not automatically relax search conditions without the user's consent.
6. Result Consumption Suggestions (Improve Final Output Quality)
After receiving results, organize the output according to the user's original goal, rather than outputting raw JSON:
- Topic Research → Sort by
digg_countdescending, take the top N, summarize title patterns, hashtags, and video duration distribution. - Competitor Monitoring → Sort by
create_timeto analyze posting cadence, calculate update frequency and viral ratio. - Comment Insights → Sort by
digg_count, cluster high-liked comments by opinion, output positive/negative ratio. - Creator Screening → Cross-reference
author_nickname, average engagement, and posting frequency to provide a candidate shortlist. - Archiving Needed → Each run automatically saves a log file; the path is in the stderr line "Saved to …".
7. Security & Compliance (Trust)
- Read-only: Does not log into any TikTok account; does not perform any write operations (publish, like, comment, follow, DM); no risk of account suspension.
- Minimum Privilege: Only requests the single required environment variable
GUAIKEI_API_TOKEN; does not read other local files; does not write outside the skill directory (logs are written to the system temporary directory). - Credential Protection: Token is read only from environment variables; not written to stdout, logs, or error messages.
- Data Exfiltration Scope (Important to Know): When called, the following is sent to
www.guaikei.com: your API Token, the query keyword or target URL/ID, and the skill name and Node.js version. No other local information is collected. - Data Compliance: Only retrieves publicly visible TikTok data (nicknames, public posts, public comments). Does not contain private fields such as phone numbers, locations, or DMs. Data is for personal/team internal analysis only; for external publication or commercial use, please ensure proper authorization and anonymize user nicknames.
- No Third-Party Dependencies: Uses only Node.js built-in modules (
https/fs/path/os/querystring); no npm dependencies, no remote script loading, noeval/child_process.
8. Frequently Asked Questions
| Issue | Cause and Handling |
|---|---|
| Exit code 3 / AUTH_REQUIRED | Token not configured or malformed (must be 16–256 alphanumeric with underscores/hyphens) |
| Search results empty | Try a more general keyword, or set --time 0 to remove the time window; empty is a normal result, not an error |
Fewer results than --limit | No more data available from the server, or a single request cap was hit; reduce to ≤1000 and fetch in batches |
| Persistent timeout | Reduce --limit and retry; the script already has built-in exponential backoff retry |
| Expects "hottest posts" but gets reverse chronological | For post-cli, use --sort 1 |
| Parameters not taking effect / sort order unexpected | Check the warnings in the output; invalid parameters are silently reverted to defaults |
| Where are the log files? | See the stderr line "Saved to …" (system temp directory tiktok-guaikei/logs/<date>/) |
9. Environment & Support
- Environment: Node.js ≥ 16.14.0, full platform support (Windows / macOS / Linux); requires
GUAIKEI_API_TOKEN. - Official Website: GUAIKEI TikTok Creator Screening & KOL Recommendations (self-service Token activation, usage overview, and API documentation).
- Changelog: references/changelog.md