Collect API user data and store in Google Sheets with CSV backup
Needs changesWhat this workflow does
This workflow has 7 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Fetch User Data from API (HTTP Request): calls an HTTP API
- Verify API Response Success (If): checks a condition and branches into true / false
- Transform API Data to Name and Country (Function): runs custom JavaScript (legacy Function node)
- Stop on API Failure (Stop and Error): stops the run with an error
- Append Data to Google Sheets (Google Sheets): uses Google Sheets
- Create CSV Backup File (Spreadsheet File): reads or writes a spreadsheet file (legacy node)
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Transform API Data to Name and Country: replace with Code node, mode 'Run Once for All Items'.
- Also check Spreadsheet File: Convert to File / Extract from File.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Transform API Data to Name and Country | Code node, mode 'Run Once for All Items' |
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Function
n8n-nodes-base.function - Google Sheets
n8n-nodes-base.googleSheets - Spreadsheet File
n8n-nodes-base.spreadsheetFile - Stop and Error
n8n-nodes-base.stopAndError
From the author
🧾 Overview This n8n workflow automates the process of fetching user data from an API, verifying its validity, transforming the response, and then saving it to Google Sheets for team collaboration. Additionally, it generates a CSV backup file of the same data…