🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Apify to Google Sheets, Instagram profiles logged

Lisa Granqvist Partner Workflow Automation Expert

Copying Instagram profile details into a spreadsheet sounds simple until you’ve done it for 50 accounts, realized half the bios changed, and now your “research” is already outdated.

This is the kind of Apify Sheets logging automation that saves marketing teams hours, keeps agency owners from shipping messy lead lists, and gives founders a research system they can actually trust.

You’ll see how this n8n workflow pulls a list of usernames from Google Sheets, scrapes full public profiles through an Apify actor, logs clean rows into a second sheet, then flags each username as done.

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: Apify to Google Sheets, Instagram profiles logged

The Problem: Instagram research gets messy fast

Instagram profile research usually starts with good intentions. Then it turns into tabs everywhere, inconsistent notes, and a spreadsheet full of “close enough” data that no one wants to own. You copy follower counts that change tomorrow, paste bios with broken line breaks, and miss obvious context like category, external links, or a new name. Worse, manual work encourages shortcuts, so you stop updating the sheet and it slowly becomes a museum of old profiles. Honestly, the mental load is the killer: you can’t scale research when each profile requires attention like a tiny one-off project.

The friction compounds. Here’s where it breaks down most often.

  • Researchers spend about 5 minutes per profile just collecting the basics, and that time doubles when they need to double-check accuracy.
  • Teams end up with mismatched formats because one person pastes emojis, another strips them, and now sorting and filtering becomes unreliable.
  • It’s easy to scrape the same username twice, which clutters your dataset and makes reporting feel untrustworthy.
  • When a stakeholder asks, “Is this current?”, the honest answer is usually “not really,” because there’s no consistent refresh cycle.

The Solution: Scheduled Apify scrapes that log clean rows

This workflow turns Instagram profile research into a repeatable system. On a schedule (every few minutes, or whatever cadence you choose), n8n opens your Google Sheet and pulls a queue of Instagram usernames from a tab called Usernames. It grabs up to 20 at a time so you don’t overload your scraping or your sheet, then bundles those usernames into a batch request. Next, it calls your custom Apify actor to scrape full public profile data, which comes back as structured results instead of random copy-paste text. Finally, the workflow appends cleaned profile records into a second tab (called fullprofiles) and marks the source usernames as scraped = TRUE so they don’t get processed again.

The workflow starts with a timed trigger and a Google Sheets read. Then Apify handles the actual Instagram profile scrape in one call per batch. Google Sheets gets two writes at the end: one to log the profile rows, and one to flag the usernames as completed.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you’re tracking 200 Instagram accounts for influencer outreach. Manually, even 5 minutes per profile is about 16 hours of busywork, and that’s before anyone formats the sheet. With this workflow, you can process 20 usernames per run; if it runs every 10 minutes during a typical workday, you refresh about 900 profiles’ worth of capacity without touching a browser. Realistically, you’ll finish your 200 in an afternoon, and then you’re just keeping the dataset current.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Google Sheets for the username queue and output table
  • Apify actor to scrape public Instagram profiles
  • Apify API token (get it from your Apify account settings)

Skill level: Beginner. You’ll connect Google Sheets, paste an API token, and confirm your sheet columns match the workflow.

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

A scheduled trigger runs the workflow. You choose the cadence (every few minutes is common), which means research stays fresh without anyone remembering to “update the sheet.”

Usernames are pulled from Google Sheets. n8n reads the Usernames tab, then limits the run to 20 records so you get predictable batches and fewer surprises.

Those usernames are sent to Apify for scraping. The workflow aggregates the batch and calls the Apify actor through an HTTP request, then receives structured profile data back (names, bios, follower counts, and more depending on your actor’s output).

Clean rows are logged and the queue is updated. Results are appended to the fullprofiles sheet, and the original usernames are marked as scraped so they don’t get reprocessed next time.

You can easily modify the schedule to run hourly instead of every few minutes based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Schedule Trigger

Set the workflow to run automatically on a recurring schedule.

  1. Add and open Scheduled Automation Trigger.
  2. Under RuleInterval, set Field to minutes to match the existing schedule rule.
  3. Connect Scheduled Automation Trigger to Retrieve Usernames Sheet.

Step 2: Connect Google Sheets

Pull usernames from your spreadsheet and prepare the workflow’s Google Sheets connections.

  1. Open Retrieve Usernames Sheet and set Document to [YOUR_ID] and Sheet to Usernames (value gid=0).
  2. In Retrieve Usernames Sheet, keep the filter on scraped via FilterslookupColumn set to scraped.
  3. Credential Required: Connect your googleSheetsOAuth2Api credentials for Retrieve Usernames Sheet.
  4. Credential Required: Connect your googleSheetsOAuth2Api credentials for Append Profile Records and Flag Usernames Processed.

