Fetch Random User Data and Export to Spreadsheet/CSV
detail.loadingPreview
Fetches random user data from an API and exports it to Google Sheets and a CSV file.
About This Workflow
This workflow demonstrates how to retrieve random user data using the randomuser.me API. The fetched data is then processed and can be exported in two ways: directly to a Google Sheet or formatted and saved as a CSV file. It also includes helpful notes for understanding and customizing the workflow.
Key Features
- Fetches data from a public API (
randomuser.me). - Integrates with Google Sheets to append data.
- Converts and exports data to a CSV file.
- Provides visual guides through Sticky Notes.
- Uses a manual trigger for execution.
How To Use
- Prerequisites: Ensure you have a Google Sheets account and have authorized n8n to access it.
- Trigger: The workflow is initiated by clicking the "Execute Workflow" button.
- Data Fetching: The
HTTP Requestnode fetches random user data fromhttps://randomuser.me/api/. - Google Sheets Export:
- The output from the
HTTP Requestnode is directly fed into theGoogle Sheetsnode. - The
Google Sheetsnode is configured to append data to a specified Google Sheet. - You need to have a Google Sheets credential set up and the
documentIdandsheetNamecorrectly configured.
- The output from the
- CSV Export:
- The
Setnode processes and formats the fetched data, selecting specific fields like 'Full Name', 'Country', and 'email'. - The processed data is then passed to the
Spreadsheet Filenode, which converts it into a CSV file named 'users_spreadsheet'.
- The
- Customization:
- To use a different API, modify the
URLin theHTTP Requestnode. - To change the data exported to CSV, adjust the
valuesin theSetnode. - To modify the Google Sheets export, update the
columnsandsheetName/documentIdin theGoogle Sheetsnode. - Replace the
manualTriggerwith ascheduleTriggerfor automated execution.
- To use a different API, modify the
Apps Used
Workflow JSON
{
"id": "6e6cee9a-f969-46cb-b389-8933f7602dc9",
"name": "Fetch Random User Data and Export to Spreadsheet/CSV",
"nodes": 14,
"category": "Data Management",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 6e6cee9a-f969...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
CSV to MySQL Data Ingestion
Reads a CSV file and inserts its data into a MySQL database.
FileMaker Data Entry and Update
Workflow to create a record in FileMaker, then edit it with additional data.
Dynamically Create Airtable Tables for Webflow Form Submissions
Automatically create dedicated Airtable tables for each Webflow form and log submissions.