I have translated Youtube titles and descriptions into other languages. However, I am having problems with the HTTP request entries to send the translations to YouTube and cannot find any help on the subject. Anyone know the solution?
It looks like your topic is missing some important information. Could you provide the following if applicable.
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
Hey @stephan75, welcome to community.
In the request body, include the video ID and the new title and description:
json
{
"id": "YOUR_VIDEO_ID",
"snippet": {
"title": "New Title",
"description": "New Description"
}
}
Thank you Ruslan, for your help. I meant translating the title and description into other languages as well.
I have now tried the following:
{
"id": "",
"localizations": {
"fr": {
"title": "",
"description": ""
},
"de": {
"title": "",
"description": ""
},
"es": {
"title": "",
"description": ""
},
"sv": {
"title": "",
"description": ""
},
"fi": {
"title": "",
"description": ""
},
"en": {
"title": "",
"description": ""
}
}
}
But now I get the next error message.
Hey @stephan75 For this your JSON object should include “snippet”
Like this:
{
"id": "YOUR_VIDEO_ID",
"snippet": {
"title": "Default Title",
"description": "Default Description",
"defaultLanguage": "en"
},
"localizations": {
"fr": {
"title": "Titre en Français",
"description": "Description en Français"
},
"de": {
"title": "Titel auf Deutsch",
"description": "Beschreibung auf Deutsch"
},
"es": {
"title": "TĂtulo en Español",
"description": "Descripción en Español"
},
"sv": {
"title": "Titel pĂĄ Svenska",
"description": "Beskrivning pĂĄ Svenska"
},
"fi": {
"title": "Otsikko Suomeksi",
"description": "Kuvaus Suomeksi"
}
}
}
Take a look at this documentations https://developers.google.com/youtube/v3/docs/videos/update
{
"id": "YOUR_VIDEO_ID",
"snippet": {
"categoryId": 22,
"defaultLanguage": "en",
"description": "This description is in English.",
"tags": [
"new tags"
],
"title": "There is nothing to see here."
},
"status": {
"privacyStatus": "private"
},
"localizations": {
"es": {
"title": "no hay nada a ver aqui",
"description": "Esta descripcion es en español."
}
}
}
Hey @stephan75,
@Ruslan_Yanyshyn is pointing you in exactly the right direction.
He already gave you the solution. You just need to make a few adjustments to the JSON format.
Try asking ChatGPT to adjust your JSON according to the YouTube API documentation and you’ll probably get the JSON body you need.
Let us know how it goes!
Hey @solomon Thank you for your help, also to @Ruslan_Yanyshyn. It’s very frustrating right now, one error after the other. I will ask ChatGPT and let you know.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.