Automate fetching dynamic CSV data from any public URL and importing it into Google Sheets. This n8n workflow uses unique keys to efficiently append or update records.
Download this n8n workflow template and start using it instantly.
Manually downloading, cleaning, and uploading large CSV files from public sources can be time-consuming and prone to human error. This specialized n8n workflow solves this challenge by providing a fully automated, resilient data pipeline. This n8n template starts with an n8n trigger, fetches the remote CSV using the HTTP Request n8n node, and then efficiently processes the data. It strategically includes steps to create a composite unique ID and filter the data, which is essential for working with large datasets to manage Google Sheets API limits. The final Google Sheets n8n node utilizes the unique ID to execute an 'append or update' operation, guaranteeing that your spreadsheet remains up-to-date without creating duplicate entries. Using this n8n workflow ensures reliable data integration for external sources.
The execution of this robust n8n workflow begins with the manual n8n trigger, 'When clicking "Execute Workflow"'.
countrycode and yearweek fields, generating a composite uniquekey. This key is vital for the upsert logic in the final step.uniquekey to match and update existing rows or append the data as new rows if no match is found, ensuring data synchronization integrity.To deploy this n8n workflow, follow these simple steps:
Document ID URL and the target Sheet Name (e.g., 'COVID-weekly') in the 'Upload to spreadsheet' n8n node match your intended destination spreadsheet. When clicking "Execute Workflow" (Manual Trigger n8n trigger): The starting point of the n8n workflow, executed manually for testing or immediate operation.
Download CSV (HTTP Request n8n node): Fetches the raw CSV data from the external data URL (https://opendata.ecdc.europa.eu/...). Configured to treat the response as a file.
Import CSV (Spreadsheet File n8n node): Parses the downloaded CSV file content. Key setting: fileFormat is csv and headerRow is enabled.
Add unique field (Set n8n node): Performs data transformation. Creates the uniquekey by concatenating fields: {{ $json.countrycode }}-{{ $json.yearweek }}. This is essential for the upsert logic in the Google Sheets n8n node.
Keep only DACH in 2023 (Filter n8n node): Optimizes the n8n workflow performance by filtering items. Filters where yearweek starts with '2023' AND countrycode is 'DE', 'AT', or 'CH'.
Upload to spreadsheet (Google Sheets n8n node): The final action n8n node. Operation is set to appendOrUpdate, utilizing the uniquekey as the matching column to prevent data duplication in the target sheet.
Use this powerful n8n workflow to read CSV files from a local filesystem and automatically upload the structured data into a PostgreSQL database. A crucial n8n template for data migration tasks.

Use this robust n8n workflow to seamlessly transfer contact data from a CSV file stored in Google Drive directly into a structured Notion database. Ideal for CRM tasks.

This advanced n8n workflow demonstrates recursive algorithms using self-referencing sub-workflows to solve the classic Towers of Hanoi puzzle. Perfect example for complex n8n automation and custom logic.

Use this high-performance n8n workflow to read local CSV files, convert the data, and bulk insert records directly into your MySQL database. Essential n8n templates for ETL tasks.

Use this powerful n8n workflow to automatically extract E.ON W1000 meter data from email XLSX attachments, transform 15-minute intervals into hourly statistics, and import them directly into Home Assistant's energy dashboard using the Spook integration. This n8n template streamlines smart home energy tracking.


Meet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.







































