# Collect API user data and store in Google Sheets with CSV: n8n workflow

> Started by an event in a connected app, and works across Google Sheets. 7 steps, 1 branch: small enough to read in one sitting and change without fear.

Source: https://millionrounds.com/workflow/collect-api-user-data-and-store-in-google-sheets-with-csv (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# Collect API user data and store in Google Sheets with CSV

Started by an event in a connected app, and works across Google Sheets. 7 steps, 1 branch: small enough to read in one sitting and change without fear.

Small

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcollect-api-user-data-and-store-in-google-sheets-with-csv)

**7 steps** Small: readable in one sitting

**1** Branch: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Logic 3 Service 3

The steps in the order they run, from what starts it.

- 1 **Start Workflow Manually** Manual trigger *Starts it*
- 2 **Fetch User Data from API** Http Request *Service*
- 3 **Verify API Response Success** If *Logic*
- 4 **Transform API Data to Name and Country** Function *Logic*
- 5 **Stop on API Failure** Stop And Error *Logic*
- 6 **Append Data to Google Sheets** Google Sheets *Service*
- 7 **Create CSV Backup File** Spreadsheet File *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 7, with 1 branch
- **Size:** Small: readable in one sitting
- **Connects to:** Google Sheets
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Not long. At 7 steps it can be read in one sitting and changed without fear.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 7 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcollect-api-user-data-and-store-in-google-sheets-with-csv)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**Audit Google Drive backup freshness with Google Sheets** 7 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/audit-google-drive-backup-freshness-with-google-sheets)
- [**Automated certificate generator with Google Sheets and Slides** 7 steps · Gmail, Google Drive](https://millionrounds.com/workflow/automated-certificate-generator-with-google-sheets-and-slide)
- [**Build lists of profiles from any platform with Airtop** 7 steps · Google Sheets](https://millionrounds.com/workflow/build-lists-of-profiles-from-any-platform-with-airtop)
- [**Collect API user data and store in Google Sheets with CSV** 7 steps · Google Sheets](https://millionrounds.com/workflow/collect-api-user-data-and-store-in-google-sheets-with-csv-2)
- [**Export Google Sheets to CSV or Excel and email files** 7 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/export-google-sheets-to-csv-or-excel-and-email-files)
- [**Instagram full profile scraper with Apify and Google Sheets** 7 steps · Google Sheets](https://millionrounds.com/workflow/instagram-full-profile-scraper-with-apify-and-google-sheets)
