Instagram Profile & Posts Scraper

๐Ÿ“ธ Scrape public Instagram profiles, recent posts, reels, captions, engagement counts, media URLs, and profile metadata from handles or URLs.

Data fields

FieldTypeDescription
inputstringValue exported as input.
profileUrlstringValue exported as profileUrl.
usernamestringValue exported as username.
fullNamestring | nullValue exported as fullName.
biographystring | nullValue exported as biography.
externalUrlstring | nullValue exported as externalUrl.
isVerifiedboolean | nullValue exported as isVerified.
isPrivateboolean | nullValue exported as isPrivate.

Input preview

profileUrlsOrHandlesProfile URLs or handles *
maxPostsPerProfileMaximum posts per profile
includeReelsInclude reels/videos
maxConcurrencyMaximum concurrency
maxProfilesMaximum profiles
includePostsInclude recent posts

API and agents

This actor can be run through Apify API, datasets, webhooks, schedules, and the official Apify MCP server.

How this actor works

See example inputs, outputs, API usage, and practical limits before running this actor on Apify.

Open Apify page

Scrape public Instagram profiles, recent posts, reels, captions, and engagement metrics from public handles or profile URLs.

What does Instagram Profile & Posts Scraper do?

Instagram Profile & Posts Scraper helps you collect public profile metadata and recent public media previews from Instagram profiles. It is designed for teams that need structured exports instead of manual copy and paste.

You can enter handles like nasa or profile URLs like https://www.instagram.com/nasa/. The actor returns profile rows and post rows in a clean dataset.

Who is it for?

  • ๐Ÿ“ฃ Social media marketers monitoring public creator or brand accounts.
  • ๐Ÿง‘โ€๐Ÿ’ผ Brand teams checking public profile positioning and recent campaigns.
  • ๐Ÿ“Š Analysts comparing public engagement signals across accounts.
  • ๐Ÿ›ก๏ธ Compliance teams archiving public posts for review workflows.
  • ๐Ÿ“ฐ Researchers tracking public media URLs, captions, and timestamps.

Why use this scraper?

Manual Instagram monitoring is slow and inconsistent. This actor gives you repeatable exports with stable field names. You can schedule it, connect it to datasets, or call it from the Apify API.

What data can you extract?

Category Example fields
Profile identity handle, profile URL, full name
Profile metadata bio, avatar URL, external URL
Public counts followers, following, posts
Account flags verified, private
Post identity post URL, shortcode
Post content caption, timestamp, media type
Engagement likes, comments, views when visible
Media thumbnail URL, media URL

Quick start

  1. Open the actor on Apify.
  2. Add Instagram handles such as nasa or natgeo.
  3. Keep maxPostsPerProfile low for your first run.
  4. Start the run.
  5. Export the dataset as JSON, CSV, Excel, or via API.

Input options

Profile URLs or handles

Use this when you already know the usernames. You can include or omit the @ sign.

Instagram profile URLs

Use this when your source list contains full links. The actor extracts the handle from each URL.

Maximum profiles

Controls how many unique profiles are processed. Duplicate handles and URLs are deduplicated.

Include recent posts

When enabled, the actor saves recent public post or reel preview rows returned for the profile.

Include reels/videos

Disable this option if you only want image and carousel-style posts.

Maximum posts per profile

Controls the number of recent post rows saved per profile. Keep this low for smoke tests.

Proxy configuration

Apify Proxy is enabled by default for cloud reliability because Instagram can rate-limit shared datacenter traffic. You can override the proxy configuration if your account requires a specific proxy setup.

Example input

{
  "profileUrlsOrHandles": ["nasa", "natgeo"],
  "maxProfiles": 2,
  "includePosts": true,
  "includeReels": true,
  "maxPostsPerProfile": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}

Output example

{
  "type": "profile",
  "profileUrl": "https://www.instagram.com/nasa/",
  "username": "nasa",
  "fullName": "NASA",
  "biography": "Public profile bio when visible",
  "followersCount": 90000000,
  "isVerified": true,
  "scrapedAt": "2026-07-03T00:00:00.000Z"
}
{
  "profileUrl": "https://www.instagram.com/nasa/",
  "username": "nasa",
  "postUrl": "https://www.instagram.com/p/SHORTCODE/",
  "shortCode": "SHORTCODE",
  "caption": "Caption text when visible",
  "timestamp": "2026-07-03T00:00:00.000Z",
  "likesCount": 12345,
  "commentsCount": 123,
  "type": "image",
  "thumbnailUrl": "https://...",
  "scrapedAt": "2026-07-03T00:00:00.000Z"
}

