openclaw-youtube

YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.

3,891 stars
Complexity: easy

About this skill

The OpenClaw YouTube skill empowers autonomous AI agents to act as a sophisticated YouTube SERP scout. Leveraging the AIsa API, it allows agents to query YouTube for top-ranking videos, channels, and trending topics based on specific keywords or filters like country and language. This skill is invaluable for understanding the competitive landscape, identifying popular content formats, and staying abreast of rapidly evolving trends within any niche. Users can direct their AI agents to perform various research tasks, from finding successful video strategies for 'AI agents tutorial' to monitoring competitor content on 'machine learning'. It supports detailed searches, including filtering by geographical region (e.g., US, Japan) and interface language (e.g., English, Chinese), providing highly relevant and localized insights. Essentially, this skill transforms an AI agent into a dedicated content intelligence analyst for YouTube. It streamlines the process of gathering actionable data for content creators, marketers, and researchers who need to make data-driven decisions about their YouTube strategy, without manually sifting through search results.

Best use case

This skill is primarily designed for content creators, digital marketers, and market researchers who rely on YouTube for audience engagement and competitive analysis. Its main use case is to rapidly gather intelligence on trending topics, popular video formats, and competitor strategies, enabling users to refine their content creation strategy and identify market gaps. Those who benefit most are individuals or teams looking to optimize their YouTube presence and understand the broader video content landscape efficiently.

YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.

Users should expect a structured data response (typically JSON) containing information about YouTube videos, channels, or trends matching their specified search criteria.

Practical example

Example input

"Find top-ranking videos about 'AI agents tutorial' to see what's working"

Example output

{
  "search_results": [
    {
      "title": "Build Your Own AI Agent in 10 Minutes!",
      "link": "https://www.youtube.com/watch?v=example1",
      "channel": "TechInnovator",
      "views": "1.2M",
      "published": "2 months ago"
    },
    {
      "title": "AI Agents Explained: A Beginner's Guide",
      "link": "https://www.youtube.com/watch?v=example2",
      "channel": "LearnAI",
      "views": "850K",
      "published": "1 month ago"
    }
  ],
  "query": "AI agents tutorial"
}

When to use this skill

  • To discover top-ranking videos and channels on specific topics for content inspiration.
  • To monitor competitor's YouTube content and understand their strategies.
  • To identify emerging trends and popular topics within a niche.
  • To perform market research on audience interest for various subjects.

When not to use this skill

  • For tasks requiring direct interaction with YouTube's backend (e.g., uploading, managing comments).
  • When detailed video analytics beyond search results (e.g., audience demographics, watch time) are needed.
  • If you don't have or don't want to obtain an AISA_API_KEY.
  • For tasks unrelated to YouTube content search and trend analysis.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/aisa-youtube-search/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aisapay/aisa-youtube-search/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/aisa-youtube-search/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How openclaw-youtube Compares

Feature / Agentopenclaw-youtubeStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityeasyN/A

Frequently Asked Questions

What does this skill do?

YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.

How difficult is it to install?

The installation complexity is rated as easy. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# OpenClaw YouTube 📺

**YouTube SERP Scout for autonomous agents. Powered by AIsa.**

One API key. Rank discovery. Content research. Competitor tracking.

## 🔥 What Can You Do?

### Content Research
```
"Find top-ranking videos about 'AI agents tutorial' to see what's working"
```

### Competitor Tracking
```
"Search for videos from competitor channels about 'machine learning'"
```

### Trend Discovery
```
"What are the top YouTube videos about 'GPT-5' right now?"
```

### Topic Analysis
```
"Find popular videos on 'autonomous driving' to understand audience interest"
```

### Channel Discovery
```
"Search for channels creating content about 'crypto trading'"
```

## Quick Start

```bash
export AISA_API_KEY="your-key"
```

---

## Core Capabilities

### Basic YouTube Search

```bash
# Search for videos
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=AI+agents+tutorial" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

### Search with Country Filter

```bash
# Search in specific country (US)
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=machine+learning&gl=us" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Search in Japan
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=AI&gl=jp&hl=ja" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

### Search with Language Filter

```bash
# Search with interface language
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=python+tutorial&hl=en" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Chinese interface
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=编程教程&hl=zh-CN&gl=cn" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

### Pagination with Filter Token

```bash
# Use sp parameter for pagination or advanced filters
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=AI&sp=<filter_token>" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

---

## Python Client

```bash
# Basic search
python3 {baseDir}/scripts/youtube_client.py search --query "AI agents tutorial"

# Search with country
python3 {baseDir}/scripts/youtube_client.py search --query "machine learning" --country us

# Search with language
python3 {baseDir}/scripts/youtube_client.py search --query "python tutorial" --lang en

# Full options
python3 {baseDir}/scripts/youtube_client.py search --query "GPT-5 news" --country us --lang en

# Competitor research
python3 {baseDir}/scripts/youtube_client.py search --query "OpenAI tutorial"

# Trend discovery
python3 {baseDir}/scripts/youtube_client.py search --query "AI trends 2025"
```

---

## Use Cases

### 1. Content Gap Analysis

Find what content is ranking well to identify gaps in your strategy:

```python
# Search for top videos in your niche
results = client.search("AI automation tutorial")
# Analyze titles, views, and channels to find opportunities
```

### 2. Competitor Monitoring

Track what competitors are publishing:

```python
# Search for competitor brand + topic
results = client.search("OpenAI GPT tutorial")
# Monitor ranking changes over time
```

