{ "name": "Create a Prospect list for Commercial purposes with Google Search and Bright Data on-demand", "nodes": [ { "parameters": {}, "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ -1240, 100 ], "id": "ee23a5c0-f856-484f-a152-37f16652377f", "name": "When clicking ‘Test workflow’" }, { "parameters": { "content": "# Create a Prospecting list for Commercial purposes with Google Search and Bright Data on-demand\n\n## TODO\n- You need a valid Bright Data api key\n- Add your Bright Data credentials in nodes \"Get 10 Google Results\", \"Generate Collection with Profiles\", \"Get Snapshot Progress\" and \"Download Snapshot\"\n", "height": 560, "width": 2620 }, "type": "n8n-nodes-base.stickyNote", "position": [ -1300, -200 ], "typeVersion": 1, "id": "f06a227a-b3b7-4289-975c-25cea9963769", "name": "Sticky Note1" }, { "parameters": { "assignments": { "assignments": [ { "id": "53ee5a3b-54d2-4f31-b186-ca7045f6361f", "name": "company", "value": "Bright Data", "type": "string" }, { "id": "9d71a6ef-03d0-405a-893a-8caf242b0db1", "name": "position", "value": "Marketing", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ -1000, 100 ], "id": "c9dcc06b-2b5f-4243-b382-fca6d4c89845", "name": "Set Research Params" }, { "parameters": { "fieldToSplitOut": "link", "options": { "destinationFieldName": "url" } }, "type": "n8n-nodes-base.splitOut", "typeVersion": 1, "position": [ -340, 100 ], "id": "210d7a81-95a1-4f6d-bd90-fcc5a821404f", "name": "Extract Links" }, { "parameters": { "operation": "extractHtmlContent", "dataPropertyName": "body", "extractionValues": { "values": [ { "key": "link", "cssSelector": "a", "returnValue": "attribute", "attribute": "href", "returnArray": true } ] }, "options": { "trimValues": true, "cleanUpText": true } }, "type": "n8n-nodes-base.html", "typeVersion": 1.2, "position": [ -560, 100 ], "id": "ff97773c-a37c-43cb-82fc-458d00375157", "name": "Get Links from Body" }, { "parameters": { "zone": { "__rl": true, "mode": "list", "value": "web_unlocker1" }, "country": { "__rl": true, "mode": "list", "value": "us" }, "url": "=https://www.google.com/search?q=site%3Alinkedin.com%2Fin+{{ encodeURIComponent($json.company) }}+{{ encodeURIComponent($json.position) }}&num=10", "format": "json" }, "type": "n8n-nodes-brightdata.brightData", "typeVersion": 1, "position": [ -780, 100 ], "id": "41fc1fe0-fe7a-429a-81d2-caafa400fd6b", "name": "Get 10 Google Results", "credentials": { "brightdataApi": { "id": "jk945kIuAFAo9bcg", "name": "BrightData account" } } }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 }, "conditions": [ { "id": "f2f61f2e-2a2b-4934-a07b-a07c58d77d8b", "leftValue": "={{ $json.status }}", "rightValue": "ready", "operator": { "type": "string", "operation": "equals" } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ 720, 100 ], "id": "f84d236c-49ac-409a-b9cf-7c4e18010799", "name": "Snapshot is ready?" }, { "parameters": { "aggregate": "aggregateAllItemData", "destinationFieldName": "items", "options": {} }, "type": "n8n-nodes-base.aggregate", "typeVersion": 1, "position": [ 100, 100 ], "id": "34f0ba44-4de9-47ff-9614-72cce96a9acc", "name": "Create List with all Profiles" }, { "parameters": { "resource": "webScrapper", "operation": "triggerCollectionByUrl", "dataset_id": { "__rl": true, "value": "gd_l1viktl72bvl7bjuj0", "mode": "list", "cachedResultName": "LinkedIn people profiles" }, "urls": "={{ JSON.stringify($json.items) }}" }, "type": "n8n-nodes-brightdata.brightData", "typeVersion": 1, "position": [ 320, 100 ], "id": "c14c7472-dffd-4f70-84f2-dcaac9f12afe", "name": "Generate Collection with Profiles", "credentials": { "brightdataApi": { "id": "jk945kIuAFAo9bcg", "name": "BrightData account" } } }, { "parameters": { "resource": "webScrapper", "operation": "monitorProgressSnapshot", "snapshot_id": "={{ $json.snapshot_id }}" }, "type": "n8n-nodes-brightdata.brightData", "typeVersion": 1, "position": [ 540, 100 ], "id": "6136f571-98e4-4fac-9ab4-ebcfafa1495b", "name": "Get Snapshot Progress", "credentials": { "brightdataApi": { "id": "jk945kIuAFAo9bcg", "name": "BrightData account" } } }, { "parameters": { "resource": "webScrapper", "operation": "downloadSnapshot", "snapshot_id": "={{ $json.snapshot_id }}" }, "type": "n8n-nodes-brightdata.brightData", "typeVersion": 1, "position": [ 900, -160 ], "id": "cf0434e2-1c73-48ed-b698-cc071d1daba7", "name": "Download Snapshot", "credentials": { "brightdataApi": { "id": "jk945kIuAFAo9bcg", "name": "BrightData account" } } }, { "parameters": { "fieldToSplitOut": "items", "options": {} }, "type": "n8n-nodes-base.splitOut", "typeVersion": 1, "position": [ 1120, -160 ], "id": "be418519-91ac-4ccc-a2ad-5c31b18818ed", "name": "Extract Snapshot Profiles" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 }, "conditions": [ { "id": "7ccbfe62-09f0-44d1-aa72-c65a2d1750b2", "leftValue": "={{ $json.url }}", "rightValue": "linkedin.com/", "operator": { "type": "string", "operation": "contains" } }, { "id": "de368fe2-6559-4316-97c5-2c6bb0a72a51", "leftValue": "={{ $json.url }}", "rightValue": "https://", "operator": { "type": "string", "operation": "startsWith" } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.filter", "typeVersion": 2.2, "position": [ -140, 100 ], "id": "b6141e1a-7339-4ceb-b70d-3667fcd9bdef", "name": "Filter only LinkedIn Profiles" }, { "parameters": {}, "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ 960, 120 ], "id": "ae407f43-4724-4aa5-b529-f3f8dcfa1f0b", "name": "Wait 5 Seconds", "webhookId": "3e21e412-9567-432c-87f9-3436f6a7bec2" } ], "pinData": { "Get 10 Google Results": [ { "json": { "status_code": 200, "headers": { "accept-ch": "Sec-CH-Prefers-Color-Scheme, Downlink, RTT, Sec-CH-UA-Form-Factors, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version, Sec-CH-UA-Full-Version, Sec-CH-UA-Arch, Sec-CH-UA-Model, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version-List, Sec-CH-UA-WoW64", "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000", "cache-control": "private, max-age=0", "content-security-policy": "object-src 'none';base-uri 'self';script-src 'nonce-XsuNjJ73HnDTnG0cu_BIYQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/cdt1", "content-type": "text/html; charset=UTF-8", "cross-origin-opener-policy": "same-origin-allow-popups; report-to=\"gws\"", "date": "Thu, 22 May 2025 10:06:05 GMT", "expires": "-1", "permissions-policy": "unload=()", "report-to": "{\"group\":\"gws\",\"max_age\":2592000,\"endpoints\":[{\"url\":\"https://csp.withgoogle.com/csp/report-to/gws/cdt1\"}]}", "server": "gws", "strict-transport-security": "max-age=31536000", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0", "x-unblocker-redirected-to": "https://www.google.com/search?q=site%3Alinkedin.com%2Fin+Bright+Data+Marketing&num=10&oq=site%3Alinkedin.com%2Fin+Bright+Data+Marketing&gl=us&uule=w+CAIQICINVW5pdGVkIFN0YXRlcw&hl=en&sourceid=chrome&ie=UTF-8", "connection": "close", "transfer-encoding": "chunked" }, "body": "