{ "id": "aVienX696oMCH1DR", "meta": { "instanceId": "workflow-e9347ced", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:43.683394", "updatedAt": "2025-09-29T07:07:43.683445", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "name": "Tiktok Downloader", "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "nodes": [ { "id": "4dc30078-c7df-4bcb-91ed-953cd6da4a13", "name": "When clicking ‘Test workflow’", "type": "n8n-nodes-base.manualTrigger", "position": [ -280, 20 ], "parameters": {}, "typeVersion": 1, "notes": "This manualTrigger node performs automated tasks as part of the workflow." }, { "id": "5598aa10-f667-4023-b9de-fe07e86badec", "name": "Get TikTok Video Page Data", "type": "n8n-nodes-base.httpRequest", "position": [ 40, 20 ], "parameters": { "url": "{{ $env.WEBHOOK_URL }}", "options": { "response": { "response": { "fullResponse": true, "responseFormat": "text" } } }, "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/91.0.4472.124" } ] } }, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow." }, { "id": "734a5304-f67f-4ace-a1da-0d268664452c", "name": "Scrape raw video URL", "type": "n8n-nodes-base.code", "position": [ 480, 20 ], "parameters": { "jsCode": "const html = $input.first().json.data;\nconst headers = $input.first().json.headers || {};\nconst cookies = headers['set-cookie'] || [];\n\nif (!html) {\n throw new Error(\"HTML body is undefined. Check the previous node's output.\");\n}\nconst regex = /