What This Agent Does
The YouTube Scraper AI Agent automates extraction of YouTube video and channel data. Extract videos, comments, channel info, and search results for content research.
Data Types You Can Scrape:
- Video metadata (views, likes, duration)
- Channel information and stats
- Video comments and replies
- Search results by keyword
- Playlist contents
- Video transcripts (when available)
Key Benefits:
- Research competitor channels at scale
- Analyze video performance trends
- Monitor comments and sentiment
- Discover trending content
Use Cases:
- Competitor video analysis
- Content gap identification
- Influencer research
- Trend monitoring
- Comment sentiment analysis
Data You Can Extract
Video Discovery
-
discoverVideosByKeyword: Search videos by keywords - find content in your niche
-
discoverVideosByChannelURL: Get all videos from a channel
-
discoverVideosByHashtag: Find videos using specific hashtags
-
discoverVideosBySearchFilters: Advanced search with filters (date, duration, type)
Video Data
-
scrapeYouTubeVideos: Extract video data - title, description, views, likes, comments count, duration, upload date, tags
Channel Data
-
scrapeYouTubeProfiles: Get channel info - name, subscribers, video count, description, join date
-
discoverProfilesByKeyword: Search for channels
Engagement
-
scrapeYouTubeComments: Extract all comments - text, likes, replies, commenter info, date
Required Integrations
YouTube Scraper Integration
Uses youtubescraper integration - managed by TaskAGI.
Setup Steps:
- Deploy this agent
- Connect Google Drive
- Enter video URLs, channel URLs, or keywords
- Run extraction
Configuration Steps
Form Trigger Setup
-
Keywords: Search terms for video discovery
-
Video URLs: Specific YouTube video links
-
Channel URLs: YouTube channel links
-
Hashtags: For hashtag search
-
Results Limit: Number of videos
-
Filename: Output file name
Example Inputs
Keywords: "python tutorial for beginners"
Channel: https://www.youtube.com/c/PewDiePie
Video: https://www.youtube.com/watch?v=dQw4w9WgXcQ
Hashtag: #shorts
Testing Your Agent
-
Test Few Videos: Start with 5-10 videos
-
Verify Data: Check view counts match YouTube
-
Extract Channel: Get full channel video list
-
Scrape Comments: Test comment extraction
-
Scale Up: Run larger extractions
Expected Output:
Video: title, description, views, likes, comments, duration, upload_date, channel_name, tags
Channel: name, subscribers, video_count, description, total_views
Troubleshooting
"Video not found"
- Check video URL is correct
- Video may be private/deleted
- Age-restricted videos may fail
"Comments disabled"
- Creator disabled comments
- This is normal for some videos
"Missing likes count"
- Some creators hide like counts
- Very new videos may show 0
Next Steps
-
Competitor Analysis: Track competitor upload frequency
-
Trend Research: Monitor trending topics weekly
-
Comment Analysis: Extract for sentiment analysis
-
Content Planning: Identify gaps in your niche
Pro Tips:
- Calculate CTR: views / impressions (if you have channel access)
- Track watch time vs views ratio
- Monitor comment sentiment for feedback
- Analyze top videos for content patterns