Preface¶
When doing content topic selection or competitive research, you often need to browse works on Toutiao (今日头条) by keyword, checking view counts and publish times. Manually searching in the App or web page, copying titles, and then organizing them into a table involves many steps and is inconvenient to integrate with AI workflows. Below we introduce the Toutiao Viral Content Search (今日头条爆款查询) on SkillHub (@redfox-data/toutiao-search, v1.0.1): it searches Toutiao’s latest articles/videos by keyword, supports sorting and time filtering, and presents results in terminal tables, CSV, and interactive HTML reports.
What Is This¶
Toutiao Viral Content Search is an enterprise Skill released by RedFox Data (红狐数据) (category content-creation), located at @redfox-data/toutiao-search. It is designed for tasks such as “searching Toutiao’s popular works, tracking trending topics, and viewing viral content metrics”: enter a keyword, pull data from newly published works on Toutiao (per the official description: real-time fetching with no cache delay), then sort, filter, and export according to your options.
The SkillHub page marks requires_api_key=true: a personal API Key must be configured before calling the RedFox Data API. API requests carry the 今日头条爆款查询-RedSkill identifier.
Core Features¶
All the following capabilities come from the Skill’s SKILL.md and SkillHub introduction, and are executed by scripts/search.py after installation.
- Keyword search: required positional parameter
keyword, searches Toutiao articles and videos. - Sorting:
--sort views(view count, default) or--sort time(publish time); results are sorted in descending order by the selected dimension. - Time range:
--hours Nlimits results to works published within the last N hours (0means no limit). - Pagination:
--pagescontrols the number of pages (default 3 pages, about 10 items per page). - Topic expansion:
--expandautomatically associates synonyms/related terms for combined search;--also "word1,word2"manually adds keywords, with results deduplicated. - Video filtering:
--video-onlykeeps only works confirmed as videos. - Output formats: terminal table; CSV with UTF-8 BOM; dark-themed HTML report (with in-page search and card links to the original articles). The default output directory is
~/Downloads/QoderToutiaoSearch/. - Data fields: title, author, view count, likes, comments, shares, publish time, type (article/video), original link, etc.; the search list is used together with
workDetaildetail enrichment.
Dependencies: pip3 install requests.
Installation and Activation¶
1. Install SkillHub CLI (if not yet installed)¶
First check whether the CLI is already installed:
command -v skillhub && skillhub --version
If not installed, run the official installation script (full install or CLI only):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
See the SkillHub installation documentation for details.
2. Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise it defaults to ./skills/ and may not be recognized. Common path examples given in the SkillHub documentation:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Example installation command (replace <skills directory> with your actual path):
skillhub install @redfox-data/toutiao-search --dir <skills directory>
The SkillHub skill page also supports having the AI install @redfox-data/toutiao-search according to the installation documentation above.
3. Configure the API Key¶
Choose any one of the following methods (you need to apply for the key on the RedFox Data platform yourself):
export REDFOX_API_KEY=ak_your_key
python3 scripts/search.py "keyword" --api-key ak_your_key
echo '{"api_key":"ak_your_key"}' > ~/.qoder/apis/redfox.json
Registration and Key management: redfox.hk settings page.
Typical Usage¶
After installation, set SKILL_PATH to the root path of the Skill in the Skill directory, then call scripts/search.py.
Basic search (terminal table + default CSV/HTML):
python3 "$SKILL_PATH/scripts/search.py" "keyword"
Sort by view count, limited to the last 24 hours:
python3 "$SKILL_PATH/scripts/search.py" "large language models" --sort views --hours 24
Topic expansion and multi-word combined search:
python3 "$SKILL_PATH/scripts/search.py" "US-Iran war" --expand
python3 "$SKILL_PATH/scripts/search.py" "US-Iran war" --also "US-Iran conflict, US Iran"
Video-only search, multiple pages, CSV only, no auto-opening of the browser:
python3 "$SKILL_PATH/scripts/search.py" "review" --video-only
python3 "$SKILL_PATH/scripts/search.py" "new energy vehicles" --pages 5
python3 "$SKILL_PATH/scripts/search.py" "AI" --csv-only
python3 "$SKILL_PATH/scripts/search.py" "AI" --no-open
Summary of common parameters: --output-dir customizes the output directory; --port specifies the HTML local service port (default 8767).
In environments like Cursor, you can also directly describe your needs in natural language (e.g., “search Toutiao for AI-related content, sort by view count, and export CSV”), and the Agent will call the above scripts according to the Skill description.
Use Cases and Notes¶
Who it’s for
- Content, operations, and analysis professionals who need to quickly check new works and interaction data for a given keyword on the Toutiao side.
- Teams that want to save search results to CSV/HTML for secondary statistics or reporting.
Typical tasks listed in the Skill documentation include: trending topic tracking, viral content analysis, competitor keyword monitoring, topic collection, public sentiment quick scans, and video content filtering; the specifics still depend on the keywords you configure and the API returns.
Limitations and Notes
- A valid
REDFOX_API_KEY(or equivalent configuration) must be configured, and pay attention to the platform quota; quota issues need to be handled in the RedFox Data console. - Defaults to about 3 pages with about 10 items per page; increase
--pagesfor more results; the official FAQ states that the search scope currently covers works from the past 1 year, prioritizing recent content. - Detail enrichment is performed after the list search, so the wait time is normal.
- SkillHub statistics (based on the snapshot): score 100000, downloads 1788; the page shows 0 installations, subject to SkillHub’s real-time data.
- When using third-party APIs and Toutiao data, please comply with the platform’s terms of service and compliance requirements.
Conclusion¶
Toutiao Viral Content Search consolidates “keyword → Toutiao works list → view/interaction metrics → table and export” into a reusable path within the Agent, suitable for trending topic tracking and data retrieval before content analysis. Official Skill package address: https://api.skillhub.cn/redfox-data/toutiao-search; SkillHub introduction page: https://www.skillhub.cn/skills/redfox-data/toutiao-search.