{
  "name": "ListMiner: websites to people and emails",
  "nodes": [
    {
      "parameters": {},
      "id": "6b1f0c1e-5a54-4a0e-9d57-0f6f3c1a0001",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "// Replace this node with your own source (Google Sheets, Airtable, a CRM),\n// or edit the list. Each item needs \"website\" and \"company_name\".\nreturn [\n  { json: { website: \"acme-dental.com\", company_name: \"Acme Dental\" } },\n  { json: { website: \"brightsmiles.co.uk\", company_name: \"Bright Smiles\" } },\n];"
      },
      "id": "6b1f0c1e-5a54-4a0e-9d57-0f6f3c1a0002",
      "name": "Websites",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.prod.cold-email.softwaredoes.com/api/v1/super-scraper",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-Key",
              "value": "YOUR_API_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ url: $json.website, company_name: $json.company_name, sources: ['LINKEDIN', 'WEBSITE_EMAILS'], titles: ['Owner', 'Founder', 'CEO'] }) }}",
        "options": {
          "timeout": 210000,
          "batching": {
            "batch": {
              "batchSize": 1,
              "batchInterval": 1000
            }
          }
        }
      },
      "id": "6b1f0c1e-5a54-4a0e-9d57-0f6f3c1a0003",
      "name": "Find people and emails",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        440,
        0
      ],
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "jsCode": "// One item per person or inbox, ready for a Sheets, Airtable or CRM node.\nconst rows = [];\nfor (const item of $input.all()) {\n  const site = item.json;\n  for (const line of site.results || []) {\n    rows.push({\n      json: {\n        website: site.url,\n        full_name: line.full_name || \"\",\n        position: line.position || \"\",\n        email: line.email || \"\",\n        email_type: line.email_type || \"\",\n        linkedin_url: line.linkedin_url || \"\",\n        found_in: (line.sources || []).join(\", \"),\n      },\n    });\n  }\n}\nreturn rows;"
      },
      "id": "6b1f0c1e-5a54-4a0e-9d57-0f6f3c1a0004",
      "name": "One row per contact",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        660,
        0
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Websites",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Websites": {
      "main": [
        [
          {
            "node": "Find people and emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find people and emails": {
      "main": [
        [
          {
            "node": "One row per contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  }
}
