| name | youtube-serp |
| description | YouTube SERP for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking. |
| license | MIT |
| compatibility | Works with any agentskills.io-compatible harness — Claude Code, Claude, OpenCode, Cursor, Codex, Gemini CLI, OpenClaw, Hermes, Goose, and others. Requires Python 3, a POSIX shell, and AISA_API_KEY. |
| metadata | {"aisa":{"emoji":"📺","homepage":"https://aisa.one","requires":{"bins":["curl","python3"],"env":["AISA_API_KEY"]},"primaryEnv":"AISA_API_KEY","harnesses":["claude-code","claude","opencode","cursor","codex","gemini-cli","openclaw","hermes","goose"]}} |
YouTube SERP 📺
YouTube SERP for autonomous agents. Powered by AIsa.
One API key. Rank discovery. Content research. Competitor tracking.
Compatibility
Works with any agentskills.io-compatible
harness, including:
- Claude Code and Claude (Anthropic)
- OpenAI Codex
- Cursor
- Gemini CLI (Google)
- OpenCode, Goose, OpenClaw, Hermes
- and any other harness that implements the Agent Skills
specification
Requires Python 3, a POSIX shell, and AISA_API_KEY (get one at
aisa.one).
🔥 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
export AISA_API_KEY="your-key"
Core Capabilities
Basic YouTube Search
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
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=machine+learning&gl=us" \
-H "Authorization: Bearer $AISA_API_KEY"
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
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=python+tutorial&hl=en" \
-H "Authorization: Bearer $AISA_API_KEY"
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
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=AI&sp=<filter_token>" \
-H "Authorization: Bearer $AISA_API_KEY"
Python Client
python3 {baseDir}/scripts/youtube_client.py search --query "AI agents tutorial"
python3 {baseDir}/scripts/youtube_client.py search --query "machine learning" --country us
python3 {baseDir}/scripts/youtube_client.py search --query "python tutorial" --lang en
python3 {baseDir}/scripts/youtube_client.py search --query "GPT-5 news" --country us --lang en
python3 {baseDir}/scripts/youtube_client.py search --query "OpenAI tutorial"
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:
results = client.search("AI automation tutorial")
2. Competitor Monitoring
Track what competitors are publishing:
results = client.search("OpenAI GPT tutorial")
3. Keyword Research
Discover what topics are trending:
results = client.search("artificial intelligence 2025")
4. Audience Research
Understand what your target audience watches:
results = client.search("coding tutorial", country="jp", lang="ja")
5. SEO Analysis
Analyze how videos rank for specific keywords:
keywords = ["AI tutorial", "machine learning basics", "Python AI"]
for kw in keywords:
results = client.search(kw)
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
{
"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 |
Get Started
- Sign up at aisa.one
- Get your API key
- Add credits (pay-as-you-go)
- Set environment variable:
export AISA_API_KEY="your-key"
Full API Reference
See API Reference for complete endpoint documentation.