Tips for better results

  • Start with 1-2 handles before running a larger list.
  • Use public profiles only.
  • Avoid private or login-only accounts.
  • Keep post limits modest for scheduled monitoring.
  • Export CSV for spreadsheets and JSON for automation.

Scheduling workflows

Run the actor daily or weekly to monitor public account changes. Store each run in Apify datasets. Connect the dataset to downstream reporting, alerting, or archival tools.

Integrations

Google Sheets

Export dataset results to CSV or connect through the Apify API. This is useful for campaign tracking sheets.

BI dashboards

Load JSON or CSV exports into dashboards for profile and engagement trend reports.

Compliance review

Archive public captions, URLs, and timestamps for later review.

CRM enrichment

Add public profile URLs, bios, and follower counts to creator or partner records.

API usage

Node.js

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fetch_cat/instagram-profile-posts-scraper').call({
  profileUrlsOrHandles: ['nasa'],
  maxProfiles: 1,
  maxPostsPerProfile: 5
});
console.log(run.defaultDatasetId);

Python

from apify_client import ApifyClient
import os

client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('fetch_cat/instagram-profile-posts-scraper').call(run_input={
    'profileUrlsOrHandles': ['nasa'],
    'maxProfiles': 1,
    'maxPostsPerProfile': 5,
})
print(run['defaultDatasetId'])

cURL

curl -X POST "https://api.apify.com/v2/acts/fetch_cat~instagram-profile-posts-scraper/runs?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"profileUrlsOrHandles":["nasa"],"maxProfiles":1,"maxPostsPerProfile":5}'

MCP usage

Use the Apify MCP server with tools scoped to this actor:

https://mcp.apify.com/?tools=fetch_cat/instagram-profile-posts-scraper

Add it to Claude Code:

claude mcp add apify-instagram-profile-posts https://mcp.apify.com/?tools=fetch_cat/instagram-profile-posts-scraper

Claude Desktop JSON configuration:

{
  "mcpServers": {
    "apify-instagram-profile-posts": {
      "url": "https://mcp.apify.com/?tools=fetch_cat/instagram-profile-posts-scraper"
    }
  }
}

Example prompts:

  • "Run the Instagram Profile & Posts Scraper for nasa and summarize the latest captions."
  • "Export recent public post URLs for these brand handles."
  • "Compare public follower counts for this creator shortlist."

Data quality notes

Instagram may hide some fields for some accounts, regions, or request contexts. When a public field is not visible, the actor leaves it empty instead of guessing. Counts can change frequently and should be treated as point-in-time values.

Limitations

  • Public profiles only.
  • No private posts.
  • No login-only stories or highlights.
  • No direct messages.
  • Recent post previews depend on what Instagram returns publicly.

Troubleshooting

Why did a handle return no rows?

The handle may be invalid, private, blocked, renamed, unavailable in your region, or temporarily unavailable from Instagram. Try the public profile URL in a browser and lower your run limits.

Why are some engagement counts missing?

Instagram does not expose every metric for every media item in every public response. The actor saves metrics only when they are visible.

Why should I keep low limits first?

Low limits make it easier to verify output and avoid unnecessary proxy or compute usage. Increase limits once your input list is clean.

Legality

This actor is intended for public data collection. Use it responsibly and respect Instagram terms, privacy rights, and applicable laws. Do not use it to collect private, login-only, sensitive, or personal data in a way that violates rights or policies.

Common questions

Questions and answers reused from the canonical actor README.

Can I scrape private accounts?

No. This actor is public-only.

Do I need cookies?

No. V1 is designed without cookies or user login.

Can I schedule it?

Yes. Use Apify schedules for recurring monitoring.

Can I export to Excel?

Yes. Apify datasets support Excel, CSV, JSON, XML, and RSS exports.

Does it scrape comments?

No. It returns comment counts when visible, not full comment threads.