YouTube Video Sub Comment List
Retrieve replies associated with a YouTube comment continuation cursor, with optional locale settings. Use it to follow threaded discussion beyond first-level comments.
/v1/youtube/get_video_sub_comment_v1
$0.02
- Price
- $0.02 per successful call, Failed calls are free
- Endpoint ID
youtube.get_video_sub_comment_v1
Parameters
-
cursorstring RequiredReply cursor from a first-level comment response.
-
language_codestring OptionalLanguage preference for response data.
Example
zh-CN -
country_codestring OptionalRegion code for response data.
Example
US
Code samples
curl -G "https://api.mofa-ai.com/v1/youtube/get_video_sub_comment_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'language_code=zh-CN' \
--data-urlencode 'country_code=US'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/youtube/get_video_sub_comment_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"language_code": "zh-CN",
"country_code": "US",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/youtube/get_video_sub_comment_v1");
url.search = new URLSearchParams({
language_code: "zh-CN",
country_code: "US",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Example response
There is no example response for this endpoint yet.
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
More YouTube endpoints
-
General Search
$0.02Search YouTube by keyword with optional type, upload-date, duration, feature, and sort filters, or continue with a token. Use it to discover videos, channels…
/v1/youtube/search_v1
-
Video Details
$0.02Retrieve public details for a YouTube video identified by video ID. Use it to inspect a known video before further content or comment analysis.
/v1/youtube/get_video_detail_v1
-
Channel Videos
$0.02Retrieve public videos from a YouTube channel, with optional cursor-based pagination. Use it to browse a channel's uploads and continue through additional re…
/v1/youtube/get_channel_videos_v1
-
Video Captions
$0.02Retrieve available caption tracks for a YouTube video or request captions in SRT, XML, JSON3, or plain-text format. Use it to support transcription, accessib…
/v1/youtube/get_video_captions_v1
-
Channel Shorts
$0.02Retrieve public Shorts from a YouTube channel ID with optional continuation-token pagination. Use it to browse a channel's short-form videos and continue thr…
/v1/youtube/get_channel_shorts_v1
-
Video Comment List
$0.02Retrieve first-level comments for a YouTube video with sorting, locale options, and cursor pagination. Use it to review audience discussion or continue throu…
/v1/youtube/get_video_comment_v1