Instagram Full Profile Scraper with Apify and Google Sheets

๐Ÿ“ธ Instagram Full Profile Scraper with Apify and Google Sheets

This n8n workflow automates the process of scraping full Instagram profiles using a custom Apify actor, and logs the results into a Google Sheet. It is designed to run at scheduled intervals and process a list of usernames by calling the API, appending the results, and marking them as processed.

๐Ÿš€ Features

โฑ Scheduled Execution โ€“ Runs automatically every few minutes. ๐Ÿ“„ Google Sheets Integration โ€“ Reads a list of Instagram usernames and updates the same sheet. ๐Ÿง  Apify Actor โ€“ Fetches full public Instagram profile data. ๐Ÿงฎ Aggregation โ€“ Batches usernames for bulk scraping. โœ๏ธ Data Logging โ€“ Appends scraped data to a second sheet. โœ… Tracking โ€“ Marks usernames as processed once scraped.

๐Ÿ“ Workflow Structure

graph TD; ScheduleTrigger --> GetUsernames; GetUsernames --> LimitItems; LimitItems --> AggregateUsernames; AggregateUsernames --> CallApifyActor; CallApifyActor --> AppendToSheet; CallApifyActor --> MarkAsScraped;

๐Ÿ›  Setup

Google Sheet

Create a Google Sheet with:

Sheet 1 named Usernames (GID: 0) Columns: username, scraped

Sheet 2 named fullprofiles (GID: 458127000)

Sample sheet: ๐Ÿ”— Instagram Profile Sheet

n8n Configuration

Import this workflow into your n8n instance. Set up your Google Sheets credentials (googleSheetsOAuth2Api). Replace apify_api_your token in the HTTP Request node with your Apify API token.

๐Ÿ“ฆ Required Credentials

Google Sheets OAuth2** โ€“ For reading and writing sheet data. Apify API Token** โ€“ To call the custom actor for profile scraping.

๐Ÿ“Š Sheets Used

| Sheet Name | Purpose | | -------------- | -------------------------------- | | Usernames | Source of usernames to scrape | | fullprofiles | Destination of full profile data |

๐Ÿ“Œ Apify Actor Info

> Instagram Full Profile Scraper > This actor fetches extended profile information from public Instagram profiles.

๐Ÿ”— View on Apify

๐Ÿ” Workflow Nodes Overview

| Node | Purpose | | ------------------------ | ----------------------------------------------------------------- | | Schedule Trigger | Triggers the workflow periodically. | | Get Usernames | Reads usernames from the Usernames sheet. | | Limit | Limits processing to 20 usernames per run. | | Aggregate | Groups usernames into a batch for the API call. | | Call Apify Actor | Sends the usernames to the Apify actor and receives profile data. | | Append Full Profiles | Appends the scraped data to the fullprofiles sheet. | | Mark Username as Scraped | Marks the processed usernames as scraped = TRUE. | | Sticky Note | Provides a reference link to the Apify actor used. |

๐Ÿ“Œ Example Sheet Structure

Usernames Sheet

| username | scraped | | ------------ | ------- | | exampleuser1 | | | exampleuser2 | TRUE |

fullprofiles Sheet

| username | full_name | biography | follower_count | ... | | -------- | ---------- | --------- | --------------- | --- |

๐Ÿ” Security & Notes

This workflow does not bypass any Instagram privacy restrictions. It works only with public Instagram profiles. You are responsible for ensuring that scraping complies with Instagramโ€™s terms of service and any applicable laws.

๐Ÿ“ฌ Support

For any issues, feel free to reach out: ๐Ÿ‘ค @mohamedgb00714 ๐Ÿ“ง mohamedgb00714@gmail.com

0
Downloads
0
Views
9.34
Quality Score
beginner
Complexity
Author:Msaid Mohamed el hadi(View Original โ†’)
Created:8/13/2025
Updated:8/25/2025

๐Ÿ”’ Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments