Skip to content

[Question] How to set localizations when uploading videos? #435

@AdrienGiboire

Description

@AdrienGiboire

I want to upload localizations for title and description of the video but I can't find how to do it. Am I missing something?

This CURL command uses update for simplicity of testing but we should be able to do the same thing when using insert.

curl --request PUT \
  'https://youtube.googleapis.com/youtube/v3/videos?part=snippet%2Cstatus%2Clocalizations' \
  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{"id":"HH1HIvplt2Q","snippet":{"categoryId":22,"defaultLanguage":"en","description":"This description is in English.","title":"There is nothing to see here."},"localizations":{"es":{"title":"no hay nada a ver aqui","description":"Esta descripcion es en español."}}}' \
  --compressed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions