Skip to main content
GET
/
api
/
v1
/
video
/
comments
Get video comments
curl --request GET \
  --url https://youtube.zilodata.com/api/v1/video/comments \
  --header 'x-api-key: <api-key>'
{
  "message": "Success",
  "statusCode": 200,
  "pagination": {
    "total": 100,
    "hasMore": true,
    "paginationToken": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
  },
  "data": {
    "comments": [
      {
        "id": "UgyD...",
        "author": {
          "id": "UCxoq-PAQeAdk_zyg8YS0JqA",
          "name": "John Doe",
          "thumbnails": [
            {
              "url": "https://yt3.ggpht.com/...",
              "width": 68,
              "height": 68
            }
          ],
          "verified": false
        },
        "text": "Great video!",
        "likeCount": 1000,
        "published": "2024-01-01",
        "publishedText": "2 days ago",
        "isPinned": false,
        "replyCount": 5
      }
    ],
    "continuation": "UgyD...",
    "totalComments": 10000
  }
}

Authorizations

x-api-key
string
header
required

API Key

Query Parameters

videoId
string
required

YouTube video ID

Example:

"kJQP7kiw5Fk"

sortBy
enum<string>
default:TOP_COMMENTS

Sort comments by top comments or newest first

Available options:
TOP_COMMENTS,
NEWEST_FIRST
Example:

"TOP_COMMENTS"

commentId
string

Comment ID for pagination (continuation token)

Example:

"UgyD..."

Response

Success

message
string
Example:

"Success"

statusCode
number
Example:

200

pagination
object
data
object