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
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
โก AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
๐ฐ AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments