{"uid":"cap_Ffmw6-ngtTrcKr3KmXAib","slug":"agdata-youtube-comments-api-afba0409","name":"agdata YouTube Comments API","description":"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.","url":"https://agdata.shveik.dev/x402/youtube-comments?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":300},"sort":{"enum":["top","newest"],"type":"string"},"limit":{"type":"integer","maximum":100,"minimum":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.018","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nVPthXnscJLBoS2Wm6pQ6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches up to 100 comments from a YouTube video as structured JSON, including text, timestamp, likes, and reply count, sorted by top or newest.","exampleAgentPrompt":"Pull the top 50 comments from this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — sorted by top, and give them to me as structured data with likes and reply counts.","exampleUseCases":[{"title":"Audience sentiment on product launch video","prompt":"Grab the top 100 comments from this YouTube video of our product launch — https://www.youtube.com/watch?v=abc123xyz — sorted by top, so I can see what people are reacting to most."},{"title":"Monitoring newest viewer feedback","prompt":"Get me the 30 newest comments on this YouTube video https://www.youtube.com/watch?v=xyz987abc, sorted by newest, so I can track what viewers are saying right after it went live."},{"title":"Competitive content research","prompt":"Fetch the top 20 comments from this competitor's YouTube tutorial video at https://www.youtube.com/watch?v=example456 — I want to see what questions and pain points viewers are expressing."}],"resultDescription":"A JSON array of up to 100 comment objects, each containing the comment text, posting timestamp, number of likes, and reply count. Commenter names and handles are not included. Any comments paid for but not returned are automatically refunded.","failureModes":["Invalid or non-existent YouTube video URL returns an error","Private or age-restricted videos may not return comments","Limit parameter out of range (below 1 or above 100) is rejected","Video with comments disabled returns empty or error response","Network or upstream YouTube blocking causes partial or failed response"],"whenToPreferThis":"Choose this endpoint when you need structured comment data from a YouTube video quickly and without setting up YouTube API credentials. It is ideal for agents doing sentiment analysis, audience research, or content monitoring on YouTube videos, especially when paying per-call via stablecoins is acceptable and commenter identity is not required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:40:34.586Z","isFirstParty":false,"canonicalSlug":"agdata-youtube-comments-api-afba0409"}