Skip to main content
GET
/
api
/
v1
/
video
/
related
Get related videos
curl --request GET \
  --url https://youtube.zilodata.com/api/v1/video/related \
  --header 'x-api-key: <api-key>'
{
  "message": "Success",
  "statusCode": 200,
  "pagination": {
    "total": 100,
    "hasMore": true,
    "paginationToken": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
  },
  "data": {
    "relatedVideos": [
      {
        "videoId": "kJQP7kiw5Fk",
        "title": "Luis Fonsi - Despacito ft. Daddy Yankee",
        "author": {
          "id": "UCxoq-PAQeAdk_zyg8YS0JqA",
          "name": "Luis Fonsi",
          "thumbnails": [
            {
              "url": "https://yt3.ggpht.com/...",
              "width": 68,
              "height": 68
            }
          ]
        },
        "thumbnails": [
          {
            "url": "https://i.ytimg.com/vi/kJQP7kiw5Fk/hq720.jpg",
            "width": 360,
            "height": 202
          }
        ],
        "url": "https://www.youtube.com/watch?v=kJQP7kiw5Fk",
        "viewCount": 8871198622,
        "viewCountText": "8.8B views",
        "published": "2017-01-13",
        "publishedText": "8 years ago",
        "lengthSeconds": 282,
        "duration": "4:42",
        "isLive": false
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

API Key

Query Parameters

videoId
string
required

YouTube video ID

Example:

"kJQP7kiw5Fk"

Response

Success

message
string
Example:

"Success"

statusCode
number
Example:

200

pagination
object
data
object