A Node.js/Express web application that checks for mutual followers between 2 or more Instagram accounts by scraping their followers data.
- ✅ Check mutual followers between multiple Instagram accounts
- ✅ Works with public Instagram accounts and private accounts you follow
- Node.js (v12 or higher)
- npm or yarn
-
Clone project:
git clone https://github.com/OscarFromNZ/InstagramMutualFollowerChecker
-
Navigate into project:
cd InstagramMutualFollowerChecker/ -
Install dependencies:
npm install
-
Create a
.envfile in the root directory: (just make a file named .env)SECRET=12983y98efhisodufgsdukyfagousdyfgaosdfyaogsdgyf PORT=3000 INSTAGRAM_SESSION_ID=go_to_your_cookies_to_find_it_or_google_it
-
Start the server:
npm start
Or run directly:
node index.js
-
Open your browser and navigate to:
http://localhost:3000 -
Enter at least 2 Instagram usernames (large accounts will take forever, max you should do is like 10k)
-
Click "Find Mutual Followers" to get results
├── index.js # Entry point
├── Website.js # Express app setup
├── package.json # Dependencies
├── routes/
│ ├── homeRoutes.js # Home page route
│ └── apiRoutes.js # API endpoints
├── services/
│ └── instagramService.js # Instagram scraping logic
├── public/
│ └── styles.css # Frontend styling
└── views/
└── index.ejs # HTML template
Get mutual followers between multiple Instagram accounts.
Request:
{
"usernames": ["username1", "username2", "username3"]
}Response:
{
"success": true,
"usernames": ["username1", "username2"],
"mutualFollowers": [
{
"username": "follower_username",
"id": "user_id",
"full_name": "Follower Name",
"profile_pic_url": "https://..."
}
],
"count": 5
}Get profile information for a specific account.
Response:
{
"success": true,
"profile": {
"username": "username",
"full_name": "Full Name",
"biography": "Bio text",
"followers_count": 1000,
"following_count": 500,
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://...",
"posts_count": 100
}
}- express: Web framework
- express-session: Session management
- ejs: Template engine
- node-fetch: HTTP requests for Instagram API
- insta-api: Instagram API wrapper
- dotenv: Environment variable management
-
Public Accounts & Private Accounts you Follow: Only works with public Instagram accounts & private accounts you follow.
-
Large Follower Lists: Fetching very large follower lists (10k+) may take significant time and memory.
- Verify you follow the account
- Make sure the username is spelled correctly
- Check the username on Instagram's website first
ISC
Note: This app scrapes Instagram data. Always respect Instagram's Terms of Service and use responsibly.