← 返回
未分类 Key 中文

Scavio Youtube

Search YouTube and retrieve video metadata. Use for finding videos, checking view counts, channel info, or AI training suitability.
搜索YouTube并获取视频元数据。用于查找视频、查看播放量、频道信息或AI训练适用性。
scavio-ai scavio-ai 来源
未分类 clawhub v2.1.3 3 版本 100000 Key: 需要
★ 0
Stars
📥 505
下载
💾 1
安装
3
版本
#latest

概述

YouTube Search and Metadata via Scavio

Search YouTube and retrieve video metadata. All endpoints return structured JSON.

When to trigger

Use this skill when the user asks to:

  • Find YouTube videos on a topic
  • Check view counts, upload date, or video metadata
  • Verify if a video is suitable for AI training or has captions available

Setup

Get a free API key at https://scavio.dev (250 free credits/month, no card required):

export SCAVIO_API_KEY=sk_live_your_key

Workflow

  1. Finding a video: call /search with the topic. Use sort_by: view_count for the most-watched result.
  2. Checking metadata: call /metadata for view counts, likes, tags, or channel info.
  3. Trainability: call /trainability to check license and caption availability before ingesting.

Endpoints

EndpointDescription
------
POST https://api.scavio.dev/api/v1/youtube/searchSearch YouTube videos
POST https://api.scavio.dev/api/v1/youtube/metadataGet structured video metadata
POST https://api.scavio.dev/api/v1/youtube/trainabilityCheck AI training suitability
Authorization: Bearer $SCAVIO_API_KEY

Search Parameters

ParameterTypeDefaultDescription
------------
searchstringrequiredSearch query — note: this field is search, not query
upload_datestring--last_hour, today, this_week, this_month, this_year
typestring--video, channel, or playlist
durationstring--short (< 4 min), medium (4-20 min), long (> 20 min)
sort_bystringrelevancerelevance, date, view_count, rating
subtitlesbooleanfalseVideos with captions only
creative_commonsbooleanfalseCreative Commons videos only

Examples

import os, requests

BASE = "https://api.scavio.dev"
HEADERS = {"Authorization": f"Bearer {os.environ['SCAVIO_API_KEY']}"}

# Search — use "search" field, not "query"
results = requests.post(f"{BASE}/api/v1/youtube/search", headers=HEADERS,
    json={"search": "langchain tutorial", "type": "video", "sort_by": "view_count"}).json()

video_id = results["data"][0]["videoId"]

# Metadata
metadata = requests.post(f"{BASE}/api/v1/youtube/metadata", headers=HEADERS,
    json={"video_id": video_id}).json()

Search Response

{
  "data": [
    {
      "videoId": "sVcwVQRHIc8",
      "title": "Learn RAG From Scratch - Python AI Tutorial",
      "channel": "freeCodeCamp.org",
      "publishedAt": "2024-04-17",
      "duration": "2:33:11",
      "viewCount": 1258310,
      "thumbnail": "https://i.ytimg.com/vi/sVcwVQRHIc8/hq720.jpg"
    }
  ],
  "credits_used": 1
}

Metadata response: title, view_count, like_count, comment_count, categories, tags, channel_id, upload_date, thumbnails.

Trainability response: has_transcript, transcript_languages, license, is_trainable.

Guardrails

  • The search parameter is search, not query — this is different from other Scavio endpoints.
  • Never fabricate video IDs, view counts, or metadata.

Failure handling

  • If search returns no results, suggest different keywords or relaxing filters.
  • If SCAVIO_API_KEY is not set, prompt the user to export it before continuing.

LangChain

pip install langchain-scavio
from langchain_scavio import ScavioSearchTool
tool = ScavioSearchTool(engine="youtube")

版本历史

共 3 个版本

  • v2.1.3 当前
    2026-06-09 17:42
  • v2.1.2
    2026-05-21 13:13 安全 安全
  • v2.1.0
    2026-05-03 09:06 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

Scavio Walmart

scavio-ai
搜索 Walmart 商品,支持按商品 ID 查询详情,可按配送速度、邮编和门店库存筛选,返回结构化 JSON。
★ 0 📥 562

Scavio Amazon

scavio-ai
搜索亚马逊商品并通过ASIN查询商品详情,返回结构化JSON,包含价格、评分、Prime状态和库存。支持12个亚马逊市场。
★ 2 📥 644

Scavio Reddit

scavio-ai
通过 URL 搜索 Reddit 帖子或获取完整帖子及嵌套评论。适用于讨论研究、品牌监测、情感分析或 RAG管道等。
★ 0 📥 445