Overview
Douyin Similar Account Recommendations is an intelligent benchmark matching tool designed specifically for Douyin creators, helping users quickly find reference benchmark accounts and leading benchmarks worth catching up to.
With simple name or ID input, you can:
- 📊 Query basic account information + RedFox Index + recent work data
- 🎯 Match benchmark accounts (the 5 nearest accounts upward in RedFox Index, whose strategies can be directly copied)
- 🚀 Recommend leading accounts (Top 5 in RedFox Index in the same category, with mature models worth catching up to)
- 🔍 Deeply analyze commonalities, differences, and optimization suggestions
Suitable for Douyin creators, content operations, account placement decisions, and other scenarios that require benchmark reference. Powered by RedFox Hub data platform.
Features
🎯 Core Features
- 🔍 Intelligent Query: supports querying by Douyin nickname or Douyin ID (automatically identifies nickname and Douyin ID)
- 📊 Account Data: displays the queried account's basic information, RedFox Index, play data, and recent works
- 🎯 Benchmark Accounts: recommends the 5 nearest accounts upward in RedFox Index in the same track, whose operating strategies can be directly copied
- 🚀 Leading Accounts: recommends the top 5 mature accounts in descending RedFox Index within the same category, whose models can be referenced and caught up to
- 🔍 Deep Analysis: summarizes commonalities and differences, and provides actionable optimization suggestions
- 📬 Subscription Push: at the end of query results, supports subscribing to the latest information push for similar accounts, with customizable push frequency and time
✨ Highlights
- 📈 RedFox Index: every benchmark/leading account displays the RedFox Index and index gap, quantifying benchmark gaps
- 💡 Recommendation Reasons: each benchmark account includes multi-dimensional recommendation reasons, covering RedFox Index comparison, viral title references, update rhythm, engagement rate, etc.
- 📊 Table Column Order: Account Name | Followers | Total Likes | Interactions in the Last 7 Days | RedFox Index | Index Gap | Recommendation Reasons
- 📱 Multiple Input Methods: flexible query by name/ID, automatic nickname recognition
One-Click Installation
Prerequisites
- Python 3.x runtime environment
- RedFox API Key (go to RedFox Hub official website to register and obtain one; new users receive free credits)
Get API Key
- Visit RedFox Hub official website to learn about service details
- Go to registration page to register an account
- Newly registered users will receive free credits, and can immediately start using the API service
- After registering and logging in, obtain the API Key in the personal center, in the format
ak_xxxxxxxx
Configure API Key
REDFOX_API_KEYRetrieved from environment variables, formatak_xxxxxxxx- If not set, prompt the user to configure it themselves:
export REDFOX_API_KEY=<你的apikey>; if the user does not know how to configure it, the Agent should proactively help the user set it up:- macOS/Linux: append
export REDFOX_API_KEY=<值>to~/.zshrc(zsh) or~/.bashrc(bash), thensourcethe corresponding file to make it take effect globally - Windows: use
[Environment]::SetEnvironmentVariable("REDFOX_API_KEY", "<值>", "User")to set a user-level permanent environment variable (requires restarting the terminal to take effect) - After configuration is complete, verify:
echo $REDFOX_API_KEY(macOS/Linux) orecho %REDFOX_API_KEY%(Windows), to ensure that switching to another skill can also read it
- macOS/Linux: append
Environment Variable Configuration
| Variable Name | Required | Description |
|---|---|---|
REDFOX_API_KEY |
Yes | RedFox API access key, format ak_xxxxxxxx |
Usage Guide
Basic Usage
Query by Douyin name/ID
Tell the assistant the Douyin account you want to query (nickname and Douyin ID are supported):
User: Help me find similar Douyin accounts for "Yile Store Manager"
Assistant: Call the script
python scripts/douyin_similar_account.py --account_id "一乐店长", display the script output completely as-is; summarizing, rewriting, adding, removing, or adding extra comments is prohibited
User: Find similar accounts for Douyin ID geng970616
Assistant: Call the script
python scripts/douyin_similar_account.py --account_id "geng970616", display the script output completely as-is; summarizing, rewriting, adding, removing, or adding extra comments is prohibited
Command Quick Reference
| Command | Function |
|---|---|
--account_id "昵称或抖音号" |
Query by Douyin account nickname or Douyin ID (automatically detected) |
Output Process
For the detailed core workflow (operation steps, output templates, API interface details, field mapping, benchmark matching rules, recommendation reason generation dimensions, output format specifications, etc.), please refer to references/core_workflow.md。
Use Cases
Scenario 1: Reference for Launching a New Account
Role: Douyin novice operator
Need: Just created a Douyin account and does not know how to position it or choose topics
How to Use:
- Query benchmark recommendations for your own account
- View the content direction and update rhythm of benchmark accounts
- Copy the operating strategies of benchmark accounts
Expected Benefits: Quickly find a replicable operating model and reduce the trial-and-error cost of launching an account
Scenario 2: Content Topic Optimization
Role: Douyin content operator
Need: Content has hit a bottleneck and needs reference to the topic directions of excellent accounts in the same track
How to Use:
- Query similar recommendations for your own account
- Analyze the hit product characteristics and content style of top benchmark accounts
- Adjust your own topic strategy
Expected Benefits: Break through content bottlenecks and improve play count and interaction data
Scenario 3: Account Advertising Decision
Role: Brand marketing manager
Need: Select suitable Douyin accounts for advertising
How to Use:
- Query top accounts in the target track
- Compare the data performance of benchmark and top accounts
- Evaluate interaction rate and fan profile match
Expected Benefits: Precisely select advertising accounts and improve advertising ROI
Scenario 4: Competitor Analysis
Role: MCN operations personnel
Requirements: Understand competitors' account operation strategies and data performance
How to use:
- Query similar recommendations for competitor accounts
- In-depth analysis of commonalities and differences
- Discover market gap opportunities
Expected benefits: Stay on top of competitor trends and discover differentiated competitive opportunities
Project architecture
Directory structure
抖音相似账号推荐/
├── scripts/
│ └── douyin_similar_account.py # 核心脚本:调用API查询对标账号并格式化输出
├── references/
│ └── core_workflow.md # 核心工作流程:操作步骤、输出模板、API接口详情、字段映射、推荐理由生成维度
└── SKILL.md # 技能描述文件
Technology stack
| Component | Description |
|---|---|
| Runtime environment | Python 3.x |
| Dependencies | Python standard library (json, argparse, os, time, urllib, platform, re) |
| Data source | RedFox API(https://redfox.hk?source=github) |
| API endpoint | POST /story/api/dyUser/querySimilarAccounts (query account information + benchmark accounts + top accounts) |
FAQ
Installation-related questions
Q1: What should I do if I get the message "未找到 REDFOX_API_KEY 配置"?
A: Please configure it by following these steps:
- Visit https://redfox.hk?source=github to register an account and get an API Key
- Windows users, run in PowerShell:
[Environment]::SetEnvironmentVariable("REDFOX_API_KEY", "<你的API Key>", "User") - macOS/Linux users, run:
echo 'export REDFOX_API_KEY=<你的API Key>' >> ~/.zshrcthensource ~/.zshrc - restart the terminal for it to take effect
Q2: Do I need to install additional Python dependencies?
A: No. The script only uses the Python standard library (json, argparse, os, urllib, re, etc.), and no pip install of any packages is required.
Usage-related questions
Q3: What should I do if I can't query account data?
A: Possible reasons: 1) The Douyin ID or name entered is inaccurate; 2) There is no data for this account yet; it is recommended to try again later.
Q4: What query methods are supported?
A: Two input methods are supported, and the script identifies them automatically:
- By nickname:
--account_id "一乐店长"(if it contains Chinese, accountName is automatically used for the query) - By Douyin ID/uid:
--account_id "geng970616"(if it is not Chinese, accountId is automatically used for the query)
Q5: What is the difference between benchmark accounts and top accounts?
A: Benchmark accounts are the 5 accounts with RedFox Index closest upward, and their index is close so their approaches can be directly replicated; top accounts are the top 5 by descending RedFox Index in the same category, with more mature operating models, suitable for catching up and learning.
Q6: What is the RedFox Index?
A: The RedFox Index is an evaluation metric comprehensively calculated by the RedFox platform based on multiple dimensions of account data (follower count, interaction volume, content quality, etc.). The higher the value, the better the account's overall performance. Benchmark account recommendations use this as the core sorting basis.
Q7: What is the subscription push in the query results?
A: At the end of each query result, it will prompt whether to subscribe to the latest information push for similar accounts of that account. After choosing to subscribe, the latest data will be pushed every day at 19:00, and you can also choose the push frequency and time yourself. If not needed for now, you can choose "Not needed for now".
Troubleshooting
Q8: What should I do if the API request returns an HTTP error?
A: Please check the following points:
- Confirm whether the API Key is correct and has not expired
- Confirm that the network can normally access https://redfox.hk?source=github
- Check whether the API Key has sufficient credit balance
Q9: Are some fields in the output result empty or 0?
A: This is normal and indicates that the account currently has no data records for the corresponding data dimension. The script will automatically handle it as "No data" or "0" for display.
Get Help
If you have other questions, you can get help through the following methods:
- 📧 Visit Red Fox Hub Official Website to learn more