Instagram Profile Searcher & Analyzer
Under maintenancePricing
Pay per usage
Instagram Profile Searcher & Analyzer
Under maintenanceFind Instagram profiles by name or username, rank matches, and analyze followers, engagement, comments, and media. Bring your own Instagram login or use publisher env credentials.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Devrecated Admin
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
19 days ago
Last modified
Categories
Features
Share
Find Instagram profiles by @username or real name, rank the best matches, then analyze followers, following, engagement, comments, likers, and media — all in one Apify Actor run.
Works from Apify Console, the Apify API, schedules, and integrations (Make, n8n, Zapier, MCP). Results land in a structured dataset you can export as JSON, CSV, or Excel.
What does Instagram Profile Searcher do?
For each username or search query, the Actor:
- Resolves exact
@handles(direct lookup) and/or searches Instagram by name - Scores candidates (username, full name, fuzzy match)
- Analyzes top profiles: bio, counts, recent-post engagement, comments, likers
- Optionally scrapes followers / following (with mutual flags) and downloads photos, carousels, and reels
Built for lead research, influencer discovery, competitor audits, and OSINT-style profile enrichment.
How to use it (quick start)
- Open this Actor in Apify Console and click Try for free / Start
- Add at least one of:
- Usernames — exact handles (e.g.
natgeo) - Search queries — real names or fuzzy text (e.g.
Jane Doe)
- Usernames — exact handles (e.g.
- (Recommended) Enter your Instagram login username and password in the input form (password is stored encrypted). Or leave them empty if the Actor owner configured a shared service account via environment variables
- Tune optional caps (posts, comments, followers, downloads)
- Run → open the Dataset tab for profile rows
Input example
{"instagramUsername": "your_scraper_account","instagramPassword": "your_password","usernames": ["natgeo"],"searchQueries": ["Jane Doe"],"maxProfilesToAnalyze": 5,"analyzeRecentPosts": 12,"includeComments": true,"includeLikers": true,"includeFollowers": true,"maxFollowers": 5000,"downloadPhotos": true,"maxPostsToDownload": 50}
Full field reference (types, defaults, ranges): see the input form tooltips or ./PARAMETERS.md in the source repo.
Instagram login (required)
Instagram private/mobile APIs need a logged-in account. Provide credentials in one of these ways:
| Method | Fields | When to use |
|---|---|---|
| Run input (bring your own) | instagramUsername, instagramPassword (secret), optional instagramSessionId | Best for Store users — each run uses your account |
| Actor env vars (publisher) | INSTAGRAM_USERNAME, INSTAGRAM_PASSWORD, … | Shared service account for the Actor owner |
Notes
- Password / session ID inputs are marked secret — Apify encrypts them at rest; the Actor reads them decrypted only during the run
- Input login overrides env vars when set
- If you use a different account than the publisher’s service account, the Actor does not write your session into the shared service key-value store
- Keep the password even after a successful login — Instagram may force re-auth
- Optional IMAP env vars can auto-submit email challenge codes for the publisher service account (see below)
Respect Instagram’s Terms of Use and local law. Prefer official Meta APIs for regulated production use. This Actor uses instagrapi (unofficial mobile flows) and may hit challenges or rate limits.
Input fields
Authentication
| Field | Required | Description |
|---|---|---|
instagramUsername | No* | Instagram account used to log in (not a profile to scrape) |
instagramPassword | No* | Password (encrypted secret input) |
instagramSessionId | No | Optional sessionid cookie instead of password |
*Required for login unless a valid session / publisher env credentials are already available.
What to scrape
| Field | Description | Default |
|---|---|---|
usernames | Exact @handles to fetch directly | — |
searchQueries | Names / fuzzy text to search | — |
maxSearchResultsPerQuery | Candidates per search query | 15 |
maxProfilesToAnalyze | Full analyses per search query | 5 |
analyzeRecentPosts | Posts sampled for engagement (0 = off) | 12 |
includeComments / maxCommentsPerPost | Comment scrape + cap | true / 100 |
includeLikers / maxLikersPerPost | Likers scrape + cap | true / 100 |
includeFollowers / maxFollowers | Follower list + cap | true / 5000 |
includeFollowing / maxFollowing | Following list + cap | true / 5000 |
downloadPhotos / maxPostsToDownload | Download media files | true / 50 |
minMatchScore | Min 0–1 score for search matches | 0.35 |
requestDelaySeconds | Delay between Instagram API calls | 1 |
Provide at least one of usernames or searchQueries.
Output (dataset)
Each dataset item is one profile (or a failed lookup row). Typical fields:
| Field | Meaning |
|---|---|
username, fullName, profileUrl | Identity |
followerCount, followingCount, isPrivate, isVerified | Public stats |
matchScore, query, inputType | How this row was found |
analysis.recentPosts[] | Sampled posts with engagement |
analysis.commenters[] / analysis.likers[] | Aggregated people from sampled posts |
followers[] / following[] | Network lists (followsBack / isMutual when both scraped) |
analysis.downloadedPhotos[] | Paths / keys for saved media |
Output example (abbreviated)
{"query": "natgeo","inputType": "username","status": "ok","username": "natgeo","fullName": "National Geographic","followerCount": 280000000,"profileUrl": "https://www.instagram.com/natgeo/","analysis": {"recentPosts": [],"commenters": [],"likers": [],"downloadedPhotos": []},"followers": [],"following": []}
Private accounts skip posts, network lists, and downloads.
Pricing
This Actor runs on Apify platform usage (compute, storage, proxies if configured). Final Store pricing depends on the monetization model set by the publisher (pay per event or pay per usage). Check the Pricing tab on this Actor’s Store page for current rates.
Tips to control cost:
- Prefer exact
usernamesover broadsearchQuerieswhen you already know the handle - Lower
maxFollowers/maxFollowing/maxPostsToDownloadfor large accounts - Set
analyzeRecentPoststo0if you only need profile metadata
API, schedules, and integrations
- API — start runs with the Apify API or official JS/Python clients; pass the same JSON input
- Schedules — re-run daily/weekly from Console to track follower growth
- Integrations — connect dataset results to webhooks, Google Sheets, Make, n8n, Zapier
- MCP / agents — discover and call this Actor from Apify’s MCP server
Publisher: service account env vars
If you own this Actor and want a shared scraper account (instead of per-run input login), set in Actor → Settings / Environment variables:
| Variable | Secret? | Purpose |
|---|---|---|
INSTAGRAM_USERNAME | no | Default scraper username |
INSTAGRAM_PASSWORD | yes | Default scraper password |
INSTAGRAM_SESSION_ID | yes | Optional instead of password |
INSTAGRAM_PROXY_URL | yes | Optional proxy |
INSTAGRAM_SESSION_KV_NAME | no | Named KV for persisted session (default instagram-profile-searcher-service-session) |
INSTAGRAM_CHALLENGE_IMAP_* | mixed | Auto-fetch email login codes |
INSTAGRAM_VERIFICATION_CODE | yes | One-shot manual code |
After a successful service-account login, session JSON is stored under INSTAGRAM_SESSION_SETTINGS in that named key-value store (publisher storage, not the end-user run store).
FAQ
Do I need my own Instagram account?
Yes for reliable runs. Use run input login, or rely on the publisher’s configured service account if they provide one.
Why did login fail / challenge appear?
Instagram may email a code or ask “Is this you?”. For publisher env accounts, configure IMAP challenge vars or approve the device in the Instagram app. For BYOA input login, complete challenges on that account and retry; use a residential proxy (INSTAGRAM_PROXY_URL / your own setup) if the IP is flagged.
Is scraping Instagram free / legal?
Apify platform usage is billed per your plan. Instagram’s terms restrict unauthorized automation — use responsibly and only for data you are allowed to collect.
Can I get results via API?
Yes. Every run writes to a dataset; use the dataset items URL from the run, or Actor.push_data consumers via the Apify API clients.
Local development
make setup # venv + deps + .env# edit .env with INSTAGRAM_* credentialsmake e2e # validate + apify run + print resultsmake web # optional local FastAPI UI
Or: copy INPUT.example.json → storage/key_value_stores/default/INPUT.json, source .env, then apify run --no-purge.
Support
Open an Issue on the Actor’s page in Apify Console, or contact the publisher from the Store profile. Feature requests (extra fields, other networks) are welcome.
License
Actor code: use under your Apify account terms. instagrapi is MIT licensed.
