# Instagram Scraper: Posts, Reels, Profiles & Comments (`ksvan/instagram-scraper`) Actor

Scrape public Instagram posts, Reels and profiles: captions, likes, comments, video plays, exact date, hashtags, mentions, location, tagged users, latest comments, followers, bio links. No login, ~1/3 cheaper.

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

## Pricing

Pay per event

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 Scraper: Posts, Reels, Profiles & Comments

**Scrape public Instagram posts, Reels and profiles without logging in.** Add usernames, profile URLs, post URLs or Reel URLs and get captions, likes, comment counts, video plays, the exact publish time, hashtags, mentions, location, tagged users, carousel images, the **latest comments of every post** and full profile details (followers, bio, bio links, emails in the bio). About **1/3 cheaper** than the most popular Instagram scraper.

#### What can Instagram Scraper do?

- 📸 **Posts** of any public profile: photos, carousels (all images) and videos, newest first
- 🎞️ **Reels** of any public profile with **play count**, likes and comments
- 👤 **Profile details**: followers, following, bio, all bio links, emails found in the bio, verified badge, Threads badge
- 💬 **Latest comments** (up to 12 per post) included with post details, no separate scraper needed
- 🔗 **Single posts and Reels** by URL
- 🎯 **Free filters**: only posts newer than a date, minimum likes, minimum comments
- 🔒 **No login, no cookies, no account risk**: only public data that Instagram shows to visitors
- 📦 Export to JSON, CSV, Excel, HTML, or use the API, webhooks, Make, Zapier, n8n or the Apify MCP server for AI agents

#### What data can I scrape from Instagram?

<table>
<tr><td>📝 Caption, #hashtags, @mentions</td><td>❤️ Likes count</td></tr>
<tr><td>💬 Comments count + latest comments</td><td>▶️ Video / Reel play count</td></tr>
<tr><td>📅 Exact publish time</td><td>🖼️ Image and all carousel images</td></tr>
<tr><td>📍 Location name and ID</td><td>🏷️ Tagged users, co-authors</td></tr>
<tr><td>👤 Username, full name, followers, following</td><td>🧾 Bio, bio links, emails in bio</td></tr>
<tr><td>✔️ Verified badge</td><td>📐 Media size, type, product type</td></tr>
</table>

#### How this scraper compares

| | **This Actor** | Most popular Instagram scraper |
|---|---|---|
| Price per 1,000 posts, Reels or profiles (Free plan) | **$1.80** | $2.70 |
| Price per 1,000 (Gold plan, the "from" price) | **$1.00** | $1.50 |
| Latest comments with every post | ✅ included in post details | separate run |
| Emails found in bio | ✅ | — |
| Date, likes and comments filters | ✅ **free** | partly |
| Private or deleted inputs | **never charged** | — |
| Login or cookies needed | **no** | no |

#### How much will scraping Instagram cost?

You pay only for saved results: **$1.80 per 1,000 posts, Reels or profiles** on the Free plan, going down to **$1.00 per 1,000** on higher Apify plans. Optional **post details** (exact time, comment count, location, tagged users, latest comments) cost **$0.80 per 1,000 posts** extra on the Free plan. Platform usage and residential proxies are included. Filtered-out posts and failed inputs are free.

With the $5 monthly credit of the Apify Free plan you can scrape about **2,700 posts** or profiles.

#### How do I use Instagram Scraper?

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open Instagram Scraper and add usernames or Instagram URLs.
3. Choose **What to scrape**: Posts, Reels or Profile details.
4. Set **Max posts or Reels per profile** and, if you like, the free filters.
5. Click **Start** and download the data as JSON, CSV, Excel or HTML, or get it via the API.

#### ⬇️ Input example

```json
{
  "usernames": ["natgeo", "https://www.instagram.com/nike/", "https://www.instagram.com/p/Df-NlR0PjmN/"],
  "resultsType": "posts",
  "resultsLimit": 50,
  "addPostDetails": true,
  "onlyPostsNewerThan": "2026-10-01",
  "minLikes": 1000
}
```

#### ⬆️ Output examples

##### 📸 Post with details

```json
{
  "id": "4034007797004329677",
  "shortCode": "Df7rLfhmWLN",
  "url": "https://www.instagram.com/p/Df7rLfhmWLN/",
  "type": "Sidecar",
  "caption": "We usually sample size 9…",
  "hashtags": [],
  "mentions": [],
  "likesCount": 240942,
  "commentsCount": 1304,
  "timestamp": "2026-11-19T18:00:25+00:00",
  "timestampIsExact": true,
  "displayUrl": "https://scontent-lhr6-1.cdninstagram.com/v/t51.82787-15/...",
  "images": ["https://scontent-lhr6-1.cdninstagram.com/...", "https://scontent-lhr6-1.cdninstagram.com/..."],
  "carouselCount": 3,
  "dimensions": {"width": 1620, "height": 2160},
  "ownerUsername": "nike",
  "ownerId": "13460080",
  "latestComments": [
    {"id": "18507332530099648", "text": "Yooo", "ownerUsername": "pheely_1", "timestamp": "2026-11-24T08:14:28+00:00", "likesCount": 1}
  ],
  "inputUrl": "nike",
  "scrapedAt": "2026-11-24T08:29:54+00:00"
}
```

