Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AdrienGiboire opened this issue Dec 12, 2024 · 0 comments
Open

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

AdrienGiboire opened this issue Dec 12, 2024 · 0 comments

Comments

@AdrienGiboire
Copy link

AdrienGiboire commented Dec 12, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant