탐색으로 건너뛰기

Why explicitly set en-US for English-language research?

youtube.web_v2.get_video_comments defaults language_code to zh-CN, so omitting language_code runs English-language research under a zh-CN collection setting. Set language_code:"en-US" explicitly and record language_code alongside the batch.

Setting language_code explicitly

Pass language_code:"en-US" with video_id when initializing an English-language collection batch:

{"action":"youtube.web_v2.get_video_comments","params":{"video_id":"<video_id>","language_code":"en-US"}}

Save the actual returned comment text together with video_id, sort order, language_code, and collection time so reviewers can reproduce the exact request settings.

Labeling comment languages and switching batches

language_code:"en-US" is a collection setting rather than a language filter or translator:

  • Label from received text: Determine each comment’s language directly from the saved text rather than assuming every comment is English.
  • Keep mixed-language rows identifiable: Label comments combining multiple languages as mixed rather than forcing a single language tag.
  • Keep translations separate: When teammates need translations, store each translation in a separate column beside the original comment text.
  • Start a new batch on language changes: When switching language_code, start from page one in a new batch and record video_id, sort order, language_code, and collection time. For guidance on regional scope, see the country-setting FAQ.

Before running the request, inspect the data:youtube.web_v2.get_video_comments contract for free.

Back to YouTube questions.