78trust / 100
Youtube Comments
by agdata in News & content
x402 APIPassing, checked 21 min ago
YouTube comments API for AI agents: send the URL of a video and get its comments as JSON: text, time, likes and reply count. Up to 100 comments per call. The commenters' names and handles are not returned. Pay per call in stablecoins; comments you paid for but did not get are refunded.
POST https://agdata.shveik.dev/x402/youtube-comments
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 106 ms typical, 119 ms slowest 5%
- Last check
- 21 min ago
- Next check
- in 11 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agdata.shveik.dev/x402/youtube-comments" \
-H "content-type: application/json" \
-d '{"limit":20,"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}'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-comments
const res = await pay("https://agdata.shveik.dev/x402/youtube-comments", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"limit":20,"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}),
});
console.log(await res.json());Example input
{
"limit": 20,
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}Example output
{
"byOwner": false,
"id": "Ugzge340…",
"isReply": false,
"likeCount": 323000,
"ownerLiked": true,
"pinned": null,
"postedAt": "1 year a…",
"replyCount": 962,
"text": "can conf…",
"textTruncated": false
}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 |
|---|---|---|---|---|
| 21 min ago | Passed | 402 | 114 ms | $0.094 |
| 4 h ago | Passed | 402 | 117 ms | $0.094 |
| 7 h ago | Passed | 402 | 129 ms | $0.094 |
| 11 h ago | Passed | 402 | 106 ms | $0.094 |
| 15 h ago | Passed | 402 | 119 ms | $0.094 |
| 18 h ago | Passed | 402 | 101 ms | $0.094 |
| 23 h ago | Passed | 402 | 94 ms | $0.094 |
| 26 h ago | Passed | 402 | 105 ms | $0.094 |
| 31 h ago | Passed | 402 | 29 ms | $0.094 |
History
| 11 Oct 2026 | Price changed from $0.09 to $0.094 |