##### 🎞️ Reel

```json
{
  "id": "4032769631913039723",
  "shortCode": "Df3Rp0bKNdr",
  "url": "https://www.instagram.com/reel/Df3Rp0bKNdr/",
  "type": "Video",
  "productType": "clips",
  "likesCount": 34533,
  "commentsCount": 306,
  "videoPlayCount": 2623141,
  "timestamp": "2026-11-18T01:00:24+00:00",
  "ownerUsername": "nasa"
}
```

##### 👤 Profile details

```json
{
  "id": "13460080",
  "username": "nike",
  "fullName": "Nike",
  "url": "https://www.instagram.com/nike/",
  "biography": "Just Do It.",
  "externalUrls": [{"title": null, "url": "http://empli.fi/nike"}],
  "externalUrl": "http://empli.fi/nike",
  "followersCount": 290212956,
  "followsCount": 270,
  "verified": true,
  "private": false,
  "hasReels": true,
  "threadsBadge": true,
  "profilePicUrl": "https://scontent.cdninstagram.com/v/t51.82787-19/..."
}
```

Inputs that cannot be scraped (private account, deleted post, mistyped username) produce a record with an `error` field and are **not charged**.

#### What can you do with Instagram data?

- 🎯 **Influencer vetting**: followers, engagement (likes, comments, Reel plays) and posting frequency before you sign a deal
- 🔥 **Trend and content research**: which formats, hashtags and captions get the most engagement in your niche
- 📊 **Competitor and campaign monitoring**: track competitors' posts and Reels daily with a schedule and `onlyPostsNewerThan`
- 🔔 **Brand monitoring**: collect comments on your own and competitors' posts
- 🧲 **Lead generation**: bio links and emails in bios of business and creator accounts

#### ❓ FAQ

##### Do I need an Instagram account or cookies?

No. The scraper reads only the public data Instagram shows to visitors who are not logged in, so there is no account to get banned.

##### Can I scrape private profiles?

No. Private accounts are skipped with an error record and are not charged.

##### How many posts can I scrape per profile?

As many as the profile shows publicly, newest first. Set **Max posts or Reels per profile**; use **Only posts newer than** for daily or weekly monitoring so you only pay for new posts.

##### Is the publish time exact?

With **Add post details** on, yes (`timestampIsExact: true`). Without details the time is read from the post ID and is accurate to within about an hour.

##### Why are likes sometimes missing?

Some accounts hide like and view counts. Those posts have `likesAndViewsHidden: true`.

##### Can I scrape hashtags, places or search results?

Instagram shows hashtag, place and search pages only to logged-in users, so they are not supported (this scraper never logs in).

##### Can I use it with the API, Make, Zapier, n8n or AI agents?

Yes. Use the [Apify API](https://docs.apify.com/api/v2), the Python and JavaScript clients, webhooks, [integrations](https://apify.com/integrations), or the Apify MCP server (Claude, ChatGPT, Cursor and others).

##### Is it legal to scrape Instagram?

The scraper collects only publicly available data. Personal data is protected by laws such as GDPR, so make sure you have a legitimate reason to collect it and consult a lawyer if unsure.

##### Feedback

Found a bug or need a field? Open an issue on the **Issues** tab and it will be handled quickly. If the scraper saved you time, a short review helps other users find it. Thank you!

# Actor input Schema

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

Any mix of usernames (natgeo, @nasa), profile URLs, post URLs (instagram.com/p/...) and Reel URLs (instagram.com/reel/...). Only public accounts and posts.

## `resultsType` (type: `string`):

Posts and Reels of each profile, or one profile-details record per account (followers, bio, links, emails in bio, verified...).

## `resultsLimit` (type: `integer`):

Newest first. Filtered-out posts do not count and are not charged.

## `addPostDetails` (type: `boolean`):

Exact publish time, comment count, Reel captions, location, tagged users, co-authors and the 12 latest comments of every post (charged as an extra 'post details' event).

## `onlyPostsNewerThan` (type: `string`):

Free filter: skip posts published before this date (YYYY-MM-DD). Scraping of a profile stops when it reaches older posts.

## `skipPinnedPosts` (type: `boolean`):

Skip posts pinned to the top of the profile (they are usually old). Every post also has an isPinned field.

## `minLikes` (type: `integer`):

Free filter: skip posts with fewer likes.

## `minComments` (type: `integer`):

Free filter: skip posts with fewer comments.

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

Stop the whole run after this many saved items (0 = no limit).

## `maxConcurrency` (type: `integer`):

How many post details are loaded at the same time.

## `maxTries` (type: `integer`):

Instagram shows a login wall to some IP addresses; each try uses a new IP.

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

Residential proxy is included in the price. No Instagram login or cookies are needed.

## Actor input object example

```json
{
  "usernames": [
    "natgeo"
  ],
  "resultsType": "posts",
  "resultsLimit": 12,
  "addPostDetails": false,
  "skipPinnedPosts": false,
  "maxConcurrency": 8,
  "maxTries": 12,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One record per post, Reel or profile.

# 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"
    ],
    "resultsLimit": 12,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ksvan/instagram-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"],
    "resultsLimit": 12,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("ksvan/instagram-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"
  ],
  "resultsLimit": 12,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call ksvan/instagram-scraper --silent --output-dataset

```

## MCP server setup

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