How to upload a file to YouTube from Google Drive?

Describe the problem/error/question

I want to upload video files from google drive to youtube.
I tried with “download file” google drive node but I do not understant how to convert it as data and feed the youtube upload file node.
Perhap’s it’s not the right way but I do not understand what I get with google download file node. (need custom api call ? like create shared link or something like that then get it and provide to youtube upload ? don’t know… )

Thanks for your help.


I understood how to transmit data form google drive to youtube (with field data) bue now i have an error
I have made i mini workflow to test only my youtube upload node and have same error that follow :

AxiosError: Request failed with status code 400 at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:589:11) at IncomingMessage.emit (node:events:529:35) at IncomingMessage.emit (node:domain:489:12) at endReadableNT (node:internal/streams/readable:1400:12) at processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/Axios.js:45:41) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.httpRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:728:18) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/YouTube/YouTube.node.js:610:50) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:728:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:660:53 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1062:20

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

{
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “f0963ef5ec40638c5593491c58b78510ec61525a8661579d556ef9b1d142534e”
},
“nodes”: [
{
“parameters”: {},
“id”: “db025159-bf4a-448d-807a-e9cfd27e57f2”,
“name”: “When clicking "Test workflow"”,
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
460,
280
]
},
{
“parameters”: {
“url”: “https://lartistecrypto.com/wp-content/uploads/2024/04/blob-103-meditation-ichi.mp4”,
“options”: {}
},
“id”: “dbb21937-2fc9-49d6-a2ba-e54243c7e064”,
“name”: “HTTP Request”,
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
640,
280
]
},
{
“parameters”: {
“resource”: “video”,
“operation”: “upload”,
“title”: “Test N8N”,
“regionCode”: “FR”,
“options”: {}
},
“id”: “08b75fcc-442d-4338-a125-8b37b65fba48”,
“name”: “YouTube”,
“type”: “n8n-nodes-base.youTube”,
“typeVersion”: 1,
“position”: [
820,
280
],
“credentials”: {
“youTubeOAuth2Api”: {
“id”: “Sk34CIlqmwjgjPG5”,
“name”: “YouTube account”
}
}
}
],
“connections”: {
“When clicking "Test workflow"”: {
“main”: [
[
{
“node”: “HTTP Request”,
“type”: “main”,
“index”: 0
}
]
]
},
“HTTP Request”: {
“main”: [
[
{
“node”: “YouTube”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {}
}

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.36.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: linux

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:
1 Like
  • n8n version: 1.36.2
  • **Database (default: SQLite):**sqlite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**own, main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: linux

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.