Toutiao News Hot Ranking
Skill Overview
This skill is used to capture data from Toutiao PC-side hot-board, including:
- Hot title
- HotValue
- Detail jump link (redundant query parameters are removed for easy sharing)
- Cover image (if available)
- Tags (such as "hot event", etc.)
Data source: Toutiao (
www.toutiao.com)
Get Hot Ranking
Important Notes:
- ⚠️ The default output format is standard Markdown format (compliant with output format specification requirements)
- If you need raw JSON data, please use the command
Get hot ranking (default 10 entries, returned in ranking order, formatted output):
Get the first N entries of the hot ranking (formatted output):
bash
node scripts/toutiao.js 10
# 或
node scripts/toutiao.js format 10
Get hot ranking (JSON format, default 50 entries):
bash
node scripts/toutiao.js json
Get the first N entries of the hot ranking (JSON format):
bash
node scripts/toutiao.js json 20
Return Data Field Description
| Field | Type | Description |
|---|
| rank | number | Ranking on the list (starting from 1) |
| title | string | Hot title |
| popularity | number | HotValue (converted to number; 0 if parsing fails) |
| link | string | Hot detail link (query/hash has been cleaned) |
| cover | string | null | Cover image URL (if available) |
| label | string | null | Tag/identifier (if available) |
| clusterId | string | Aggregation ID (stringified) |
| categories | string[] | English interest categories (if available) |
| categoriesCN | string[] | Chinese interest categories (automatically mapped) |
Category Mapping Description
English categories have been automatically mapped to Chinese, for example:
- → 财经
- → 汽车
- → 科技
- → 娱乐
- → 体育
- → 社会
- → 国际
- etc...
Output Format Specification
Default Output Format
⚠️ Important: The default output of this skill is the following standard format, no additional configuration is required.
When the AI assistant displays Toutiao hot news, it should follow the following unified format:
## 今日头条最新热点新闻 Top N
**🔥 热度前十名**
N. **新闻标题**
热度:X万
分类:分类标签
[查看详情](<链接>)
---
...
Format Requirements:
- Titles are bolded (title)
- Popularity is displayed in units of "ten thousand" (e.g.: 4651 ten thousand)
- If there are multiple categories, separate them with "/", display "-" if there is no category
- Links are wrapped in angle brackets to avoid Markdown parsing problems caused by special characters
- Each news item is separated by
- The first 10 hot ranking entries are displayed by default
Notes
- This interface is a public web interface, the returned structure may change; appropriate fault tolerance is allowed if fields are missing
- Frequent access may trigger risk control, the script has built-in random User-Agent and timeout control
- This interface does not provide article summary information, only basic information such as title, popularity, link, etc. can be obtained
Author Introduction
- 爱海贼的无处不在
- My WeChat Official Account: 无处不在的技术