# Instagram Profile Scraper: Posts & Stats (`tortuga/instagram-profile-scraper`) Actor

Public Instagram profile stats (followers, following, posts, bio, links, engagement) and post/reel stats (likes, comments, views) for usernames and URLs. No login. No full post lists or comments.

- **URL**: https://apify.com/tortuga/instagram-profile-scraper.md
- **Developed by:** [Trevor Ortega](https://apify.com/tortuga) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.28 / 1,000 profiles

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Instagram Profile & Post Stats Scraper

Check public Instagram profiles and posts in bulk without logging in. Give it usernames or profile URLs and get one row per account: followers, following, exact posts count, bio, links in bio, verified and private flags, highlights, the latest 12 posts and the average likes, comments and engagement rate of the latest ~6 posts. Give it post or reel URLs and get likes, comments count, video views, caption, hashtags, date, location, owner, coauthors, tagged accounts, media URLs and the newest comments the public page shows.

It is built for **checking many accounts' public numbers**: influencer vetting, competitor and brand tracking, follower growth monitoring on a schedule, and pulling stats for post URLs you already have (campaign reporting).

**What it does not do:** it does not list all of a profile's posts, scroll comment threads, export followers lists or read hashtag feeds. Instagram shows those only to logged-in users, and this Actor never logs in, never uses account cookies and never calls Instagram's app API. It reads the same pages a logged-out visitor's browser gets.

### What data does it extract?

**Profile rows** (`recordType: "profile"`)

| Field | Description |
|---|---|
| `username`, `fullName`, `id`, `url` | Account handle, display name, Instagram user id, profile URL |
| `followersCount`, `followingCount` | Exact follower and following counts |
| `postsCount`, `postsCountExact` | Posts count; exact when the embed widget answered, otherwise Instagram's rounded figure (`32K`) |
| `biography`, `externalUrl`, `bioLinks` | Bio text, first link in bio, all bio links with their titles |
| `isVerified`, `isPrivate`, `isMemorialized`, `hasReels` | Account flags |
| `highlights`, `pronouns`, `threadsBadge`, `hasPublicStory` | Story highlight titles, pronouns, linked Threads handle, live story |
| `profilePicUrl` | Profile picture (150 px, as Instagram serves it to logged-out visitors) |
| `videoPostsCount` | Number of video posts on the account |
| `latestPosts` | The latest 12 posts shown on the profile (shortcode, URL, type, caption, date, thumbnail, owner); the latest ~6 also carry `likesCount`, `commentsCount` and exact `postedAt` |
| `recentPostsAnalyzed`, `avgLikes`, `avgComments`, `engagementRate` | Averages over the latest ~6 posts; engagement rate = (avg likes + avg comments) / followers x 100 |
| `dataSource` | `page+embed`, `page` or `embed`: which public pages answered |

**Post rows** (`recordType: "post"`)

| Field | Description |
|---|---|
| `shortcode`, `id`, `url`, `type`, `productType`, `isReel` | Post code, media id, URL, `image` / `video` / `carousel`, Instagram's product type (`feed`, `clips`) |
| `likesCount`, `likesHidden`, `commentsCount` | Like count (`null` when the owner hid it) and comment count |
| `videoViewCount`, `videoDuration` | Views and length in seconds for reels and videos |
| `caption`, `hashtags`, `mentions`, `captionIsEdited` | Caption text and the hashtags and @mentions in it |
| `postedAt` | Publication time (UTC, ISO 8601) |
| `ownerUsername`, `ownerFullName`, `ownerId`, `ownerIsVerified`, `ownerFollowersCount` | The account that posted it |
| `engagementRate` | (likes + comments) / owner followers x 100 |
| `coauthors`, `taggedUsers` | Collab partners and accounts tagged in the media |
| `location` | Location tag: id, name, latitude, longitude |
| `imageUrl`, `videoUrl`, `width`, `height`, `carouselItems` | Media URLs (they expire after a few days, as on Instagram) and carousel slides |
| `music`, `hasAudio`, `topics`, `isAiLabeled`, `accessibilityCaption` | Audio track, topic tags, AI label, alt text |
| `latestComments` | The ~12 newest comments the public page shows: text, author, time, likes |

Every row also has `input` (what you typed) and `scrapedAt`.

### How to check Instagram profile stats in bulk

1. Paste usernames (`natgeo`, `@nasa`) or profile URLs into **Usernames or profile URLs**, one per line. Hundreds are fine.
2. Optionally paste post or reel URLs into **Post or reel URLs**.
3. Click **Start**. Download the dataset as JSON, CSV or Excel, or read it through the API. The **Profiles** and **Posts and reels** views show the key numbers as tables.

For a quick follower-count sweep, turn off **Include bio, following and links**: rows then come from Instagram's embed widget over datacenter proxy, which is about ten times cheaper in platform usage and still gives followers, exact posts count and recent engagement. The widget's follower count is cached by Instagram and can lag the profile page by some hours.

### Input example

```json
{
  "usernames": ["natgeo", "@nasa", "https://www.instagram.com/nike/"],
  "postUrls": ["https://www.instagram.com/p/DeuOR-CjKE9/", "https://www.instagram.com/reel/DfAWxdIFmVB/"],
  "includeBio": true,
  "includeEngagement": true
}
```

### Output example

```json
{
  "recordType": "profile",
  "input": "nasa",
  "username": "nasa",
  "fullName": "NASA",
  "id": "528817151",
  "url": "https://www.instagram.com/nasa/",
  "biography": "Making the seemingly impossible, possible. ✨",
  "externalUrl": "https://www.nasa.gov",
  "bioLinks": [{ "url": "https://www.nasa.gov", "title": "NASA.gov Homepage" }],
  "followersCount": 104441252,
  "followingCount": 90,
  "postsCount": 4990,
  "postsCountExact": true,
  "isVerified": true,
  "isPrivate": false,
  "highlights": ["Roman", "Wallpapers", "Artemis III", "Artemis II", "MoonTunes"],
  "videoPostsCount": 529,
  "latestPosts": [
    {
      "shortcode": "DfV8zG1RUYT",
      "url": "https://www.instagram.com/p/DfV8zG1RUYT/",
      "type": "image",
      "caption": "🚨 BREAKING: Introducing X-70 Fractal, @nasa’s newest experim...",
      "postedDate": "2026-11-04",
      "postedAt": "2026-11-05T02:25:45.000Z",
      "likesCount": 115943,
      "commentsCount": 394,
      "ownerUsername": "nasaaero"
    }
  ],
  "recentPostsAnalyzed": 6,
  "avgLikes": 526058,
  "avgComments": 1457.8,
  "engagementRate": 0.5051,
  "dataSource": "page+embed",
  "scrapedAt": "2026-11-05T16:21:09.000Z"
}
```

A reel row (shortened):

```json
{
  "recordType": "post",
  "shortcode": "DfS8Xbng4MD",
  "url": "https://www.instagram.com/reel/DfS8Xbng4MD/",
  "type": "video",
  "isReel": true,
  "likesCount": 66379,
  "commentsCount": 247,
  "videoViewCount": 193561,
  "videoDuration": 10.965,
  "postedAt": "2026-11-03T22:22:51.000Z",
  "ownerUsername": "natgeo",
  "ownerFollowersCount": 268203474,
  "engagementRate": 0.0248,
  "hashtags": ["BestOfTheWorld"],
  "latestComments": [{ "text": "That’s only a small part of it", "ownerUsername": "adam_elliott_photography", "createdAt": "2026-11-05T16:08:04.000Z" }]
}
```

### Does it work without an Instagram login?

Yes, and only that way. No account, no cookies, no session ids. That is also why it cannot page through a profile's full post history or a post's full comments: Instagram serves those only to logged-in users. What a logged-out visitor sees (the profile card, the latest 12 posts, single post pages, embed widgets) is what you get.

### How many profiles can I check at once?

As many as you paste. Measured on 2026-11-05: 39 of 40 well-known accounts in 96 seconds (the 40th does not exist), with 2 temporary refusals in 45 residential requests, each retried on a fresh IP. Private accounts return their public card (counts, bio, `isPrivate: true`) but none of their own posts (collab posts owned by public accounts can still be listed). Usernames that do not exist are listed in the run's `SUMMARY` record (`notFound`) and are not charged.

### How much does it cost?

You pay per row: one price per profile and a lower one per post or reel; see the **Pricing** tab. Apify platform usage is billed on top. Measured averages per 1,000 rows (2026-11-05, 512 MB):

| Row type | Platform usage per 1,000 |
|---|---|
| Profile with bio (default): profile page over residential proxy + embed | about $1.05-1.20 (almost all residential traffic, ~0.13 MB per profile) |
| Profile with **Include bio** off: embed widget over datacenter proxy | about $0.11 |
| Post or reel: post page + embed over datacenter proxy | about $0.17 |

Instagram refuses datacenter IPs on profile pages, so those always use Apify residential proxy (US by default; pick another country in **Proxy**). Posts and embed widgets use datacenter proxy and fall back to residential only when refused.

### Monitor changes on a schedule

Turn on **Only new or changed items** and run the same input on a Schedule (save it as a task, then add a schedule in Apify Console). Each run then outputs only profiles whose followers, following or posts count changed and posts whose likes, comments or views changed, plus anything new; unchanged rows are not output and not charged. Changed rows carry `changeType: "changed"` and `previousValues` with the old numbers, so you can chart follower growth or post performance over time. Keep **Include bio** off for cheap daily follower tracking; use **Monitoring key** to keep several watches apart.

### Integrations and API

Use it from Zapier, Make, n8n, Google Sheets or your own code with the Apify API and clients (Python, JavaScript). The **API** tab has ready-made snippets; the dataset can also be exported straight to a spreadsheet.

### Is it legal to scrape Instagram?

This Actor reads only data that Instagram shows publicly to logged-out visitors: public profile cards, public posts and the comments shown on them. It does not access private accounts' posts, messages or anything behind a login. Public profiles and comments include usernames and display names; you are responsible for using the data lawfully (for example under GDPR when you store personal data) and for respecting Instagram's terms.

### Support

Missing a field or found a profile that does not parse? Open an issue in the **Issues** tab with the username or URL; it is usually answered within a day.

### Related scrapers

- [Pinterest Scraper](https://apify.com/tortuga/pinterest-scraper): Pins, Boards & Profiles
- [Facebook Ads Library Scraper](https://apify.com/tortuga/facebook-ads-library-scraper): Meta Ad Creatives & Advertisers
- [Behance Scraper](https://apify.com/tortuga/behance-scraper): Designers, Projects & Portfolios
- [Bluesky Scraper](https://apify.com/tortuga/bluesky-scraper): Posts, Profiles, Feeds & Followers
- [Quora Scraper](https://apify.com/tortuga/quora-scraper): Questions, Answers & Profiles

### Found it useful?

A ★ review on this Actor's Apify Store page helps other users find it and tells us what to improve. Issues and feature requests are welcome in the Actor's **Issues** tab.

# Actor input Schema

## `usernames` (type: `array`):

Instagram accounts to look up: usernames (natgeo or @natgeo) or profile URLs (https://www.instagram.com/natgeo/). One profile row each: followers, following, posts count, bio, links, verified/private flags, the latest 12 posts and the average likes and comments of the latest ~6. Post and reel URLs pasted here are handled as posts.

## `postUrls` (type: `array`):

Instagram post or reel URLs (https://www.instagram.com/p/<code>/ or /reel/<code>/). One row each: likes, comments count, views (reels and videos), caption, hashtags, date, location, owner, coauthors, tagged accounts, media URLs and the ~12 newest comments the public page shows.

## `includeBio` (type: `boolean`):

Load each profile's own page for bio, following count, links in bio, private/verified flags, highlights and the latest 12 posts. It goes through residential proxy (about 0.13 MB per profile, billed by Apify as usage). Turn off for cheap follower tracking: followers, exact posts count and recent engagement come from the embed widget over datacenter proxy; accounts without a widget (private, no posts) still get their page.

## `includeEngagement` (type: `boolean`):

Also load the public embed widget of each profile and post (one extra light datacenter request, no extra charge). Profiles gain the exact post count and likes, comments and dates of the latest ~6 posts with averages and an engagement rate; posts gain video view counts and the owner's follower count.

## `maxItems` (type: `integer`):

Stop after this many rows (profiles + posts). Leave empty to process every username and URL you entered.

## `onlyNewOrChanged` (type: `boolean`):

Remember what earlier runs of this input returned and output only profiles whose followers, following or posts count changed, and posts whose likes, comments or views changed (plus anything new). Use with a Schedule; unchanged rows are not charged.

## `monitoringKey` (type: `string`):

Name for this watch, so several schedules on the same input stay separate; defaults to a key derived from the input.

## `proxyConfiguration` (type: `object`):

Used for post pages and embed widgets (Apify datacenter by default). Profile pages refuse datacenter IPs, so they always go through Apify RESIDENTIAL proxy (US unless you pick a country here): about 0.13 MB of residential traffic per profile, roughly $1 per 1,000 profiles of Apify usage. Own proxy URLs are used for everything.

## Actor input object example

```json
{
  "usernames": [
    "natgeo",
    "nasa"
  ],
  "postUrls": [
    "https://www.instagram.com/p/DeuOR-CjKE9/"
  ],
  "includeBio": true,
  "includeEngagement": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "usernames": [
        "natgeo",
        "nasa"
    ],
    "postUrls": [
        "https://www.instagram.com/p/DeuOR-CjKE9/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tortuga/instagram-profile-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "usernames": [
        "natgeo",
        "nasa",
    ],
    "postUrls": ["https://www.instagram.com/p/DeuOR-CjKE9/"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tortuga/instagram-profile-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "usernames": [
    "natgeo",
    "nasa"
  ],
  "postUrls": [
    "https://www.instagram.com/p/DeuOR-CjKE9/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tortuga/instagram-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tortuga/instagram-profile-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Vjrj7QCXKKTL0c1el/builds/p2ZqXSfujGrq5dVvd/openapi.json
