{"agent":{"expose":"search","prompt":"Use Crawl4AI to get comments of a YouTube video."},"also":["comments on a video","video comments","what viewers say"],"beta":true,"call":{"aliases":["POST /recipes/youtube-comments"],"method":"POST","path":"/tools/youtube-comments"},"categories":["video","social"],"cost":{"cases":[{"price":"","when":"1 credit, plus 0.5 per 20 comments"},{"price":"free","when":"A run with no row"}],"rule":"1 credit, plus 0.5 per 20 comments · a run with no row is free","text":"1 cr + 0.5 per 20"},"description":"The top-level comments of one public YouTube video, in YouTube's top-comments order, one row per comment: text, author, likes, reply count, when it was posted, whether the creator hearted or pinned it. `video` is the watch URL, a youtu.be link or the 11-character id; `limit` how many comments (default 50, at most 500). YouTube sends 20 comments a page, about 0.5 s each. A video with comments turned off gives no rows. When YouTube stops answering partway, the comments read so far come back with a warning that the list stopped early.","docs":"/tools/youtube-comments","essential":false,"essential_order":null,"examples":[{"answer":{"body":{"request_id":"req_…","rows":[{"author":{"channel_id":"UCBR8-60-B28hp2BmDPdntcQ","handle":"@YouTube","name":"@YouTube","url":"https://www.youtube.com/channel/UCBR8-60-B28hp2BmDPdntcQ"},"comment_id":"Ugzge340dBgB75hWBm54AaABAg","hearted_by_creator":true,"likes":324000,"pinned":true,"published":"1 year ago","published_date":null,"replies":962,"text":"can confirm: he never gave us up","url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=Ugzge340dBgB75hWBm54Aa…","video_id":"dQw4w9WgXcQ"},{"author":{"channel_id":"UC1NmXyk_lAHN4Efaaiyikfg","handle":"@Yundoxcloud27","name":"@Yundoxcloud27","url":"https://www.youtube.com/channel/UC1NmXyk_lAHN4Efaaiyikfg"},"comment_id":"UgxCxpKgbZ6a9lRi5np4AaABAg","hearted_by_creator":false,"likes":1900,"pinned":false,"published":"5 years ago","published_date":null,"replies":20,"text":"Today it's the day, we Rickroll ourselves.","url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=UgxCxpKgbZ6a9lRi5np4Aa…","video_id":"dQw4w9WgXcQ"}],"took_ms":1520,"tool":"youtube-comments","usage":{"credits":2}},"credits":2,"more":4,"rows":6,"took_ms":1520},"input":{"video":"dQw4w9WgXcQ"},"label":"dQw4w9WgXcQ"},{"input":{"limit":50,"video":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"},"label":"https://www.youtube.com/watch?v=dQw4w9WgXcQ, 50"}],"id":"youtube-comments","input_schema":{"additionalProperties":true,"properties":{"limit":{"default":50,"description":"`limit` how many comments (default 50, at most 500).","type":"integer"},"video":{"description":"`video` is the watch URL, a youtu.be link or the 11-character id","type":"string"}},"required":["video"],"type":"object"},"inputs":[{"example":"dQw4w9WgXcQ","help":"`video` is the watch URL, a youtu.be link or the 11-character id","name":"video","required":true,"type":"string"},{"advanced":true,"default":50,"help":"`limit` how many comments (default 50, at most 500).","name":"limit","type":"integer"}],"kind":"sites","name":{"lead":"YouTube","rest":"comments"},"output":{"fields":[{"meaning":"YouTube's id of the comment (Ugz...), the `lc` value in a comment link.","name":"comment_id","type":"string"},{"meaning":"The 11-character id of the video the comment is on.","name":"video_id","type":"string"},{"meaning":"The comment as written, line breaks and emoji included.","name":"text","type":"string"},{"meaning":"The commenter, {name, handle, channel_id, url}: name is the name YouTube shows on the comment (the @handle for nearly every channel today); handle is from the channel link, null when the channel has none; url is the channel's /channel/<id> link.","name":"author","type":"object"},{"meaning":"Likes as an integer, from the count YouTube shows: above 1,000 YouTube rounds it (324K gives 324000), so treat large values as approximate; 0 when no count is shown.","name":"likes","type":"integer"},{"meaning":"How many replies the comment has, from the count YouTube shows (rounded the same way above 1,000); the replies themselves are not rows.","name":"replies","type":"integer"},{"meaning":"When it was posted, YouTube's own relative text in English (\"4 hours ago\", \"6 years ago (edited)\").","name":"published","type":"string"},{"meaning":"The UTC date (YYYY-MM-DD) of `published`, only when every moment that text can mean, one unit either side, falls on one day (minutes and hours ago, by YouTube's clock); null otherwise, never a guess.","name":"published_date","type":"string"},{"meaning":"true when the video's creator gave the comment a heart.","name":"hearted_by_creator","type":"boolean"},{"meaning":"true when the creator pinned the comment to the top.","name":"pinned","type":"boolean"},{"meaning":"A link that opens the video with this comment shown first.","name":"url","type":"string"}],"row_is":"","view":"rows"},"related":[{"id":"youtube-captions","why":"Title, language, available languages, text, segments"},{"id":"youtube-channel","why":"Handle, title, description, subscribers, subscribers text, videos"},{"id":"instagram-reels","why":"Plays, likes, comments, thumbnail"}],"run":"both","source":"youtube","status":"verified","summary":"Text, author, likes, replies, published, published date","synonyms":["comments","video","youtube","comments on a video","video comments","what viewers say"],"typical":"1.6 s","version":2,"visibility":"public"}