{
  "name": "LinkedIn company data to Google Sheets every tuesday",
  "nodes": [
    {
      "parameters": {
        "content": "## LinkedIn company data to Google Sheets every tuesday\n\nEvery Tuesday, read the public LinkedIn page of each company you list: size, followers, industry, website, head office, and append the rows to a Google Sheet.\n\n### Setup (3 minutes)\n1. **Apify token** - create a free account at apify.com and copy your API token (Settings > API & Integrations).\n   In the **Get LinkedIn companies** node, create a *Header Auth* credential: name `Authorization`, value `Bearer YOUR_TOKEN`.\n2. **Google Sheets** node - connect your Google account and paste the URL of an empty sheet. Columns are created from the data automatically.\n3. Edit the JSON body of **Get LinkedIn companies** with your own inputs, then activate the workflow.\n\n**Cost:** $4 per 1,000 companies, no login. `maxTotalChargeUsd` in the body is a hard cap per run.\nActor: https://apify.com/om_kh/linkedin-company-scraper",
        "height": 460,
        "width": 460
      },
      "name": "Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -540,
        -160
      ],
      "id": "70cb61fb-856d-4e92-954f-a6dd2af59940"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [
                2
              ],
              "triggerAtHour": 8
            }
          ]
        }
      },
      "name": "Every Tuesday",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "id": "98ed412c-a155-48cb-8d3c-0c02a060957c"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/om_kh~linkedin-company-scraper/run-sync-get-dataset-items",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"companies\": [\n    \"https://www.linkedin.com/company/hubspot\",\n    \"https://www.linkedin.com/company/nvidia\"\n  ],\n  \"maxTotalChargeUsd\": 0.5\n}",
        "options": {
          "timeout": 300000
        }
      },
      "name": "Get LinkedIn companies",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        260,
        0
      ],
      "id": "375bb821-20d6-4176-828e-ff93a0d4d0ab"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "url",
          "value": ""
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0"
        },
        "columns": {
          "mappingMode": "autoMapInputData",
          "value": {},
          "matchingColumns": [],
          "schema": []
        },
        "options": {}
      },
      "name": "Append to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        520,
        0
      ],
      "id": "bcf3e37d-0444-4408-a746-99868ccd1d46"
    }
  ],
  "connections": {
    "Every Tuesday": {
      "main": [
        [
          {
            "node": "Get LinkedIn companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get LinkedIn companies": {
      "main": [
        [
          {
            "node": "Append to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}