YouTube video comments by video id
tikhub.youtube.video.commentsComments on a YouTube video
- Price
- $0.001/successAt provider cost
- Success rate
- 100%Last 30 days · 15,473 calls
- Latency p50
- 1.8 sp95 3.3 s
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.youtube.video.comments?video_id=dQw4w9WgXcQ&language_code=en-USPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
sort_by | string | Optional | top (default) | newest | |
video_id | string | Required | dQw4w9WgXcQ | |
need_format | boolean | Optional | ||
country_code | string | Optional | default US | |
language_code | string | Optional | default zh-CN | en-US |
continuation_token | string | Optional | pagination token from the previous response | |
- Query parameters
sort_bystringOptionaltop (default) | newest
video_idstringRequiredExample:
dQw4w9WgXcQneed_formatbooleanOptionalcountry_codestringOptionaldefault US
language_codestringOptionaldefault zh-CN
Example:
en-UScontinuation_tokenstringOptionalpagination token from the previous response
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.youtube.video.comments?video_id=dQw4w9WgXcQ&language_code=en-US' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.youtube.video.comments?video_id=dQw4w9WgXcQ&language_code=en-US",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.youtube.video.comments?video_id=dQw4w9WgXcQ&language_code=en-US", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.001/success, including the service fee.