{"uid":"cap_-ukpWLQzeBT1QK9psDBdb","slug":"youtube-comments-scraper-x402-a2fcd352","name":"YouTube Comments Scraper (x402)","description":"Pay-per-call structured web data. Failed or empty runs are not charged.","url":"https://x402.186-241-26-229.sslip.io/v1/youtube-comments?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"maxItems":{"type":"integer","default":0,"minimum":0,"description":"Hard cap across all videos. Zero means no total cap."},"startUrls":{"type":"array","description":"Public YouTube video URLs. Watch, Shorts, live, embedded, and short links are accepted."},"maxComments":{"type":"integer","default":100,"minimum":1,"description":"Stop after this many comments and replies per video."},"includeReplies":{"type":"boolean","default":true,"description":"Follow public reply threads as well as top-level comments."},"sortCommentsBy":{"enum":["TOP_COMMENTS","NEWEST_FIRST"],"type":"string","default":"NEWEST_FIRST","description":"Order top-level comments by featured ranking or newest first."},"oldestCommentDate":{"type":"string","description":"Optional UTC date such as 2026-09-01 or relative age such as 7 days. YouTube supplies relative times, so this filter is approximate and selects newest-first order."}}},"responseSchema":{"type":"json","example":{"count":1,"items":[{"cid":null,"author":null,"comment":null,"commentUrl":null,"authorAvatarUrl":null,"authorChannelId":null,"authorChannelUrl":null,"authorIsVerified":null}],"product":"youtube-comments"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","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.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zqloZPjEoZc2aERc3Wran","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured comment data (including replies) from one or more public YouTube videos, billed per successful call via x402 micropayment.","exampleAgentPrompt":"Grab the 200 newest comments (including replies) from this YouTube video https://www.youtube.com/watch?v=dQw4w9WgXcQ and give me each commenter's name, comment text, and channel link.","exampleUseCases":[{"title":"Sentiment analysis on viral video","prompt":"Pull the top 500 comments from https://www.youtube.com/watch?v=dQw4w9WgXcQ sorted by featured ranking, including replies, so I can run sentiment analysis on them."},{"title":"Brand monitoring on product review","prompt":"Collect up to 200 of the newest comments posted after 2024-01-01 on https://www.youtube.com/watch?v=abc123XYZ — I want to see what people are saying about the product in this review video."},{"title":"Creator community research","prompt":"Fetch the 100 most recent comments, with replies, from each of these three YouTube videos: https://youtu.be/vid1, https://youtu.be/vid2, https://youtu.be/vid3 — cap the total at 250 items across all three."}],"resultDescription":"Returns a JSON object with a count of retrieved items and an array of comment records. Each record includes the comment ID, text body, author display name, comment permalink URL, author avatar image URL, author channel ID, author channel URL, and a boolean indicating whether the author is verified. Failed or empty scrape runs are not billed.","failureModes":["Video is private or age-restricted — returns empty result, no charge","Invalid or malformed YouTube URL — request rejected","Video has comments disabled — returns empty result, no charge","Rate limiting or YouTube anti-bot measures — may return partial or empty result","Network timeout on large comment sets — partial result possible"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable comment data from specific YouTube videos without building or maintaining your own scraper. It is especially well-suited for agent workflows that require pay-per-use pricing (no subscription), tolerance for failed runs at no cost, and support for replies alongside top-level comments. Prefer it over generic web scrapers when you need YouTube-specific output fields like channel IDs and verified status.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:47:58.636Z","isFirstParty":false,"canonicalSlug":"youtube-comments-scraper-x402-a2fcd352"}