### 3. Keyword Research

Discover what topics are trending:

```python
# Search broad topics to see what's popular
results = client.search("artificial intelligence 2025")
# Extract common keywords from top-ranking titles
```

### 4. Audience Research

Understand what your target audience watches:

```python
# Search in specific regions
results = client.search("coding tutorial", country="jp", lang="ja")
# Analyze regional content preferences
```

### 5. SEO Analysis

Analyze how videos rank for specific keywords:

```python
# Track ranking positions for target keywords
keywords = ["AI tutorial", "machine learning basics", "Python AI"]
for kw in keywords:
    results = client.search(kw)
    # Record top 10 videos and their channels
```

---

## API Endpoint Reference

| Endpoint | Method | Description |
|----------|--------|-------------|
| `/youtube/search` | GET | Search YouTube SERP |

## Request Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| engine | string | Yes | Must be `youtube` |
| q | string | Yes | Search query |
| gl | string | No | Country code (e.g., `us`, `jp`, `uk`, `cn`) |
| hl | string | No | Interface language (e.g., `en`, `ja`, `zh-CN`) |
| sp | string | No | YouTube filter token for pagination/filters |

## Response Format

```json
{
  "search_metadata": {
    "id": "search_id",
    "status": "Success",
    "created_at": "2025-01-15T12:00:00Z",
    "request_time_taken": 1.23,
    "total_time_taken": 1.45
  },
  "search_results": [
    {
      "video_id": "abc123xyz",
      "title": "Complete AI Agents Tutorial 2025",
      "link": "https://www.youtube.com/watch?v=abc123xyz",
      "channel_name": "AI Academy",
      "channel_link": "https://www.youtube.com/@aiacademy",
      "description": "Learn how to build AI agents from scratch...",
      "views": "125K views",
      "published_date": "2 weeks ago",
      "duration": "45:30",
      "thumbnail": "https://i.ytimg.com/vi/abc123xyz/hqdefault.jpg"
    }
  ]
}
```

---

## Country Codes (gl)

| Code | Country |
|------|---------|
| us | United States |
| uk | United Kingdom |
| jp | Japan |
| cn | China |
| de | Germany |
| fr | France |
| kr | South Korea |
| in | India |
| br | Brazil |
| au | Australia |

## Language Codes (hl)

| Code | Language |
|------|----------|
| en | English |
| ja | Japanese |
| zh-CN | Chinese (Simplified) |
| zh-TW | Chinese (Traditional) |
| ko | Korean |
| de | German |
| fr | French |
| es | Spanish |
| pt | Portuguese |
| ru | Russian |

---

## Pricing

| API | Cost |
|-----|------|
| YouTube search | ~$0.002 |

Every response includes `usage.cost` and `usage.credits_remaining`.

---

## Get Started

1. Sign up at [aisa.one](https://aisa.one)
2. Get your API key
3. Add credits (pay-as-you-go)
4. Set environment variable: `export AISA_API_KEY="your-key"`

## Full API Reference

See [API Reference](https://aisa.mintlify.app/api-reference/introduction) for complete endpoint documentation.

Related Skills

openclaw-media-gen

3891
from openclaw/skills

Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.

Content & Documentation

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

linkedin-cli

3891
from openclaw/skills

A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.

Content & Documentation

小红书长图文发布 Skill

3891
from openclaw/skills

## 概述

Content & Documentation

Cold Email Writer

3891
from openclaw/skills

Writes personalized cold emails that actually get replies

Content & Documentation

Presentation Mastery — Complete Slide Design & Delivery System

3891
from openclaw/skills

You are a Presentation Architect. You help build presentations that persuade, inform, and move people to action. You cover the full lifecycle: audience analysis → narrative structure → slide design → delivery coaching → post-presentation follow-up.

Content & Documentation

ai-humanizer

3891
from openclaw/skills

Rewrites AI-generated content to sound natural, human, and undetectable. Removes robotic patterns, adds voice variety, and preserves meaning.

Content & Documentation

Employee Handbook Generator

3891
from openclaw/skills

Build a complete, customized employee handbook for your company. Covers policies, benefits, conduct, leave, remote work, DEI, and compliance — ready for legal review.

Content & Documentation

afrexai-copywriting-mastery

3891
from openclaw/skills

Write high-converting copy for any medium — landing pages, emails, ads, UX, sales pages, video scripts, and brand voice. Complete methodology with frameworks, templates, scoring rubrics, and swipe files. Use when writing or reviewing any user-facing text.

Content & Documentation

afrexai-conversion-copywriting

3891
from openclaw/skills

Write high-converting copy for any surface — landing pages, emails, ads, sales pages, product descriptions, CTAs, video scripts, and more. Complete conversion copywriting system with research methodology, 12 proven frameworks, swipe-file templates, scoring rubrics, and A/B testing protocols. Use when you need to write or review any copy meant to drive action.

Content & Documentation

seo-assistant

3891
from openclaw/skills

A client-facing SEO assistant grounded in Google's official SEO Starter Guide. Use this skill whenever a user mentions SEO, search rankings, Google visibility, meta descriptions, title tags, page titles, alt text, sitemaps, duplicate content, URL structure, or asks how to improve their website's presence in search results. Also trigger when a user shares a URL or webpage content and wants feedback, or asks for help writing any web content that needs to perform well in search. This skill covers auditing, content writing, and answering SEO questions — use it proactively even if the user only hints at wanting more website traffic or better Google rankings.

Content & Documentation