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
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
}
]