YouTube
YouTube Community Post Comments
List the comments on a YouTube community post - comment id, text, like and reply counts, author and publish time - with cursor pagination, as JSON. 1 credit.
POST/api/v1/youtube/community/post/comments
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonpost_idstringrequiredA community post id or post URL.
Example: Ugkx_PqHZYEoCCP7e8WIOrh-1HCvtKoFMzVp
cursorstringnext_cursor from a previous page, or comments_cursor from Community Post. Keep passing it while has_more is true.
Notes
About 20 comments per page. Each comment's reply_cursor identifies its reply thread.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.youtube.community_post_comments(post_id="Ugkx_PqHZYEoCCP7e8WIOrh-1HCvtKoFMzVp")
print(results)Response
"next_cursor": "4qmFsgKNBRIoRkVjb21tZW50X3Bvc3RfZGV0YWlsX3BhZ2Vfd2ViX3RvcF9sZXZlbBrgBEVnVndiM04wYzZvRHVBTUsxQUpuWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJHZEZTVEpHT0ZGblFWRlpRbmxMVEVGWWRHMW9hM2w0YTJaMmNHcFhiVGRVVjJOV1NGVllTSE5MYUhCSlNqWkZWVnB2TUdkSlpuSlhVbmsxV0dscWIxbHVXSGxmUlhOMlRWRjRjRUpPVjBwR1gyMVZMVkJZZWxGamVqSTFMV3g1ZVc1WVVHMVJRbXRSVTJFd01YUTBhV2RwTFd0TmNGUmtZMmhYVFVnM1RrWlpZVzVGZVdoRFpHRktaVXBuT0dKaVZ6ZFNTbEpsYm5KNk5rOUdabFUyVUdOMWF6RXRhbkJYT0ZwUlMzWjBXbVo2VERZek1XazBOM2h4VTB3NVRtTktXVUkzUTJ4Mk9FcEJhVzlSUmtKSlJrTk5RV2RIUVVGVFFsRnBSMGxDWjBGRloxVkphSGxCV1VGQ1NVWkRTV3RuUjBGQlUwSlJhVWxKUW1kQlJXZFZTWEZEUVZsQlFrbElRMGxWWjBWQ1VWbEJVa2xHUTB4elowZEJRVk5DZDJsRlNVSkJUVWRCUWxGQlJtZENJa2t3QUhnQnlBRUE2Z0VrVldkcmVGOVFjVWhhV1VWdlEwTlFOMlU0VjBsUGNtZ3RNVWhEZG5STGIwWk5lbFp3OGdFWVZVTnpRbXBWVW5KUWIyVjZlV3RNY3psRmNXZGhiVTlCS0JRNEFVSVFZMjl0YldWdWRITXRjMlZqZEdsdmJnJTNEJTNE",
"has_more": true
},
"response_time": 1887
}