cURL
curl --request POST \ --url https://api.anysite.io/api/youtube/video/comments \ --header 'Content-Type: application/json' \ --header 'access-token: <api-key>' \ --data ' { "video": "<string>", "count": 1000, "timeout": 300 } '
[ { "id": "<string>", "text": "<string>", "@type": "@youtube_comment", "author": { "id": "<string>", "@type": "@youtube_comment_author", "name": "<string>", "url": "<string>", "avatar": "<string>", "is_verified": false, "is_creator": false }, "published_at": 123, "like_count": 123, "reply_count": 123, "reply_level": 0 } ]
Get comments for a YouTube video
Price: 1 credit
💡 AI Hint: Get comments on a YouTube video by URL or video ID. Returns comment text, authors, and like counts.
⚠️ Common errors: 412: Video not found or comments disabled.
API token from the dashboard
YouTube video ID or URL
"dQw4w9WgXcQ"
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
Max number of comments to fetch
1 <= x <= 2000
Max scrapping execution timeout (in seconds)
20 <= x <= 1500
Successful Response
Show child attributes