Get channel posts
curl --request GET \
--url https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/chanel/posts \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/chanel/posts"
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/chanel/posts', 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/chanel/posts",
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/chanel/posts"
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/chanel/posts")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/chanel/posts")
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": {
"posts": [
{
"postId": "UgkxfnZd7t1zzJoaAApJJpeEDRF3tFcTT_iK",
"authorText": "BIGBANG",
"contentText": "G-DRAGON - GUERRILLA DESK : G_Division\n\n#GDRAGON #지드래곤 #GUERRILLADESK #G_Division #YG",
"authorThumbnail": [
{
"url": "//yt3.googleusercontent.com/ytc/AIdro_n0J82ENLVh_wfaD7eOSjwfqloqGswqBxH4H-gg8PscRKw=s32-c-k-c0x00ffffff-no-rj-mo",
"width": 32,
"height": 32
}
],
"authorChannelId": "UCzw-C7fNfs018R1FzIKnlaA",
"publishedTimeText": "2 years ago",
"voteCount": "17 N",
"commentCount": "1.2K",
"attachment": {
"videoId": "4meIvHTBYJc",
"title": "G-DRAGON - GUERRILLA DESK : G_Division",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/4meIvHTBYJc/hq720.jpg",
"width": 360,
"height": 202
}
],
"viewCount": 2527869,
"publishedTimeText": "2 years ago"
}
}
]
}
}{
"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"
}Channel
Get channel posts
Get list of posts from a YouTube channel (community tab)
GET
/
api
/
v1
/
chanel
/
posts
Get channel posts
curl --request GET \
--url https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/chanel/posts \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/chanel/posts"
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/chanel/posts', 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/chanel/posts",
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/chanel/posts"
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/chanel/posts")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://youtube-scraper-api-v21.p.rapidapi.com/api/v1/chanel/posts")
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": {
"posts": [
{
"postId": "UgkxfnZd7t1zzJoaAApJJpeEDRF3tFcTT_iK",
"authorText": "BIGBANG",
"contentText": "G-DRAGON - GUERRILLA DESK : G_Division\n\n#GDRAGON #지드래곤 #GUERRILLADESK #G_Division #YG",
"authorThumbnail": [
{
"url": "//yt3.googleusercontent.com/ytc/AIdro_n0J82ENLVh_wfaD7eOSjwfqloqGswqBxH4H-gg8PscRKw=s32-c-k-c0x00ffffff-no-rj-mo",
"width": 32,
"height": 32
}
],
"authorChannelId": "UCzw-C7fNfs018R1FzIKnlaA",
"publishedTimeText": "2 years ago",
"voteCount": "17 N",
"commentCount": "1.2K",
"attachment": {
"videoId": "4meIvHTBYJc",
"title": "G-DRAGON - GUERRILLA DESK : G_Division",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/4meIvHTBYJc/hq720.jpg",
"width": 360,
"height": 202
}
],
"viewCount": 2527869,
"publishedTimeText": "2 years ago"
}
}
]
}
}{
"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"
}Authorizations
API Key
Query Parameters
YouTube channel ID
Example:
"UCzw-C7fNfs018R1FzIKnlaA"
Continuation token for pagination
Example:
"CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
Language code
Available options:
ar, az, bg, bn, cs, da, de, el, en, en-GB, en-IE, en-NZ, en-SG, es, es-419, fi, fil, fr, he, hi, hr, hu, id, it, ja, ko, lt, lv, ms, nl, no, pl, pt-BR, pt-PT, ro, ru, sv, th, tr, uk, ur, vi, zh-Hant Example:
"en"
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?
⌘I

