{
  "name": "VidWords — Fetch YouTube Transcript",
  "nodes": [
    {
      "parameters": {},
      "id": "f1a2b3c4-0001-4a00-8000-000000000001",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [240, 300]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a0000000-0000-0000-0000-000000000001",
              "name": "videoIds",
              "type": "array",
              "value": "=[\"jNQXAC9IVRw\"]"
            }
          ]
        },
        "options": {}
      },
      "id": "f1a2b3c4-0002-4a00-8000-000000000002",
      "name": "Set Video IDs",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [460, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://vidwords.com/api/transcripts",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            { "name": "Authorization", "value": "Basic YOUR_API_TOKEN" },
            { "name": "Content-Type", "value": "application/json" }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={ \"ids\": {{ JSON.stringify($json.videoIds) }}, \"lang\": \"en\" }",
        "options": {}
      },
      "id": "f1a2b3c4-0003-4a00-8000-000000000003",
      "name": "VidWords API",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [680, 300]
    }
  ],
  "connections": {
    "Manual Trigger": { "main": [[{ "node": "Set Video IDs", "type": "main", "index": 0 }]] },
    "Set Video IDs": { "main": [[{ "node": "VidWords API", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" },
  "meta": {
    "templateCredsSetupCompleted": false,
    "description": "Replace YOUR_API_TOKEN with the token from your VidWords profile, and set the URL to your VidWords host. Run to fetch transcripts for the listed video IDs."
  }
}
