# Instagram Profile Scraper - Followers, Bio & Latest Posts (`kantolabs/instagram-profile-scraper`) Actor

Scrape public Instagram profiles by username or URL: exact followers, following and post counts, bio, bio links, verified flag, profile picture, the latest 12 posts with captions and likes/comments, and engagement rate. Logged out, public data only. Failed profiles are free.

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

## Pricing

from $1.52 / 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

### What does Instagram Profile Scraper do?

**Instagram Profile Scraper** turns a list of Instagram usernames or profile URLs into clean profile data: **exact follower, following and post counts**, **bio**, **bio links**, verified and private flags, profile picture, the **latest 12 posts** (link, type, date, caption, hashtags, mentions, image) with **likes and comments for the most recent feed posts**, and a ready-made **engagement rate**.

It reads only what Instagram shows to a signed-out visitor on the public profile page and the public profile embed. No login, no cookies, no Instagram account needed. **Private, missing and blocked profiles are free.**

### Why use it?

- **Influencer vetting** - check followers, engagement rate and how recently an account posted before you pay for a collaboration.
- **Competitor tracking** - schedule a daily run on your competitors' brand accounts and watch follower growth and posting rhythm.
- **Lead enrichment** - add bio, website links and audience size to a list of creators or brands in your CRM.
- **Research datasets** - one stable row per profile, ready for spreadsheets, BI tools or an AI agent.

Run it on Apify and you get the API, scheduling, webhooks, and integrations with Make, n8n, Zapier, Google Sheets and more without extra setup.

### How to scrape Instagram profiles

1. Paste usernames (`nasa`, `@natgeo`) or profile URLs (`https://www.instagram.com/nasa/`) into **Instagram usernames or profile URLs**, one per line.
2. Keep **Include latest posts** on if you want the post grid and engagement stats in each row.
3. Click **Start**. Each profile takes about a second; a few hundred profiles finish in a few minutes.
4. Download the results as JSON, CSV or Excel, or use the **Profiles** table view for a flat CSV and the **Latest posts** view for one row per post.

### How much does it cost to scrape Instagram profiles?

You pay **per profile delivered**: one `Profile` event, **$1.90 per 1,000 profiles** on the free and Bronze plans, less on higher Apify plans (Silver $1.71, Gold and above $1.52 per 1,000). Apify Proxy and compute are included.

**Worked example:** 500 influencer profiles = 500 x $0.0019 = **$0.95**. If 20 of them are private and 5 no longer exist, those 25 rows are free and you pay $0.9025.

Not charged, ever: private profiles, usernames that do not exist, profiles Instagram refused to serve after several retries, invalid inputs and duplicates. Set **Maximum cost per run** and the run stops cleanly when it is reached.

### Input example

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

### Output example

One row per profile (shortened):

```json
{
  "input": "nasa",
  "username": "nasa",
  "url": "https://www.instagram.com/nasa/",
  "id": "528817151",
  "fullName": "NASA",
  "biography": "Making the seemingly impossible, possible. ✨",
  "externalUrl": "https://www.nasa.gov",
  "externalUrls": [{"url": "https://www.nasa.gov", "title": "NASA.gov Homepage"}],
  "followersCount": 104447199,
  "followsCount": 90,
  "postsCount": 4990,
  "verified": true,
  "private": false,
  "hasPublicStory": true,
  "profilePicUrl": "https://scontent-...cdninstagram.com/...jpg",
  "latestPostsCount": 12,
  "avgLikes": 541659.7,
  "avgComments": 1519.5,
  "engagementRate": 0.52,
  "engagementPostsUsed": 6,
  "lastPostAt": "2026-11-05T02:25:45.000Z",
  "latestPosts": [
    {
      "shortCode": "DfV8zG1RUYT",
      "url": "https://www.instagram.com/p/DfV8zG1RUYT/",
      "type": "Image",
      "productType": "feed",
      "timestamp": "2026-11-05T02:25:45.000Z",
      "caption": "BREAKING: Introducing X-70 Fractal ...",
      "hashtags": [],
      "mentions": ["nasa"],
      "likesCount": 147427,
      "commentsCount": 569,
      "displayUrl": "https://scontent-...jpg"
    }
  ],
  "status": "ok",
  "error": null,
  "scrapedAt": "2026-11-06T04:33:05.000Z"
}
```

`status` is `ok` (charged), or one of the free states `private`, `not_found`, `blocked`, `invalid_input`, with a plain-English `error`.

### What data can you get from a public Instagram profile?

| Field | Notes |
|---|---|
| `followersCount`, `followsCount` | exact numbers, not "5M" |
| `postsCount` | exact total posts |
| `biography`, `fullName`, `pronouns` | as shown on the profile |
| `externalUrl`, `externalUrls` | every bio link with its title, already un-wrapped from Instagram's redirect |
| `verified`, `private`, `isMemorialized`, `hasPublicStory`, `hasReels` | flags |
| `latestPosts` | up to 12 posts from the profile grid (pinned posts first, as on Instagram) |
| `likesCount`, `commentsCount` per post | for the **6 most recent feed posts** (what Instagram's public embed shows); other posts carry `null` |
| `engagementRate` | (average likes + average comments) / followers x 100, over the posts that have counts |

**Not available** without logging in, so not provided: business category and contact buttons, related profiles, highlights, join date and country, follower or following lists, emails and phone numbers. Posts on a profile whose owner turned embedding off come without like counts.

### Is it legal to scrape Instagram profiles?

This Actor collects only public information that anyone can see without an account, and it does not log in or bypass any access control. Personal data is still protected by laws such as GDPR, so only collect what you need for a legitimate purpose, and check Instagram's terms and your local rules for your use case. If in doubt, ask a lawyer.

### FAQ

**Why is a profile `blocked`?** Instagram sometimes refuses a request. Each profile is retried on several fresh proxy IPs; if it still fails, you get a free `blocked` row (with the fields from the public embed, if it answered). Run it again later.

**Can I scrape private accounts?** No. Private profiles come back as a free `private` row with the public header only.

**How fresh is the data?** Live: every run reads Instagram at that moment. Schedule the Actor to track changes over time.

**Do I need an Instagram account or cookies?** No, and the Actor never asks for them.

### Other Actors from Kanto Labs

- [Video Frame Extractor](https://apify.com/kantolabs/video-frame-extractor) - frames and thumbnails from any video, including public Instagram reels.
- [Video Ad Creative Breakdown](https://apify.com/kantolabs/video-creative-breakdown) - hook, shot list and transcript of a video ad.
- [Google Maps Scraper](https://apify.com/kantolabs/google-maps-scraper) - business leads with phones, websites and emails.

Found a problem or need a field? Open an issue in the **Issues** tab and we will reply.

# Actor input Schema

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

One per line: a username (nasa, @nasa) or a profile URL (https://www.instagram.com/nasa/). Duplicates are scraped once. Post or reel URLs are rejected for free. Only public profiles are scraped; private, missing or blocked profiles come back as free rows.

## `includeLatestPosts` (type: `boolean`):

Add the latest posts shown on the public profile grid (up to 12) to each row: link, type, date, caption, hashtags, mentions, image, and likes/comments for the most recent feed posts. Same price either way; turn off for a leaner CSV.

## Actor input object example

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

# Actor output Schema

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

No description

## `csv` (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"
    ]
};

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

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

```

## MCP server setup

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