# Instagram Engagement Rate & Followers Scraper (no login) (`leadharbor/instagram-profile-engagement-scraper`) Actor

Instagram engagement rate, full follower count and the 6 latest posts with likes and comments, by username. Average and median likes and days since the last post are computed for you. It does not return bio, links or email. Plain HTTP, no login. Not affiliated with Instagram or Meta.

- **URL**: https://apify.com/leadharbor/instagram-profile-engagement-scraper.md
- **Developed by:** [Mohammed Samaan](https://apify.com/leadharbor) (community)
- **Categories:** Social media, Marketing, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 profile row delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Engagement Rate and Followers Scraper: profile stats by username

Give this Actor Instagram usernames. For every public profile you get one row with the **full follower count** (the whole number, not "104M"), post count, verified flag, the **6 latest posts** with likes and comments, and **engagement numbers computed for you**: engagement rate, average and median likes, average comments, posts per week and days since the last post.

It reads the public profile embed page that Instagram serves to any website. One plain HTTP request per profile. No login, no cookies, no browser. Not affiliated with Instagram or Meta.

![Sample output: engagement rate for six public Instagram accounts from one real run](https://api.apify.com/v2/key-value-stores/ETfrhQo14MUgBgWeP/records/ig-sample-output.png?signature=1nYwkU7j7hnC35uOTVzj8)

### What you get

- **Profile numbers.** `followers` (the whole number, not rounded), `postsCount`, `videoPostsCount`, `verified`, `fullName`, `userId`, `profilePicUrl`, `hasPublicStory`.
- **Engagement, already calculated.** `engagementRatePct`, `avgLikes`, `medianLikes`, `avgComments`, `postsPerWeek`, `daysSinceLastPost`, `lastPostAt`, `videoSharePct`. `postsPerWeek` is empty when the posts on the embed were all published within one day: that was the case for 18 of the 95 profile rows in our real run (very active news, sports and media accounts).
- **The latest posts.** For each: link, type (image, video, carousel), time, likes, comments, caption, hashtags, mentions, pinned flag (Instagram's logged-out embed marked none of the 570 posts in our real run as pinned, so it is `false` in practice), paid-partnership flag, location name, co-authors.
- **Error rows.** A username Instagram does not show comes back as a free row with `rowType: "error"` and a plain message.

Typical uses: check an influencer before a campaign, track competitors' follower counts and posting pace, enrich a lead list with Instagram reach, give an AI agent a quick "how big and how active is this account" answer.

![What you get and the limits of the Instagram engagement scraper](https://api.apify.com/v2/key-value-stores/ETfrhQo14MUgBgWeP/records/ig-what-you-get.png?signature=Fi8C2NhPBiyh1BoGioDl)

### How the engagement rate is calculated

`engagementRatePct = (average likes + average comments) / followers x 100`, three decimals.

- The averages are taken over the posts on Instagram's public embed, which shows the **latest 6 posts**. `postsAnalyzed` tells you how many were used.
- **The embed lists the latest posts, newest first.** Instagram's logged-out embed did not mark any post as pinned in our real run (0 of 570 posts), so the Actor cannot tell you which posts are pinned and does not filter them. If Instagram ever starts marking posts as pinned, those posts are left out of the numbers and `pinnedPostsExcluded` tells you how many.
- Posts that **hide their like count** are left out of the like numbers, the comment average and the rate, so all of them describe the same posts. `likesHiddenPosts` tells you how many.
- `medianLikes` is there because one viral post can pull the average up.
- `postsPerWeek = (posts - 1) / weeks between the oldest and the newest analysed post`. It is empty (`null`) when those posts were all published within one day, and when there are fewer than 2 posts.

Six posts is a small sample. Treat the rate as a quick read, not as an audit of the account.

### Example

Input:

```json
{
  "usernames": ["nasa", "@natgeo", "https://www.instagram.com/nike/"],
  "includePosts": true
}
```

One output row (real values read on 22 November 2026; `latestPosts` shortened to one post here):

```json
{
  "rowType": "profile",
  "username": "nasa",
  "requestedUsername": "nasa",
  "profileUrl": "https://www.instagram.com/nasa/",
  "fullName": "NASA",
  "verified": true,
  "followers": 104265927,
  "postsCount": 5018,
  "videoPostsCount": 529,
  "userId": "528817151",
  "hasPublicStory": false,
  "pronouns": [],
  "profilePicUrl": "https://scontent-iad3-2.cdninstagram.com/...",
  "postsAnalyzed": 6,
  "pinnedPostsExcluded": 0,
  "likesHiddenPosts": 0,
  "avgLikes": 224587,
  "medianLikes": 198710,
  "avgComments": 988,
  "engagementRatePct": 0.216,
  "lastPostAt": "2026-11-20T18:11:14.000Z",
  "daysSinceLastPost": 1,
  "postsPerWeek": 5.09,
  "videoSharePct": 33,
  "latestPosts": [
    {
      "shortcode": "Df-NlR0PjmN",
      "url": "https://www.instagram.com/p/Df-NlR0PjmN/",
      "type": "image",
      "takenAt": "2026-11-20T18:11:14.000Z",
      "likes": 531282,
      "comments": 1598,
      "caption": "No such thing as “too much glitter” ✨ ...",
      "hashtags": ["NASA", "Stars", "Universe"],
      "mentions": [],
      "isPinned": false,
      "isPaidPartnership": false,
      "locationName": null,
      "coauthors": [],
      "imageUrl": "https://scontent-iad3-2.cdninstagram.com/..."
    }
  ],
  "scrapedAt": "2026-11-22T08:00:00.000Z"
}
```

### Input

| Field | What it does |
|---|---|
| `usernames` | Usernames (`nasa`, `@nasa`) or profile links, up to 5,000 per run. Required. Capital letters are fine: usernames are read as lowercase, so `NASA` and `nasa` are one profile. |
| `includePosts` | On (default): each row has `latestPosts`. Off: only the profile and engagement numbers, for small rows. The engagement numbers are the same either way. |

The same username twice (in any capitalisation) is read once. Post, reel and story links are not accepted.

### What this Actor does not return

This is a stats and engagement tool, not a full profile scraper. Instagram's logged-out embed does not carry these, and the Actor never logs in to get them:

- **Biography, following count, website link, category, email or phone.**
- **More than the 6 latest posts**, comments text, stories, highlights, reels tab, tagged posts.
- **Follower or following lists.**
- **View counts of videos.**
- **Profiles that do not allow embeds.** Some real accounts return Instagram's "broken embed" page. In our real run on 22 November 2026 (run S3VtoiRthmjRR7DA3), 5 of 100 large public accounts did. A missing username, a private account and an account with embeds turned off look the same, so all three get the free `unavailable` row.

If you need those fields, use an Actor that works through Instagram's logged-in or proxied routes; they cost more per profile.

### Checked against the leader

On 22 November 2026 we ran apify/instagram-profile-scraper and this Actor on the same 20 large accounts at the same time (leader run on Apify; this Actor from a test machine, because it was not yet on the platform).

| | Result |
|---|---|
| Profiles returned | 20 of 20 by both |
| Follower count | within 0.1% of the leader's on 20 of 20 |
| Our 120 posts found in the leader's post list | 120 of 120 |
| Like count on image and carousel posts | within 2% on 60 of 60 |
| Like count on video posts | within 2% on 54 of 60. The other 6 were lower in the embed: 2 by 2% to 6%, and 4 videos of one account by 27% to 81% |
| Comment count | within 5% on 116 of 120 |
| Fields the leader has and we do not | biography, following count, website links, business category, private flag, 12 posts instead of 6, video and image file links |
| Fields we have and the leader does not | engagement rate, average and median likes, average comments, posts per week, days since the last post, video share |

So for accounts that post mostly videos, treat `engagementRatePct` as a lower bound.

### Error rows (always free)

| `errorKind` | Meaning |
|---|---|
| `unavailable` | Instagram shows no public embed for this username: it does not exist, is private, or does not allow embeds |
| `blocked` | Instagram refused this address: HTTP 429 (too many requests), its login page (as a redirect or as the page itself), or HTTP 401 or 403. A 429 or a login page is tried up to 3 times; a 401 or 403 is counted at once. |
| `request_failed` | Network error, server error or an unexpected page on all 3 tries |
| `invalid_input` | The entry is not a username or a profile link |

### Pricing

Pay per event, one event: **`profile`**, charged for each profile row delivered.

| Apify plan | Price per profile | Per 1,000 profiles |
|---|---|---|
| Free | $0.0015 | $1.50 |
| Starter (Bronze) | $0.0012 | $1.20 |
| Scale (Silver) | $0.0011 | $1.10 |
| Business and higher (Gold, Platinum, Diamond) | $0.0010 | $1.00 |

No start fee. Error rows and duplicates cost nothing. The live price is always the one on the Pricing tab. Use the run option **Max total charge** to cap a run; the Actor stops when the cap is reached.

### Use it from an AI agent or MCP

- **Apify MCP server:** add `leadharbor/instagram-profile-engagement-scraper` as a tool, or let the agent find it with `search-actors` and run it with `call-actor`. Minimal input: `{"usernames": ["nasa"], "includePosts": false}`.
- **Smaller answers for a model:** `includePosts: false` returns 25 fields per profile and no post list.
- **API:** `POST https://api.apify.com/v2/acts/leadharbor~instagram-profile-engagement-scraper/run-sync-get-dataset-items` with the input as JSON body returns the rows in one call.

### How it works

1. For each username the Actor requests the public embed page of that username on Instagram, the page Instagram provides for embedding a profile on other websites.
2. It reads the profile data inside that page and computes the engagement numbers.
3. Three profiles are read at a time, with a short pause between groups. Profile rows follow input order; rows for invalid entries are written first.
4. Rate limits, server errors and network errors are tried up to 3 times with a pause.
5. If Instagram refuses 10 profiles in a row (429, 401, 403 or its login page), the run stops and says how many were not read, instead of sending more requests from a refused address.
6. If the charge call to Apify itself fails, the run stops there, keeps the rows already delivered, does not deliver or charge the row it was about to charge for, and says so in the run's status message.

Requests go from Apify's servers with no proxy. No cookie is stored or sent.

### Limits

- **Six posts.** All engagement numbers rest on the latest 6 posts Instagram shows.
- **Image and picture links expire** after some days (they are Instagram's signed links). Download what you need soon after the run.
- **Instagram can change or close the embed page without notice.** A page without a follower count or a post list is treated as a failed read (free error row), never as a profile row.
- **Instagram may slow down or refuse an address.** Then you get free `blocked` rows, and after 10 in a row the run stops; run again later. Large lists (thousands of usernames in one run) have not been tested yet.
- **Like counts are the ones Instagram's embed shows.** For some video posts they are lower than other tools report; see "Checked against the leader" above.
- One real run on the Apify platform on 22 November 2026 (run S3VtoiRthmjRR7DA3): 100 usernames gave 95 profile rows and 5 free error rows in 66 seconds. That is a single run on one day, not a guarantee.

### Support

Open an issue on the **Issues** tab and include the run ID. We aim to answer within 2 working days. Bug fixes for the fields listed on this page are free. If Instagram changes something and the Actor stops returning data, tell us there first.

### Data handling and fair use

The Actor reads only what Instagram shows to any logged-out visitor of an embed. It never asks for, stores or uses an Instagram login, cookie or session. Nothing is kept by us: results live in your own Apify dataset under your account's retention settings.

Usernames, names, pictures and captions are personal data. You are responsible for how you use them: respect privacy law (for example GDPR), copyright and Instagram's terms where they apply to you. Do not use the output to harass anyone.

### Not affiliated

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Instagram or Meta. "Instagram" is a trademark of its owner.

### FAQ

**Is the follower count exact?** It is the whole number Instagram puts in the embed (for example 104,265,927), not "104M". The embed can lag the live count a little: in our comparison it was within 0.1% of the leader's number on 20 of 20 accounts.

**Why is the engagement rate different from another tool?** Tools use different post samples and formulas. Ours is (average likes + average comments) / followers over the latest posts the embed lists (up to 6), and the row tells you how many posts that was.

**Can it read private accounts?** No.

**Why did a real account come back as `unavailable`?** Most likely it does not allow embeds; a missing or private account looks the same on Instagram's embed page. That row is free.

**Do you need my Instagram account?** No. There is no login field.

**Do you have something for YouTube?** [YouTube Transcript Scraper](https://apify.com/leadharbor/youtube-transcripts) returns YouTube transcripts with timestamps.

# Actor input Schema

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

Instagram usernames (nasa or @nasa; capital letters are read as lowercase) or profile links (https://www.instagram.com/nasa/), one per entry, up to 5,000 per run. Each public profile returns one row with the follower count, post count, the 6 latest posts and engagement numbers. A username Instagram does not show (it does not exist, is private, or does not allow embeds) gets a free error row. The same username twice, in any capitalisation, is read once. Post, reel and story links are not accepted.

## `includePosts` (type: `boolean`):

On: every profile row has latestPosts, the posts Instagram shows on the public embed (the latest 6, in the order Instagram lists them) with likes, comments, caption, time, type, hashtags and mentions. Off: only the profile numbers and the engagement numbers are returned, which makes rows much smaller for AI agents. The engagement numbers are the same either way.

## Actor input object example

```json
{
  "usernames": [
    "nasa",
    "natgeo",
    "nike"
  ],
  "includePosts": true
}
```

# Actor output Schema

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

Table of the delivered profiles (followers, engagement numbers, latest posts) and any error rows.

## `summary` (type: `string`):

Counts: profiles queued, rows delivered, profiles Instagram does not show, error rows, retries and charged events.

# 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": [
        "nasa",
        "natgeo",
        "nike"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("leadharbor/instagram-profile-engagement-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": [
        "nasa",
        "natgeo",
        "nike",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("leadharbor/instagram-profile-engagement-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": [
    "nasa",
    "natgeo",
    "nike"
  ]
}' |
apify call leadharbor/instagram-profile-engagement-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,leadharbor/instagram-profile-engagement-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/1JnCeqBxpZt5SMwiJ/builds/TEmYSIeC72hN2jaoL/openapi.json