Tip: Use the same Google Sheets credential across all three Google Sheets nodes to avoid access mismatches.

Step 3: Set Up Processing Nodes

Limit batch size and aggregate usernames into a single payload for the API call.

  1. Open Cap Item Count and set Max Items to 20.
  2. Open Combine Usernames and ensure Fields to Aggregate includes fieldToAggregate set to username.
  3. Connect Retrieve Usernames SheetCap Item CountCombine Usernames.

⚠️ Common Pitfall: If your input sheet column is not named username, Combine Usernames will output empty data and the API call will fail.

Step 4: Configure Output and API Actions

Send usernames to the scraping API and write results back to Google Sheets.

  1. Open Run Profile Scrape API and set URL to https://api.apify.com/v2/acts/mohamedgb00714~instagram-full-profile-scraper/run-sync-get-dataset-items?token=[CONFIGURE_YOUR_TOKEN].
  2. In Run Profile Scrape API, set Send Body to true, Body Content Type to json, and JSON Body to ={ "instagramUsernames": [ {{ $json.username.map(item => `"${item}"`) }} ] } .
  3. Open Append Profile Records and set Operation to append, Document to [YOUR_ID], and Sheet to fullprofiles (value 458127000).
  4. Open Flag Usernames Processed and set Operation to update, Sheet to Usernames (value gid=0), and map Columns with scraped set to TRUE and username set to ={{ $json.username }}.
  5. Connect Combine UsernamesRun Profile Scrape API.
  6. Run Profile Scrape API outputs to both Append Profile Records and Flag Usernames Processed in parallel.

⚠️ Common Pitfall: Replace [CONFIGURE_YOUR_TOKEN] with your valid Apify token or the API will return authorization errors.

Step 5: Test and Activate Your Workflow

Validate that usernames are scraped, appended, and flagged correctly before running on schedule.

  1. Click Execute Workflow to run the flow manually from Scheduled Automation Trigger.
  2. Confirm Append Profile Records adds new rows to the fullprofiles sheet and Flag Usernames Processed marks scraped as TRUE for those usernames.
  3. If results are correct, switch the workflow to Active to enable scheduled runs.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • Google Sheets credentials can expire or need specific permissions. If things break, check the connected Google account and the n8n credential status first.
  • If your Apify actor takes longer on some batches, processing times vary. Increase the schedule interval (or add wait time) if you see partial results or empty responses getting appended.
  • Apify API tokens are easy to paste wrong, and a single missing character will cause silent failures. Re-copy the token from Apify, then confirm the HTTP Request node is using the correct header or query field.

Frequently Asked Questions

How long does it take to set up this Apify Sheets logging automation?

About 30 minutes if your sheet and Apify token are ready.

Do I need coding skills to automate Apify Sheets logging?

No. You’ll mostly connect Google Sheets and paste your Apify API token into the HTTP request node.

Is n8n free to use for this Apify Sheets logging workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Apify usage, which depends on the actor and how often you run it.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this Apify Sheets logging workflow for private profiles or different fields?

Yes, but only within what your Apify actor can legally and technically return. You can swap the fields you store by adjusting what you send in the “Run Profile Scrape API” HTTP Request and by mapping columns in “Append Profile Records.” Common customizations include adding extra output columns (like website URL), changing the batch size from 20 to a lower number, and running the schedule hourly instead of every few minutes.

Why is my Apify connection failing in this workflow?

Most of the time it’s an invalid or expired Apify API token, so regenerate it in Apify and update the HTTP Request node. It can also be a wrong actor endpoint, or the actor expects a slightly different input format than what the workflow is sending. If it fails only on bigger runs, you may be hitting rate limits or actor capacity, so reduce the batch size and slow down the schedule. Also check the last execution output in n8n; the HTTP response body usually tells you what Apify didn’t like.

How many profiles can this Apify Sheets logging automation handle?

In each scheduled run, this workflow processes up to 20 usernames, and you can scale that by running it more often or increasing the cap. On n8n Cloud, your monthly execution limit depends on your plan; if you self-host, there’s no execution cap, but your server and Apify actor throughput become the real limits.

Is this Apify Sheets logging automation better than using Zapier or Make?

Often, yes, because this workflow relies on batching, branching, and sheet updates that get expensive or awkward in Zapier and Make. n8n makes it easier to read a queue, process a batch, write results, then mark items as done in the same run. You also get the self-hosting option, which matters when you’re running frequent schedules. That said, if you only need a tiny “one username in, one row out” flow, Zapier or Make can feel simpler. Talk to an automation expert if you want help choosing.

Once this is running, your spreadsheet stops being “best effort” and starts being reliable. The workflow handles the repetitive parts, so you can spend your time making decisions from the data instead of collecting it.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal