PluginBench
Skill
Fail
Audit score 45

youtube-api

fetcher-sh/fetcher-skills

YouTube search, channel lookup, video details, and trending—pay-per-call via x402 or prepaid credits, no quota limits.

What is youtube-api?

A quota-free YouTube API alternative offering video/channel/playlist search with filters (upload date, duration, sort), channel and video lookups, comments, hashtag feeds, and trending data. Use it when you need YouTube data without OAuth, daily quotas, or a developer console project.

  • Search videos, channels, and playlists with filters for upload date, duration, and sort order
  • Look up channels by ID, @handle, or custom URL path and retrieve their videos, shorts, or live streams
  • Fetch video or short details, comments, and metadata
  • List playlist contents and videos under hashtags
  • Retrieve trending videos by region
  • Pay per call in USDC (x402) or via prepaid credits with no daily quota limits

How to install youtube-api

npx skills add https://github.com/fetcher-sh/fetcher-skills --skill youtube-api
Prerequisites
  • FETCHER_API_KEY environment variable (prepaid credits from https://fetcher.sh/topup) or x402-compatible wallet for pay-per-call
  • curl or HTTP client library
Claude Code
Cursor
Windsurf
Cline

How to use youtube-api

  1. 1.Set FETCHER_API_KEY to your prepaid credits key or omit it for x402 pay-per-call
  2. 2.Make GET requests to https://youtube.fetcher.sh/api/* endpoints with optional filters (uploadDate, duration, sortBy, geo, etc.)
  3. 3.Parse the JSON response with structure { status, message, data }
  4. 4.Use cursor parameter for pagination across large result sets
  5. 5.Monitor your credits balance via the MCP free endpoint check_balance

Use cases

Good for
  • Monitor a creator's upload activity and trending content for analytics dashboards
  • Build a video recommendation engine filtering by upload date and view count
  • Track hashtag trends and viral shorts across regions
  • Aggregate channel data for content research without hitting YouTube API quotas
  • Fetch video comments for sentiment analysis or engagement tracking
Who it's for
  • Data engineers building YouTube analytics pipelines
  • Content researchers and trend analysts
  • AI agents automating video discovery and monitoring
  • Developers needing quota-free YouTube data access

youtube-api FAQ

What's the cost per call?

$0.005 USD per call, settled in USDC on Base, Polygon, Arbitrum, Monad, or Solana.

Do I need a YouTube API key or OAuth?

No. Authenticate with a prepaid FETCHER_API_KEY or pay per call with x402; no developer console or consent screen required.

Are there daily quota limits?

No. You can make unlimited calls as long as you have credits or x402 payment capability.

Can I filter search results?

Yes. Video search supports uploadDate (hour/today/week/month/year), duration (short/medium/long), and sortBy (relevance/upload_date/view_count/rating).

What if my credits run out?

You'll receive a 402 error with topup_required. Top up at https://fetcher.sh/topup or via POST /api/credits/topup.

Full instructions (SKILL.md)

Source of truth, from fetcher-sh/fetcher-skills.


name: youtube-api description: >- A YouTube API alternative on fetcher.sh — pay-per-call in USDC via x402, or prepaid credits with a Bearer key, no OAuth and no daily quota. Use when the user wants to search YouTube videos with filters for upload date, duration, or sort order, search channels or playlists, look up a channel by ID, @handle, or custom URL path, list a channel's videos, shorts, or live streams, fetch a video's or short's details and comments, list a playlist's videos, pull posts under a hashtag, or check trending videos by region. Also covers YouTube data pipelines, channel monitoring, video analytics input, and trend tracking without the official YouTube Data API's daily quota limits. keywords:

  • youtube
  • youtube-api
  • youtube-api-alternative
  • youtube-data
  • video-search
  • x402
  • ai-agent

YouTube API

YouTube data on demand: video/channel/playlist search with real filters (upload date, duration, sort order), channel and video lookups, videos, shorts, live streams, playlist contents, comments, hashtag feeds, and trending — one plain HTTP GET per call, paid as you go. No developer console project, no OAuth consent screen, no daily quota.

Base URL: https://youtube.fetcher.sh

Authentication

Two ways to pay, same data — full mechanics in the fetcher skill:

# 1. Prepaid credits (recommended — get a key at https://fetcher.sh/topup
#    or via POST /api/credits/topup, see the fetcher skill)
export FETCHER_API_KEY="bby_live_xxxxxxxxxxxx"
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://youtube.fetcher.sh/api/search/video?query=hello"

# 2. x402 pay-per-call — omit the header; a GET with no payment returns 402
#    with machine-readable payment requirements (USDC on Base, Polygon,
#    Arbitrum, Monad, or Solana). @x402/fetch signs and retries automatically.

Every response is { "status": number, "message": string, "data": ... }; the HTTP status mirrors status.

Endpoints (15 — all GET, $0.005/call)

EndpointWhat it returns
/api/search/videoVideos matching a query; upload date, duration, sort filters
/api/search/channelChannels matching a query
/api/search/playlistPlaylists matching a query
/api/channel/{id}Channel details by ID
/api/channel/handle/{handle}Channel details by @handle
/api/channel/pathChannel details by custom URL path
/api/channel/{id}/videosA channel's videos
/api/channel/{id}/shortsA channel's shorts
/api/channel/{id}/live-streamsA channel's live streams
/api/video/{id}Video (or short) details
/api/video/{id}/commentsA video's comments
/api/shorts/{id}Short details
/api/playlist/{id}/videosA playlist's videos
/api/hashtag/{tag}Videos under a hashtag
/api/trendingTrending videos, optionally by region

{id} / {handle} / {tag} are path parameters. Optional cursor / lang / geo refine results; query (search) and channelPath (path lookup) are required where they appear.

Scenarios

Uploaded this week:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  --data-urlencode "query=ai agents" -G \
  --data-urlencode "uploadDate=week" \
  "https://youtube.fetcher.sh/api/search/video"

Most viewed, long-form only:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  --data-urlencode "query=x402 protocol" -G \
  --data-urlencode "sortBy=view_count" \
  --data-urlencode "duration=long" \
  "https://youtube.fetcher.sh/api/search/video"

Newest first:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  --data-urlencode "query=stablecoin payments" -G \
  --data-urlencode "sortBy=upload_date" \
  "https://youtube.fetcher.sh/api/search/video"

Other uploadDate values: hour, today, month, year. Other duration values: short, medium. Other sortBy values: relevance, rating.

Search channels or playlists:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  --data-urlencode "query=lofi hip hop" -G \
  "https://youtube.fetcher.sh/api/search/channel"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  --data-urlencode "query=lofi hip hop" -G \
  "https://youtube.fetcher.sh/api/search/playlist"

A channel by ID, handle, or custom path — then its videos, shorts, and live streams:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://youtube.fetcher.sh/api/channel/handle/mkbhd"

curl -H "Authorization: Bearer $FETCHER_API_KEY" -G \
  --data-urlencode "channelPath=@mkbhd" \
  "https://youtube.fetcher.sh/api/channel/path"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://youtube.fetcher.sh/api/channel/UCBJycsmduvYEL83R_U4JriQ/videos"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://youtube.fetcher.sh/api/channel/UCBJycsmduvYEL83R_U4JriQ/shorts"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://youtube.fetcher.sh/api/channel/UCBJycsmduvYEL83R_U4JriQ/live-streams"

A video's details and comments, or a short's details:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://youtube.fetcher.sh/api/video/dQw4w9WgXcQ"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  --data-urlencode "sort=top" -G \
  "https://youtube.fetcher.sh/api/video/dQw4w9WgXcQ/comments"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://youtube.fetcher.sh/api/shorts/abc123XYZ90"

A playlist's videos, videos under a hashtag, and trending (by region):

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://youtube.fetcher.sh/api/playlist/PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI/videos"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://youtube.fetcher.sh/api/hashtag/shorts"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  --data-urlencode "geo=US" -G \
  "https://youtube.fetcher.sh/api/trending"

MCP

{
  "mcpServers": {
    "youtube": {
      "url": "https://youtube.fetcher.sh/mcp",
      "headers": { "Authorization": "Bearer bby_live_..." }
    }
  }
}

Free: search_endpoints, describe_endpoint, check_balance. Paid: fetch_data (any endpoint above), topup_credits, plus the named shortcut youtube_search_video. Drop the headers block to pay per call with x402 instead — see the fetcher skill for the full flow.

Errors

  • 400 — missing/invalid parameter (message names it)
  • 401 — unknown or rotated key
  • 402 — payment required (x402 challenge) or topup_required (credits exhausted)
  • 404 — not a priced path
  • No rate limits; no refunds on upstream failures (settlement precedes delivery)

Reference