Just One APIYouTubeSocial

YouTube video comments by video id

justoneapi.x.youtube-get-video-comment-v1

Retrieve first-level comments for a YouTube video with sorting, locale options, and cursor pagination.

Price
$0.01476/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
28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-video-comment-v1?cursor=0&sortBy=newest&videoId=dQw4w9WgXcQ&countryCode=US&languageCode=zh-CNPreview
Try onlineEm breveProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de consulta
cursorstringOpcionalPagination cursor returned by the previous response.
sortBystringOpcionalSort order for the comment list. Available Values: - `top`: Top comments - `newest`: Newest comments One of: top, newest.newest
videoIdstringObrigatórioThe unique identifier for a YouTube video.dQw4w9WgXcQ
countryCodestringOpcionalRegion code for response data.US
languageCodestringOpcionalLanguage preference for response data.zh-CN
  • Parâmetros de consulta
  • cursorstringOpcional

    Pagination cursor returned by the previous response.

  • sortBystringOpcional

    Sort order for the comment list. Available Values: - `top`: Top comments - `newest`: Newest comments One of: top, newest.

    Exemplo: newest

  • videoIdstringObrigatório

    The unique identifier for a YouTube video.

    Exemplo: dQw4w9WgXcQ

  • countryCodestringOpcional

    Region code for response data.

    Exemplo: US

  • languageCodestringOpcional

    Language preference for response data.

    Exemplo: zh-CN

Exemplos de código

Substitua $TOOLSWITCH_KEY pela chave criada no console.

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-video-comment-v1?cursor=0&sortBy=newest&videoId=dQw4w9WgXcQ&countryCode=US&languageCode=zh-CN' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

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.01476/success, incluindo a taxa de serviço.