AutomationFlowsWeb Scraping › Daily Stock Data Batch Collection

Daily Stock Data Batch Collection

Original n8n title: Wf-2: Batch Data Collection

WF-2: Batch Data Collection. Uses httpRequest. Scheduled trigger; 5 nodes.

Cron / scheduled trigger★★★★☆ complexity5 nodesHTTP Request
Web Scraping Trigger: Cron / scheduled Nodes: 5 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": "WF-2: Batch Data Collection",
  "nodes": [
    {
      "id": "trigger",
      "name": "Daily Market Close",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        250,
        300
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 21 * * 1-5"
            }
          ]
        }
      }
    },
    {
      "id": "get_symbols",
      "name": "Get Graph Stats",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        450,
        300
      ],
      "parameters": {
        "method": "POST",
        "url": "http://data-api:8000/mcp/call/get_graph_stats",
        "body": {}
      }
    },
    {
      "id": "extract_symbols",
      "name": "Extract Symbols",
      "type": "n8n-nodes-base.function",
      "position": [
        650,
        300
      ],
      "parameters": {
        "functionCode": "// Get all companies from graph\nconst stats = $input.all()[0].json;\nconst symbols = stats.companies || ['NVDA', 'AAPL', 'MSFT', 'AMD', 'INTC'];\n\n// Split into batches of 10\nconst batches = [];\nfor (let i = 0; i < symbols.length; i += 10) {\n  batches.push(symbols.slice(i, i + 10));\n}\n\nreturn batches.map((batch, idx) => ({\n  json: {\n    symbols: batch,\n    batch_index: idx,\n    total_batches: batches.length\n  }\n}));"
      }
    },
    {
      "id": "batch_collect",
      "name": "Batch Collect Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        850,
        300
      ],
      "parameters": {
        "method": "POST",
        "url": "http://data-api:8000/mcp/call/batch_collect",
        "body": {
          "symbols": "={{ $json.symbols }}",
          "market": "us",
          "include_profile": true,
          "include_price": true,
          "price_start": "={{ new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString().split('T')[0] }}",
          "price_end": "={{ new Date().toISOString().split('T')[0] }}"
        },
        "options": {
          "timeout": 120000
        }
      }
    },
    {
      "id": "save_prices",
      "name": "Save Prices",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1050,
        300
      ],
      "parameters": {
        "method": "POST",
        "url": "http://data-api:8000/mcp/call/save_price_batch",
        "body": {
          "ticker": "={{ $json.results[0].symbol }}",
          "market": "us",
          "prices": "={{ $json.results[0].prices }}"
        }
      }
    }
  ],
  "connections": {
    "Daily Market Close": {
      "main": [
        [
          {
            "node": "Get Graph Stats",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Graph Stats": {
      "main": [
        [
          {
            "node": "Extract Symbols",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Symbols": {
      "main": [
        [
          {
            "node": "Batch Collect Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Batch Collect Data": {
      "main": [
        [
          {
            "node": "Save Prices",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [
    "collection",
    "data",
    "scheduled"
  ]
}
Pro

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

About this workflow

WF-2: Batch Data Collection. Uses httpRequest. Scheduled trigger; 5 nodes.

Source: https://github.com/123qsa/supply-chain-kg/blob/main/n8n-workflows/wf-2-batch-collect.json — 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

Birthday Automation - Production (Fixed). Uses stopAndError, httpRequest, emailSend, bannerbear. Scheduled trigger; 86 nodes.

Stop And Error, HTTP Request, Email Send +1
Web Scraping

This template runs two scheduled workflows to govern Microsoft Entra ID (Azure AD) guest accounts by detecting stale users via Microsoft Graph, staging deletions in SharePoint with a 72-hour window, n

Microsoft SharePoint, Microsoft Teams, Microsoft Entra +1
Web Scraping

Jira-Allure-Auto-Qa. Uses httpRequest, jira. Scheduled trigger; 68 nodes.

HTTP Request, Jira
Web Scraping

Spotify-Sync-Surrealdb-V1. Uses httpRequest, n8n-nodes-surrealdb, spotify. Scheduled trigger; 62 nodes.

HTTP Request, N8N Nodes Surrealdb, Spotify
Web Scraping

As n8n instances scale, teams often lose track of sub-workflows—who uses them, where they are referenced, and whether they can be safely updated. This leads to inefficiencies like unnecessary copies o

HTTP Request, n8n, N8N Trigger +1