{
  "name": "Scrape TikTok influencer profiles with Bright Data API to Google Sheets",
  "nodes": [
    {
      "id": "cecd9054-e1b1-4653-8523-667abb4f34de",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1160,
        -585
      ]
    },
    {
      "id": "fff3bf36-657c-41ce-a8f8-a616fa37e74e",
      "name": "Search by Profile URL",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -2480,
        -585
      ]
    },
    {
      "id": "ee105b60-53ca-4dc5-9e2c-9d585f517014",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2520,
        -660
      ],
      "parameters": {
        "width": 180,
        "height": 240,
        "content": "📝 Trigger – Start on TikTok profile form submit\n"
      }
    },
    {
      "id": "a119bb40-0f68-4dbb-ad3f-6bc9011480d3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2320,
        -660
      ],
      "parameters": {
        "width": 200,
        "height": 260,
        "content": "📤 Trigger API – Send TikTok profile to scrape"
      }
    },
    {
      "id": "7e0d239b-6a30-4286-9aeb-220565556341",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2100,
        -660
      ],
      "parameters": {
        "width": 200,
        "height": 260,
        "content": "⏳ Check Status – Is profile data ready?\n"
      }
    },
    {
      "id": "63fab444-eed4-4501-a46c-3c5f6889cfdd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1860,
        -660
      ],
      "parameters": {
        "width": 200,
        "height": 240,
        "content": "⏱️ Wait – Pause before retrying Bright Data\n"
      }
    },
    {
      "id": "841414e5-8258-4c07-83ec-ccb489061019",
      "name": "Sends profile URLs to Bright Data to trigger scraping",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2280,
        -580
      ]
    },
    {
      "id": "f1ee39f7-bd6d-4d05-bfa2-fffb66b5a025",
      "name": "Checks scraping progress from Bright Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2040,
        -585
      ]
    },
    {
      "id": "2805c806-a09f-41c9-a434-395c48ab7ab3",
      "name": "Waits 30 seconds before retrying snapshot check",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1820,
        -580
      ]
    },
    {
      "id": "45721340-9da7-4ff9-bf09-686ff1765a1b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1640,
        -680
      ],
      "parameters": {
        "width": 200,
        "height": 260,
        "content": "✅ Is Ready? – Yes: proceed, No: retry\n"
      }
    },
    {
      "id": "6786e251-2416-4dc5-94d5-5d45d4eb57c0",
      "name": "IF condition to check if Bright Data returned ready status",
      "type": "n8n-nodes-base.if",
      "position": [
        -1600,
        -585
      ]
    },
    {
      "id": "764cc1d3-0d20-4199-8172-cfb028a474ff",
      "name": "Gets TikTok influencer details from Bright Data using snapshot ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1380,
        -585
      ]
    },
    {
      "id": "ce911e6e-1e73-4d8f-a247-60bfe7ddbd09",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1420,
        -680
      ],
      "parameters": {
        "width": 200,
        "height": 260,
        "content": "📥 Get Data – Extract scraped influencer info\n"
      }
    },
    {
      "id": "e724a597-7cf9-4b4c-b1d3-f279e2e8ac93",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        -680
      ],
      "parameters": {
        "width": 200,
        "height": 260,
        "content": "📄 Save to Sheet – Write data to Google Sheet\n\n"
      }
    }
  ],
  "connections": {
    "Google Sheets": {
      "main": [
        []
      ]
    },
    "Search by Profile URL": {
      "main": [
        [
          {
            "node": "Sends profile URLs to Bright Data to trigger scraping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Checks scraping progress from Bright Data": {
      "main": [
        [
          {
            "node": "Waits 30 seconds before retrying snapshot check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Waits 30 seconds before retrying snapshot check": {
      "main": [
        [
          {
            "node": "IF condition to check if Bright Data returned ready status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sends profile URLs to Bright Data to trigger scraping": {
      "main": [
        [
          {
            "node": "Checks scraping progress from Bright Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF condition to check if Bright Data returned ready status": {
      "main": [
        [
          {
            "node": "Gets TikTok influencer details from Bright Data using snapshot ID",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Checks scraping progress from Bright Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gets TikTok influencer details from Bright Data using snapshot ID": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}