Enter a video link to obtain comment data and four-dimensional sentiment insights in one click, and use data to see the real voices of users on the YouTube platform
Introduction
YouTube Video Comment Analysis is an intelligent comment insight tool designed specifically for social media operations, brands, market researchers, and content creators. It obtains real comment data from YouTube videos through the Red Fox API, and combines AI four-dimensional sentiment analysis (positive/negative/needs/competitors) to quickly grasp the full picture of user feedback under any video.
- Core Value: Say goodbye to scrolling through comments one by one. A single query provides video information, the full comment list, and sentiment proportion analysis, quickly identifying public opinion trends and user needs
- Target Users: Brand operations, social media operations, marketing planning, product managers, content creators, MCN agencies
- Technical Foundation: Based on the real-time analysis capabilities and intelligent sentiment analysis of the Red Fox data platform
Features
Core Capabilities
| Feature | Description |
|---|---|
| 💬 Comment Retrieval | Paste a video link or video ID to pull top-level comment data, with support for batch queries across multiple links |
| 📄 Paginated Follow-up Query | Several top-level comments per page; use the pagination token to continue retrieving the next page (each page consumes one credit) |
| 🤖 Four-dimensional AI Analysis | Tag each comment individually, with each of the four dimensions (positive/negative/needs/competitors) accompanied by real proportions and citations of representative comment evidence; when the competitor dimension is not evident, honestly mark it as "not applicable" |
| 📊 Comment Sorting | Supports sorting by top or newest, and can filter by language and region preference |
| 🌐 Multilingual Support | Supports video comments in various languages; AI analysis is based on the original context (hashtags, @mentions, emoji) |
| 🛡️ Credit Protection | For multi-link queries and pagination, proactively prompts about credit consumption before execution |
Highlights
- ⚡ One-sentence Query: Paste a video link to get a complete analysis, no need to memorize commands
- 🔒 Zero-cache Design: Results are displayed only in the conversation, with no disk caching, ensuring controllable data security
- 📋 Standard Analysis Report: Fixed template output (video information → query scope → comment list → four-dimensional sentiment analysis)
One-click Installation
Prerequisites
- Python 3.6+ installed
Installation Steps
- Place the skill folder into your Skills directory
- Configure data service access credentials (see Core Workflow)
Usage Guide
Trigger Methods
Automatically activated when the user mentions any of the following keywords:
- "YouTube comments", "YouTube comments", "video comments", "YouTube work comment analysis"
- "Comment Analysis", "Comment Sentiment", "View Comments", "Comment Query"
- Directly paste a YouTube video link + "comments/analysis"
How to Obtain the Video ID
The video ID can be extracted directly from the video link. For example:
- Video link:
https://www.youtube.com/watch?v=sa8AzBK4dao - Shorts link:
https://www.youtube.com/shorts/sa8AzBK4dao - Short link:
https://youtu.be/sa8AzBK4dao - Video ID:
sa8AzBK4dao(i.e., the part afterv=or/shorts/oryoutu.be/in the link)
Supports youtube.com and youtu.be two domain formats; share links with parameters such as playlists can also be automatically recognized.
Common Commands Quick Reference
| Intent | Example Phrasing | Effect |
|---|---|---|
| View video comments | "Query https://www.youtube.com/watch?v=xxx」 | Get video information + comments on this page + four-dimensional analysis |
| Query by video ID | "View comments on video sa8AzBK4dao" | Automatically recognize the ID and fetch comments |
| Continue paging | "Next page" | Use the continuationToken returned from the previous page to get the next page of comments (consumes one credit, will prompt for confirmation first) |
| Batch query | Paste multiple links at once | After prompting for credit consumption confirmation, fetch and analyze each one independently |
Usage Examples
Example 1: Standard Query
User: Query https://www.youtube.com/watch?v=sa8AzBK4dao AI: Output the complete analysis (video information → query scope → comment list → four-dimensional sentiment analysis)
Example 2: Continue Paging
User: Next page AI: Prompt that paging will consume one credit; after confirmation, use the continuationToken to get the next page of comments and output them
Example 4: Video Has No Comments
User: Query a video with no comments AI: This video currently has no comments. Please check whether the video exists or has been set to private. (Do not proactively substitute another video for the query.)
⚠️ Output Format Specification
Query results are output according tofixed four sections:Video Information → Query Scope → Comment List (N total) → Four-Dimensional Sentiment Analysis. Sections must not be omitted, the order must not be changed, and the following constraints must be observed:
- Data not persisted to disk: Results are displayed only in the conversation; no files are retained
- Display the count truthfully: Display as many as were retrieved; when fewer than 10, it is strictly prohibited to label them "TOP 10"
- Analysis must be evidence-based: Sentiment analysis must cite specific comment numbers and keywords; when the competitor dimension is not evident, truthfully mark it as "Not Applicable"
- Fixed explanation of query scope: "This time, the corresponding number of top-level comments were retrieved. The skill does not currently support querying second-level comments. The Red Fox companion full database can provide complete and detailed data; you may go to Red Fox Hub enterprise services for consultation."
- Fixed closing guidance: At the end of each output, attach a YouTube external link access prompt + Red Fox enterprise services guidance
For the detailed execution process, output format templates, and error handling, see Core Workflow; for interface fields and call details, see API Interface Guide
Use Cases
Scenario 1: Brand Public Opinion Monitoring
Need: Quickly understand public attitudes under brand-related videos
How to use:
- Paste the link to the brand's official post or a trending video
- Check the negative proportion and representative opinions in the four-dimensional sentiment analysis
- Formulate timely response strategies for highly liked negative comments
Expected benefits: Grasp public opinion trends immediately and reduce PR risks
Scenario 2: Competitor Analysis
Need: Analyze user feedback on competitor videos and identify differentiation directions
How to use:
- Query comments on competitor product launch/marketing videos
- Pay attention to functional expectations raised by users in the "Needs" dimension
- Compare sentiment proportion differences with your own product's comment section
Expected benefits: Understand competitors' strengths and weaknesses, and uncover unmet user needs
Scenario 3: Content Review
Need: Evaluate the reach and audience feedback of your own videos
How to use:
- Query video comments on your own account
- Analyze common topics in highly liked comments
- Adjust subsequent content strategy based on sentiment proportions
Expected benefits: Data-driven content iteration to improve engagement rate
Scenario 4: Market Research
Need: Uncover real user needs under a certain topic
How to use:
- Query comments on popular videos under the topic
- Focus on representative comments in the "Needs" dimension
- Turn pages to obtain more samples and expand research coverage
Expected benefits: Obtain first-hand user voices at low cost to guide product decisions
Project Architecture
Directory Structure
youtube-comment/
├── SKILL.md # 技能说明文档(本文件)
├── scripts/
│ └── youtube_comment_search.py # 评论获取脚本
├── references/
│ ├── core_workflow.md # 核心工作流(Agent执行参考)
│ └── api_guide.md # API接口说明
Tech Stack
| Component | Technology |
|---|---|
| Runtime Environment | Python 3.6+ (zero dependencies) |
| Data Source | Red Fox Data Platform |
| Output Format | Markdown (within the conversation) |
| Timezone Handling | Automatically convert to Beijing Time (UTC+8) |
Core Modules
| Module | Responsibility |
|---|---|
| Comment Fetching Script | Extract video ID → call data service → time conversion → output structured result |
| Pagination Token | Continue querying by page to get the next page of comments |
FAQ
Installation-related
Q1: What should I do if it prompts "REDFOX_API_KEY not found"?
A: Please refer to Core Workflow for the authentication configuration instructions to set the environment variable. If you don't know how to configure it, just tell the Agent and it will help you do it.
Q2: What dependencies need to be installed?
A: None. The script uses the Python standard library urllib, and can run directly in a Python 3.6+ environment.
Usage-related
Q3: How many comments can be obtained at one time?
A: Each query returns one page of comments (the exact number is controlled by the data service). If there are more comments, you can say "next page" to continue paginating (each page consumes one credit).
Q4: Does it support retrieving second-level comments (replies to replies)?
A: The current version only supports first-level comments; nested replies are not expanded for display at this time. For complete data, please visit Red Fox HubEnterprise Servicesfor integration consultation.
Q5: Which sorting methods are supported?
A: Two sorting methods are supported: "Hot Comments" (top, default) and "Newest Comments" (newest). You can specify it when querying, such as "view sorted by newest".
Q6: Can multiple videos be queried at once?
A: Yes. Paste multiple links at once to query in batches. Before querying, the total number of credits required will be shown. After confirmation, comments will be retrieved one by one and the analysis results will be displayed independently.
Troubleshooting
Q7: It says "No comments found for this video"?
A: Possible reasons: ① The video link was entered incorrectly; ② The video has been deleted; ③ The account is private. Please check that the link is complete and try again.
Q8: The comment time is shown as relative time (such as "4 years ago")?
A: The comment time returned by the YouTube API is in relative time format (such as "4 years ago", "1 day ago"). This skill directly displays the time description returned by the API without additional conversion.
Get Help
- Red Fox Hub official website:https://redfox.hk?source=github
- Enterprise Services (full database):https://redfox.hk/dashboard/enterprise?source=github
- For skill implementation details: see Core Workflow and API Interface Guide