{
  "name": "Save YouTube transcripts to Google Sheets",
  "nodes": [
    {
      "parameters": {
        "content": "## Save YouTube transcripts to Google Sheets\n\nEvery day, fetch the full transcript of the YouTube videos you list and append it to a Google Sheet - ready for summaries, RAG or content repurposing.\n\n### Setup (3 minutes)\n1. **Apify token** - create a free account at apify.com and copy your API token (Settings > API & Integrations).\n   In the **Get YouTube transcripts** node, create a *Header Auth* credential: name `Authorization`, value `Bearer YOUR_TOKEN`.\n2. **Google Sheets** node - connect your Google account and paste the URL of an empty sheet. Columns are created from the data automatically.\n3. Edit the JSON body of **Get YouTube transcripts** with your own inputs, then activate the workflow.\n\n**Cost:** pay per transcript; see the Actor page for the exact price. `maxTotalChargeUsd` in the body is a hard cap per run.\nActor: https://apify.com/om_kh/youtube-transcript-api",
        "height": 460,
        "width": 460
      },
      "name": "Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -540,
        -160
      ],
      "id": "9aaa3eea-f4da-4f8d-9395-8603d5b8b994"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "days",
              "daysInterval": 1
            }
          ]
        }
      },
      "name": "Every day",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "id": "86dc6a80-9240-489a-80ae-fe6f88a1be5f"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/om_kh~youtube-transcript-api/run-sync-get-dataset-items",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"videos\": [\n    \"https://www.youtube.com/watch?v=aircAruvnKk\"\n  ],\n  \"includeSegments\": false,\n  \"maxTotalChargeUsd\": 0.5\n}",
        "options": {
          "timeout": 300000
        }
      },
      "name": "Get YouTube transcripts",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        260,
        0
      ],
      "id": "94db9213-6d16-485c-bb83-fd9933dd88c6"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "url",
          "value": ""
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0"
        },
        "columns": {
          "mappingMode": "autoMapInputData",
          "value": {},
          "matchingColumns": [],
          "schema": []
        },
        "options": {}
      },
      "name": "Append to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        520,
        0
      ],
      "id": "944bd5a4-47d7-433d-93bf-d5785a2309a7"
    }
  ],
  "connections": {
    "Every day": {
      "main": [
        [
          {
            "node": "Get YouTube transcripts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get YouTube transcripts": {
      "main": [
        [
          {
            "node": "Append to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}