AutomationFlowsWeb Scraping › Social Urls

Social Urls

Social URLs. Uses executeWorkflowTrigger, @apify/n8n-nodes-apify. Event-driven trigger; 13 nodes.

Event trigger★★★★☆ complexity13 nodesExecute Workflow Trigger@Apify/N8N Nodes Apify
Web Scraping Trigger: Event Nodes: 13 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Social URLs",
  "nodes": [
    {
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "domain"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1.1,
      "position": [
        -1136,
        264
      ],
      "id": "d7289b0d-a291-4a14-95c6-0796838990de",
      "name": "When Executed by Another Workflow"
    },
    {
      "parameters": {
        "actorId": {
          "__rl": true,
          "value": "nFJndFXA5zjCTuudP",
          "mode": "list",
          "cachedResultName": "Google Search Results Scraper (apify/google-search-scraper)",
          "cachedResultUrl": "https://console.apify.com/actors/nFJndFXA5zjCTuudP/input"
        },
        "customBody": "={\n  \"queries\": \"site:crunchbase.com {{ $json.domain }}\\nsite:linkedin.com {{ $json.domain }}\\nsite:pitchbook.com {{ $json.domain }}\",\n  \"maxPagesPerQuery\": 1,\n  \"resultsPerPage\": 1,\n  \"focusOnPaidAds\": false,\n  \"searchLanguage\": \"\",\n  \"languageCode\": \"\",\n  \"forceExactMatch\": false,\n  \"wordsInTitle\": [],\n  \"wordsInText\": [],\n  \"wordsInUrl\": [],\n  \"mobileResults\": false,\n  \"includeUnfilteredResults\": false,\n  \"saveHtml\": false,\n  \"saveHtmlToKeyValueStore\": true,\n  \"includeIcons\": false\n}",
        "timeout": {},
        "authentication": "apifyOAuth2Api"
      },
      "type": "@apify/n8n-nodes-apify.apify",
      "typeVersion": 1,
      "position": [
        -912,
        264
      ],
      "id": "b64f190e-d9fa-455a-9ebf-bf22c36cc8d9",
      "name": "Run an Actor",
      "credentials": {
        "apifyOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "resource": "Datasets",
        "datasetId": "={{ $json.defaultDatasetId }}",
        "offset": {},
        "authentication": "apifyOAuth2Api"
      },
      "type": "@apify/n8n-nodes-apify.apify",
      "typeVersion": 1,
      "position": [
        -688,
        264
      ],
      "id": "5419449e-9a99-454f-a4d2-e9d761c0ef25",
      "name": "Get dataset items",
      "credentials": {
        "apifyOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "7d3c054a-db4d-447c-b540-526de1d1cfaa",
              "name": "organicResults",
              "value": "={{ $json.organicResults }}",
              "type": "array"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -464,
        264
      ],
      "id": "aecf676f-3da0-41eb-9867-d9c1d2a04f52",
      "name": "Edit Fields"
    },
    {
      "parameters": {
        "batchSize": "={{ 3 }}",
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        -240,
        264
      ],
      "id": "b74285d0-fa4e-4dcb-942e-574b7d1f2b8e",
      "name": "Loop Over Items"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.noOp",
      "name": "Replace Me",
      "typeVersion": 1,
      "position": [
        880,
        432
      ],
      "id": "1f61a72f-451a-4e93-a8d3-c5c4f4434368"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "ed779fdf-1467-4af1-899e-10d040e79a9d",
              "leftValue": "={{ $json.organicResults[0].url }}",
              "rightValue": "linkedin\\.com/company/[^/]+",
              "operator": {
                "type": "string",
                "operation": "regex"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        -16,
        264
      ],
      "id": "c9c58142-bfa3-438c-9ed3-258a333f748e",
      "name": "LinkedIn URL Extractor"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "e5430247-4cc3-4829-9b49-e54aa9a1ca92",
              "name": "linkedin_url",
              "value": "={{ $json.organicResults[0].url }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        656,
        0
      ],
      "id": "cea57a06-1402-4589-ba72-e1ef84d1a45b",
      "name": "Edit Fields1"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "c72391b8-d9cb-4f0c-ad2b-aec71115834e",
              "leftValue": "={{ $json.organicResults[0].url }}",
              "rightValue": "crunchbase\\.com/organization/[^/]+",
              "operator": {
                "type": "string",
                "operation": "regex"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        208,
        360
      ],
      "id": "ce5fa7a2-7c51-4cfd-8137-64700d58c60d",
      "name": "Crunchbase Extractor"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "e5430247-4cc3-4829-9b49-e54aa9a1ca92",
              "name": "crunchbase_url",
              "value": "={{ $json.organicResults[0].url }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        656,
        192
      ],
      "id": "517e47b0-9f46-4bc6-b5ae-1ea309ca2d40",
      "name": "Edit Fields2"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "e5430247-4cc3-4829-9b49-e54aa9a1ca92",
              "name": "pitchbook_url",
              "value": "={{ $json.organicResults[0].url }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        656,
        336
      ],
      "id": "1c96d672-35f7-4359-ac7d-bab7d90bd95d",
      "name": "Edit Fields3"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "c72391b8-d9cb-4f0c-ad2b-aec71115834e",
              "leftValue": "={{ $json.organicResults[0].url }}",
              "rightValue": "pitchbook\\.com/profiles/company/[^/]+",
              "operator": {
                "type": "string",
                "operation": "regex"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        432,
        416
      ],
      "id": "2cd5179f-7bff-4104-a0d4-006af3c24640",
      "name": "Pitchbook Extractor"
    },
    {
      "parameters": {
        "aggregate": "aggregateAllItemData",
        "options": {}
      },
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        -16,
        72
      ],
      "id": "b51c743f-80b1-4c1e-b684-c05aac400574",
      "name": "Aggregate"
    }
  ],
  "connections": {
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Run an Actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run an Actor": {
      "main": [
        [
          {
            "node": "Get dataset items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get dataset items": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "LinkedIn URL Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Me": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn URL Extractor": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Crunchbase Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crunchbase Extractor": {
      "main": [
        [
          {
            "node": "Edit Fields2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Pitchbook Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields2": {
      "main": [
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields3": {
      "main": [
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pitchbook Extractor": {
      "main": [
        [
          {
            "node": "Edit Fields3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "18a7b122-1d35-42eb-9014-36ca99909a9c",
  "id": "jbLhyNgaRHGzpnyE",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Social URLs. Uses executeWorkflowTrigger, @apify/n8n-nodes-apify. Event-driven trigger; 13 nodes.

Source: https://gist.github.com/pratik-dani/80fa8e7dbc234d6d6c7b50314ccfadca — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Notion, @Apify/N8N Nodes Apify, HTTP Request
Web Scraping

This n8n workflow collects leads from Google Maps, scrapes their websites via direct HTTP requests, and extracts valid email addresses — all while mimicking real user behavior to improve scraping reli

Form Trigger, @Apify/N8N Nodes Apify, HTTP Request +1
Web Scraping

PDF convert. Uses n8n-nodes-pdfco, httpRequest, gmail, n8n-nodes-pdfkit. Event-driven trigger; 19 nodes.

N8N Nodes Pdfco, HTTP Request, Gmail +2
Web Scraping

This n8n template demonstrates how to automatically clone and adapt competitor Facebook ads for your own product using AI. Simply provide a Facebook Ad Library URL and your product image, and the work

Form Trigger, HTTP Request, Google Drive +1
Web Scraping

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Execute Workflow Trigger, HTTP Request, Stop And Error +1