# Instagram Profile Scraper - Followers & Engagement (`sumitr_mardy/instagram-profile-scraper`) Actor

Instagram profile scraper, $1 per 1,000 profiles: exact followers, post count, verified badge, engagement rate, average likes and comments, posting frequency and the 6 newest posts for a list of usernames. One row per input; missing accounts free. No login.

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

## Pricing

from $0.70 / 1,000 profiles

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 Profile Scraper - Followers & Engagement

Paste Instagram usernames and get one row per account: **exact** follower count, total posts, verified badge, **engagement rate**, average likes and comments, posting frequency, date of the last post, paid-partnership posts and the 6 newest posts with their likes, comments and captions. Built for influencer vetting, creator lists and competitor tracking.

**$1 per 1,000 profiles.** Accounts that do not exist and invalid lines are returned free. No Instagram login, no cookies.

### What you get

| Field | Example |
|---|---|
| `username`, `fullName`, `userId`, `verified` | natgeo, National Geographic, 787132, true |
| `followers`, `posts` | 268110466, 32182 (exact numbers) |
| `engagementRate` | 0.129 (% = (avg likes + avg comments) / followers x 100) |
| `avgLikes`, `avgComments` | 133815, 843 |
| `postsPerWeek`, `lastPostAt` | 4.97, 2026-11-18T01:00:50Z |
| `paidPartnershipPosts` | 2 of the recent posts are marked as paid partnerships |
| `likesHidden` | true when the account hides like counts |
| `hasPublicStory`, `isPrivate`, `profilePicUrl`, `profileUrl` | |
| `recentPosts` | up to 6 newest posts: url, type, postedAt, likes, comments, caption, location, isPaidPartnership, isPinned, displayUrl |
| `status` | `ok`, `not_found`, `failed`, `invalid_input`, `cost_limit_reached` |

One row per input line, fixed shape: numbers always numbers, lists always lists, text always text.

#### How the engagement numbers are computed

From the newest posts Instagram shows (up to 6). Pinned posts are left out because they are old and skew the average; posts with hidden like counts are left out of the like average. `engagementRate` is `(avgLikes + avgComments) / followers x 100`.

### How to use it

Put one account per line:

```
natgeo
@nasa
https://www.instagram.com/nike/
```

Duplicates are looked up and billed once. Schedule the same list weekly to follow growth; every row carries `scrapedAt`.

### Pricing

Pay per event, **$0.001 per profile found** ($1 per 1,000), cheaper on higher Apify plans. `not_found`, `failed` and `invalid_input` rows are free. Apify adds its standard tiny start event per run.

### Status, measured

| | |
|---|---|
| Reference run, 23 lines | 21 profiles, 1 account that does not exist, 1 invalid line, 4.8 s, $0.00025 |
| Access | plain requests from Apify's servers, no proxy, no login |

### Honest limits

- **No bio, following count or link in bio.** Instagram's public profile embed does not include them.
- **Engagement is based on up to 6 recent posts**, not the full history.
- Private accounts return their counts but no recent posts.
- Public data only. Use it in line with Instagram's terms and the privacy laws that apply to you.

### Use it from AI agents (MCP)

Hosted, with OAuth sign-in (Claude, Cursor, VS Code and others):

```json
{
    "mcpServers": {
        "instagram-profiles": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/instagram-profile-scraper"
        }
    }
}
```

With an API token instead of OAuth:

```json
{
    "mcpServers": {
        "instagram-profiles": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/instagram-profile-scraper",
            "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
        }
    }
}
```

Local stdio:

```json
{
    "mcpServers": {
        "instagram-profiles": {
            "command": "npx",
            "args": ["-y", "@apify/actors-mcp-server", "--actors", "sumitr_mardy/instagram-profile-scraper"],
            "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
        }
    }
}
```

Tip for agents: ask for many usernames in one call; use `engagementRate` and `postsPerWeek` to rank creators.

### Run it from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("sumitr_mardy/instagram-profile-scraper").call(run_input={
    "usernames": ["natgeo", "nasa", "nike"],
})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(p["username"], p["followers"], p["engagementRate"], p["postsPerWeek"])
```

cURL (waits for the run and returns the rows):

```bash
curl -X POST "https://api.apify.com/v2/acts/sumitr_mardy~instagram-profile-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"usernames":["natgeo","nasa"]}'
```

### FAQ

**What is a good engagement rate?** It depends on size: small accounts often sit at 2-8%, accounts with tens of millions of followers well under 1%. Compare creators of similar size.

**Do I need an Instagram account?** No.

**Why is a row `not_found`?** The handle does not exist, was renamed or the account was removed. Those rows are free.

# Actor input Schema

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

One per line: "natgeo", "@natgeo" or "https://www.instagram.com/natgeo/".

## Actor input object example

```json
{
  "usernames": [
    "nasa",
    "natgeo",
    "thisuserdoesnotexist_zz91"
  ]
}
```

# Actor output Schema

## `dataset` (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": [
        "nasa",
        "natgeo",
        "thisuserdoesnotexist_zz91"
    ]
};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sumitr_mardy/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/iDRuBMG2zcq3yS6UN/builds/KjeP53JmNzcoSezSD/openapi.json
