Get reply comments
curl --request GET \
--url https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "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": "Thanks for the reply!",
"likeCount": 50,
"published": "2024-01-01",
"publishedText": "1 day ago",
"isPinned": false,
"replyCount": 0,
"continuationCommand": "Eg0SC0d5ckg2eGlGaVQwGAYygwEaUBIaVWd4djFBcjJ4TTJDZ0liZVJhVjRBYUFCQWciAggAKhhVQ3dKRHZ4NVlib3VDRVFfUlB3LU9SQlEyC0d5ckg2eGlGaVQwQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h2MUFyMnhNMkNnSWJlUmFWNEFhQUJBZw%3D%3D"
}
]
}
}{
"message": "Bad request"
}{
"message": "Invalid API key"
}{
"message": "You are not subscribed to this API, please subscribe before using"
}{
"success": false,
"message": "Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Internal Server Error"
}Video
Get reply comments
Get reply comments for a specific comment using a continuation token. The continuation token is obtained from the parent comment response.
GET
/
api
/
v1
/
video
/
reply-comments
Get reply comments
curl --request GET \
--url https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/video/reply-comments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "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": "Thanks for the reply!",
"likeCount": 50,
"published": "2024-01-01",
"publishedText": "1 day ago",
"isPinned": false,
"replyCount": 0,
"continuationCommand": "Eg0SC0d5ckg2eGlGaVQwGAYygwEaUBIaVWd4djFBcjJ4TTJDZ0liZVJhVjRBYUFCQWciAggAKhhVQ3dKRHZ4NVlib3VDRVFfUlB3LU9SQlEyC0d5ckg2eGlGaVQwQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h2MUFyMnhNMkNnSWJlUmFWNEFhQUJBZw%3D%3D"
}
]
}
}{
"message": "Bad request"
}{
"message": "Invalid API key"
}{
"message": "You are not subscribed to this API, please subscribe before using"
}{
"success": false,
"message": "Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Internal Server Error"
}Query Parameters
Geographical code
Available options:
US, AE, AR, AT, AU, AZ, BD, BE, BG, BR, CA, CH, CL, CO, CZ, DE, DK, DO, DZ, EC, EG, ES, FI, FR, GB, GH, GR, GT, HK, HN, HR, HU, ID, IE, IL, IN, IQ, IT, JP, KE, KR, LB, LT, LV, MA, MX, MY, NG, NL, NO, NZ, PE, PH, PK, PL, PT, RO, RU, SA, SE, SG, TH, TR, TW, UA, VE, VN, ZA Example:
"US"
Was this page helpful?

