YouTube video comment replies by token
tikhub.x.youtube-web-v2-get-video-comment-repliesYoutube: get video comment replies (web_v2)
- Price
- $0.001/successPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-video-comment-repliesPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
need_format | booleano | Opcional | Whether to clean and format the data | true |
country_code | string | Opcional | Country code | US |
language_code | string | Opcional | Language code | zh-CN |
continuation_token | string | Obrigatório | Reply continuation token from first-level comment | |
- Parâmetros de consulta
need_formatbooleanoOpcionalWhether to clean and format the data
Exemplo:
truecountry_codestringOpcionalCountry code
Exemplo:
USlanguage_codestringOpcionalLanguage code
Exemplo:
zh-CNcontinuation_tokenstringObrigatórioReply continuation token from first-level comment
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-video-comment-replies' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-video-comment-replies",
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.x.youtube-web-v2-get-video-comment-replies", {
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.001/success, incluindo a taxa de serviço.