{"uid":"cap_SIvZxCpXPRzincAD97ic_","slug":"scrapemole-youtube-comments-api-ed368a22","name":"ScrapeMole YouTube Comments API","description":"Pay-per-call public web data for agents: Google Trends, YouTube transcripts, YouTube search, YouTube channel videos, YouTube video details, YouTube comments, YouTube playlists. Pay per successful call in USDC with x402; errors are never charged. No accounts, no API keys.\n\nPayments: x402 v2, scheme \"exact\", USDC on Base (eip155:8453). The payment is verified before the scrape and settled only when the response is 200. Terms: https://scrapemole-api-mainnet.scrapemole.workers.dev/terms","url":"https://scrapemole-api-mainnet.scrapemole.workers.dev/v1/youtube/comments?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["video"],"properties":{"lang":{"type":"string","examples":["en"],"description":"Interface language (hl), e.g. en, de."},"sort":{"enum":["top","newest"],"type":"string","default":"top","description":"Comment order."},"limit":{"type":"string","default":"20","description":"Max comments (1-100)."},"video":{"type":"string","examples":["aircAruvnKk"],"description":"YouTube video URL or 11-character video ID."},"country":{"type":"string","examples":["US"],"description":"Country (gl), e.g. US, GB."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"sort":"top","count":1,"title":"But what is a neural network? | Deep learning chapter 1","videoId":"aircAruvnKk","comments":[{"text":"This is the clearest explanation of backprop I have seen.","isPinned":false,"commentId":"Ugx…","likeCount":1200,"replyCount":14,"publishedText":"3 years ago","isByVideoCreator":false}],"totalComments":9000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jnhjg9cyKf-K0L3kCnZ2z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches paginated comments from a YouTube video, sorted by top or newest, with like counts, reply counts, and creator flags","exampleAgentPrompt":"Fetch the top 50 comments on the YouTube video 'aircAruvnKk' and show me the text, like counts, and whether any are pinned or from the creator.","exampleUseCases":[{"title":"Audience sentiment analysis for a video","prompt":"Pull the top 100 comments from this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — I want to see the comment text and like counts so I can understand how viewers are reacting."},{"title":"Monitoring newest viewer feedback","prompt":"Get the 20 newest comments on YouTube video ID 'aircAruvnKk' so I can see what people are saying about it right now."},{"title":"Creator engagement research","prompt":"Fetch the top 30 comments on YouTube video 'Ks-_Mh1QhMc' and flag which ones are pinned or posted by the video creator — I'm doing research on how creators engage with their audience."}],"resultDescription":"Returns a JSON object containing the video title, video ID, sort mode, total comment count, and an array of comments each with: comment text, comment ID, like count, reply count, relative publish time, pinned status, and whether the commenter is the video creator.","failureModes":["Invalid or non-existent video ID returns an error (no charge)","Video with comments disabled returns an error or empty result (no charge)","Limit value outside 1-100 range may cause a validation error","Payment failure or insufficient USDC balance prevents the request from being processed","Rate limiting or upstream YouTube access issues may cause transient errors (no charge on error)"],"whenToPreferThis":"Use this endpoint when you need structured comment data from YouTube videos without managing API keys, OAuth, or YouTube API quotas. It is ideal for AI agents that need pay-per-call access with no account setup, particularly for sentiment analysis, audience research, or monitoring viewer feedback. Prefer this over the YouTube Data API when you want zero-setup access and only pay for successful responses in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:36:24.263Z","isFirstParty":false,"canonicalSlug":"scrapemole-youtube-comments-api-ed368a22"}