Instagram Profile & Posts Scraper avatar
Instagram Profile & Posts Scraper

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Instagram Profile & Posts Scraper

Instagram Profile & Posts Scraper

Scrape Instagram profiles and their recent posts. Get follower counts, engagement metrics, and detailed post data. Profile scraping (followers, following, bio, etc.). Recent posts with engagement metrics. Supports reels and regular posts. No login required (public profiles only).

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

John Rippy

John Rippy

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

10 hours ago

Last modified

Share

Web Scraping

This actor extracts data from websites. It handles JavaScript rendering, pagination, and anti-bot measures automatically.

Note: Always respect the website's terms of service and robots.txt.


Web Scraping

This actor extracts data from websites. It handles JavaScript rendering, pagination, and anti-bot measures automatically.

Note: Always respect the website's terms of service and robots.txt.


Scrape Instagram profiles and posts without per-result fees. Extract profile metrics, engagement data, and recent posts using browser automation with Camoufox anti-detection.

Key Features

  • Profile Metrics - Followers, following, posts count, verification status
  • Bio & Links - Biography, external URL, business category
  • Recent Posts - Up to 50 posts per profile with engagement data
  • Reels Support - Scrape both regular posts and reels
  • Camoufox Anti-Detection - Built-in browser fingerprint evasion
  • Firecrawl Option - API-based scraping for enhanced reliability
  • AI Sentiment Analysis - Analyze caption sentiment with 5 AI providers
  • Webhook Support - Send results to Zapier, Make, n8n

Quick Start - Real Scraping

{
"usernames": ["nike", "adidas"],
"maxPosts": 12,
"includeReels": true,
"demoMode": false
}

Important: Set demoMode: false to scrape real Instagram data.

Input Parameters

Core Parameters

ParameterTypeDefaultDescription
usernamesarray-Instagram usernames to scrape (without @)
maxPostsnumber12Maximum posts per profile (1-50)
includeReelsbooleantrueInclude reels in scraped posts
demoModebooleanfalseGenerate sample data for testing

Advanced Options

ParameterTypeDefaultDescription
useFirecrawlbooleanfalseUse Firecrawl API for scraping
firecrawlApiKeystring-Your Firecrawl API key
proxyobject-Proxy configuration for avoiding blocks
webhookUrlstring-URL to POST results when complete

AI Sentiment Analysis

ParameterTypeDefaultDescription
enableSentimentAnalysisbooleanfalseEnable AI sentiment analysis
aiProviderstring"none"AI provider: openai, anthropic, google, mistral, cohere
aiApiKeystring-Your AI provider API key
aiModelstring-Custom model override (optional)

Usage Examples

Example 1: Scrape Multiple Profiles

{
"usernames": ["nike", "adidas", "puma", "reebok"],
"maxPosts": 20,
"includeReels": true,
"demoMode": false
}

Example 2: With Apify Proxy

{
"usernames": ["cocacola"],
"maxPosts": 12,
"proxy": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
},
"demoMode": false
}

Example 3: Demo Mode for Testing

{
"usernames": ["demo"],
"demoMode": true
}

Returns realistic sample data instantly without scraping.

Example 4: With Firecrawl API

{
"usernames": ["targetbrand"],
"useFirecrawl": true,
"firecrawlApiKey": "fc-your-api-key",
"demoMode": false
}

Example 5: With AI Sentiment Analysis

{
"usernames": ["nike"],
"maxPosts": 20,
"enableSentimentAnalysis": true,
"aiProvider": "openai",
"aiApiKey": "sk-your-api-key",
"demoMode": false
}

Output Format

Profile Data

{
"username": "nike",
"fullName": "Nike",
"biography": "Just Do It.",
"profilePicUrl": "https://...",
"followersCount": 305000000,
"followingCount": 150,
"postsCount": 1234,
"isVerified": true,
"isBusinessAccount": true,
"businessCategory": "Product/Service",
"externalUrl": "https://nike.com",
"latestPosts": [...],
"scrapedAt": "2026-01-22T10:00:00.000Z"
}

Post Data

{
"id": "ABC123",
"shortcode": "ABC123",
"url": "https://instagram.com/p/ABC123",
"type": "image",
"caption": "Post caption with #hashtags...",
"displayUrl": "https://...",
"videoUrl": null,
"likesCount": 500000,
"commentsCount": 5000,
"timestamp": "2026-01-20T15:30:00Z",
"isVideo": false,
"sentiment": {
"score": 0.85,
"label": "positive",
"confidence": 0.92,
"summary": "Upbeat promotional content",
"tone": "inspiring"
}
}

AI Sentiment Analysis

Enable AI-powered sentiment analysis to understand the tone and emotional appeal of Instagram captions. Supports multiple providers:

ProviderModelBest For
OpenAIGPT-4o-miniFast, affordable analysis
AnthropicClaude HaikuNuanced understanding
GoogleGemini FlashCost-effective at scale
MistralMistral SmallEuropean data residency
CohereCommand-REnterprise deployments

Each post's caption is analyzed and returns:

  • score: -1 to 1 (negative to positive)
  • label: negative, neutral, or positive
  • confidence: 0 to 1
  • summary: Brief description of content tone
  • tone: Emotional tone (inspiring, humorous, informative, etc.)

Anti-Detection (Camoufox)

This actor uses Camoufox for anti-detection:

  • Browser Fingerprinting - C++ level fingerprint evasion
  • Human-like Behavior - Natural scrolling and navigation
  • Bot Protection Bypass - Handles Cloudflare and similar challenges
  • Stealth Mode - Blocks unnecessary resource loading

Camoufox is enabled by default when scraping real profiles.

Firecrawl Integration

Firecrawl provides an alternative scraping method:

  • API-based scraping (no browser needed)
  • Built-in proxy rotation
  • Automatic retries
  • More consistent results

Enable with useFirecrawl: true and provide your API key.

Pricing

This actor uses pay-per-event billing:

EventDescriptionPrice
profile_scrapedPer profile scraped$0.02
post_scrapedPer post scraped$0.005

Cost Examples:

  • 1 profile with 12 posts: $0.02 + (12 x $0.005) = $0.08
  • 10 profiles with 20 posts each: (10 x $0.02) + (200 x $0.005) = $1.20
  • 50 profiles with 12 posts each: (50 x $0.02) + (600 x $0.005) = $4.00

Use Cases

  • Influencer Research - Analyze engagement rates and content strategy
  • Competitor Analysis - Monitor competitor Instagram activity
  • Content Inspiration - Find viral posts and trending formats
  • Brand Monitoring - Track brand mentions and tags
  • Agency Reporting - Generate client Instagram reports
  • Market Research - Understand industry trends

Troubleshooting

Profile not found

  • Check the username is spelled correctly
  • Ensure the profile is public (private profiles cannot be scraped)
  • Try with proxy enabled

Getting blocked

  • Enable Apify residential proxy
  • Reduce number of profiles per run
  • Add delays between runs
  • Try Firecrawl mode

No posts returned

  • Profile may have no public posts
  • Try increasing maxPosts value
  • Check if profile exists

Limitations

  • Only public profiles can be scraped
  • Instagram may rate limit or block requests
  • Use residential proxies for best results
  • Respect Instagram's terms of service

Built by John Rippy | Actor Arsenal