80trust / 100
Youtube
by agdata in News & content
x402 APIPassing, checked 52 min ago
YouTube video search by keyword, or the videos of one channel. Mode search takes keywords; mode profile takes a channel handle without the @. limit is 1-20 regular videos, no Shorts or live streams. Per video you get a normalized object: title, description, views, likes, comments_count, duration_seconds, published_at, thumbnail, url, channel_name, channel_url, channel_id, subscribers.
POST https://agdata.shveik.dev/x402/youtube
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 137 ms typical, 178 ms slowest 5%
- Last check
- 52 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agdata.shveik.dev/x402/youtube" \
-H "content-type: application/json" \
-d '{"limit":5,"mode":"search","query":"web scraping tutorials"}'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%2Fagdata.shveik.dev%2Fx402%2Fyoutube
const res = await pay("https://agdata.shveik.dev/x402/youtube", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"limit":5,"mode":"search","query":"web scraping tutorials"}),
});
console.log(await res.json());Example input
{
"limit": 5,
"mode": "search",
"query": "web scraping tutorials"
}Example output
{
"channel_id": "UCZDA1kA…",
"channel_name": "Tinkernu…",
"channel_url": "https://…",
"comments_count": 232,
"description": "The web…",
"duration_seconds": 456,
"id": "QhD015WU…",
"likes": 13000,
"published_at": "2021-11-…",
"subscribers": 627000,
"thumbnail": "https://…",
"title": "Beginner…",
"url": "https://…",
"views": 483801
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 52 min ago | Passed | 402 | 178 ms | $0.096 |
| 5 h ago | Passed | 402 | 99 ms | $0.096 |
| 8 h ago | Passed | 402 | 91 ms | $0.096 |
| 12 h ago | Passed | 402 | 137 ms | $0.096 |
| 16 h ago | Passed | 402 | 95 ms | $0.096 |
| 19 h ago | Passed | 402 | 222 ms | $0.096 |
| 24 h ago | Passed | 402 | 169 ms | $0.096 |
History
| 11 Oct 2026 | Price changed from $0.092 to $0.096 |