{
  "name": "video-publisher",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 3
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        0,
        0
      ],
      "id": "91d2849b-c6c0-4cce-8560-0014226b7d0a",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1dVmxcPgpHk5Ko7kfCn5_sK_mtydq_qLRlMdbuLjyzOQ",
          "mode": "list",
          "cachedResultName": "shorts",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1dVmxcPgpHk5Ko7kfCn5_sK_mtydq_qLRlMdbuLjyzOQ/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sayfa1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1dVmxcPgpHk5Ko7kfCn5_sK_mtydq_qLRlMdbuLjyzOQ/edit#gid=0"
        },
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        224,
        0
      ],
      "id": "d0eb43e5-c789-4685-b715-febf68ff3d2c",
      "name": "Get row(s) in sheet",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "resource": "video",
        "operation": "upload",
        "title": "={{ $json.title }}",
        "regionCode": "TR",
        "categoryId": "=24",
        "options": {
          "description": "={{ $json.description }}\n{{ $json.hastags }}",
          "tags": "={{ $json.tags }}"
        }
      },
      "type": "n8n-nodes-base.youTube",
      "typeVersion": 1,
      "position": [
        864,
        0
      ],
      "id": "84261454-b015-4dc5-bce5-d1cfed5fc2a9",
      "name": "Upload a video",
      "credentials": {
        "youTubeOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        432,
        0
      ],
      "id": "2cae30f0-8563-4749-b13c-706a29efdbcc",
      "name": "Limit"
    },
    {
      "parameters": {
        "url": "={{ $json.link }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [
        640,
        0
      ],
      "id": "ecb7c6e1-3247-4d1b-aa1c-c7b6eb8fa63a",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "operation": "delete",
        "documentId": {
          "__rl": true,
          "value": "1dVmxcPgpHk5Ko7kfCn5_sK_mtydq_qLRlMdbuLjyzOQ",
          "mode": "list",
          "cachedResultName": "shorts",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1dVmxcPgpHk5Ko7kfCn5_sK_mtydq_qLRlMdbuLjyzOQ/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sayfa1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1dVmxcPgpHk5Ko7kfCn5_sK_mtydq_qLRlMdbuLjyzOQ/edit#gid=0"
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1072,
        0
      ],
      "id": "d61e2ad6-993e-4e5f-8600-ebee6074360e",
      "name": "Delete rows or columns from sheet",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Upload a video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload a video": {
      "main": [
        [
          {
            "node": "Delete rows or columns from sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "versionId": "8cc04c76-9684-4fa3-97f9-dbf4f6581185",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "m60K95vvcDLCIk8L",
  "tags": []
}