80trust / 100

Video Youtube

by HubVibe in News & content

x402 APIPassing, checked 2 h ago

YouTube search and video stats, live: search YouTube or look up videos by id, each with title, channel, upload time, duration, views, likes, comments, live flag and thumbnail from the YouTube Data API at call time. Sort by relevance, date, views or rating; filter by upload date, country and language. Input: query or video_ids; optional max_results, order, published_after, region_code.

POST https://hubvibe-io.com/work/video/youtube

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
222 ms typical, 402 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://hubvibe-io.com/work/video/youtube" \
  -H "content-type: application/json" \
  -d '{"max_results":3,"query":"open source licensing"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhubvibe-io.com%2Fwork%2Fvideo%2Fyoutube
const res = await pay("https://hubvibe-io.com/work/video/youtube", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_results":3,"query":"open source licensing"}),
});
console.log(await res.json());

Example input

{
  "max_results": 3,
  "query": "open source licensing"
}

Example output

{
  "price_usd": 0.05,
  "provenance": {
    "attempts": 1,
    "elapsed_ms": 660,
    "providers_used": [
      "youtube-data-api"
    ],
    "steps": [
      {
        "ms": 640,
        "ok": true,
        "provider": "youtube-data-api",
        "step": "youtube"
      }
    ]
  },
  "receipt_id": "rcpt_9f1c2b3a4d5e6f70",
  "receipt_url": "/work/receipts/rcpt_9f1c2b3a4d5e6f70",
  "result": {
    "as_of": "2026-09-27T12:00:00Z",
    "checked_at": "2026-09-26T18:00:00Z",
    "item_count": 3,
    "items": [
      {
        "channel_id": "UCoBPd2jgYzQ5m8k3f1nR9wA",
        "channel_title": "Coinbase Developer Platform",
        "comment_count": 112,
        "description": "A short intro to open source licences.",
        "duration_seconds": 754,
        "like_count": 2225,
        "live": false,
        "published_at": "2026-05-14T16:00:12Z",
        "thumbnail_url": "https://i.ytimg.com/vi/IJhS_fv5Ktk/hqdefault.jpg",
        "title": "Open source licensing explained",
        "url": "https://www.youtube.com/watch?v=IJhS_fv5Ktk",
        "video_id": "IJhS_fv5Ktk",
        "view_count": 52004
      }
    ],
    "query": "open source licensing",
    "source": "youtube-data-api",
    "total_results": 19113,
    "video_ids": [
      "IJhS_fv5Ktk"
    ]
  },
  "status": "ok",
  "worker": "video.youtube"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402502 ms$0.05
6 h agoPassed402364 ms$0.05
9 h agoPassed402118 ms$0.05
13 h agoPassed402402 ms$0.05
16 h agoPassed402117 ms$0.05
20 h agoPassed402120 ms$0.05
25 h agoPassed402222 ms$0.05