# $9/1K | Instagram Scraper - Profiles, Posts & Hashtags (`scrapercompany/instagram-scraper`) Actor

Scrape Instagram profiles (exact followers, bio, verification), profile, hashtag and location posts, one post's details (likes, views, media, location) and comments. No login or cookies; batch accounts, hashtags or posts. Made by ScraperCompany.

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

## Pricing

from $9.00 / 1,000 instagram profiles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 - Profiles, Posts, Hashtags, Comments

**Instagram Scraper** by ScraperCompany collects public instagram.com data in six modes, without a login or cookies. **Profiles** returns an account's **full name, bio, exact follower and following counts, post count, verified and private flags, avatar and website**.

### ⭐ Like this Actor? Leave a review

If Instagram Scraper saved you time, please [leave a review on the Store](https://apify.com/scrapercompany/instagram-scraper/reviews). It takes a minute, helps other people find a scraper that works, and tells us what to build next.

> 🟢 **Nothing to set up:** no code, no login and no keys. Click **Try for free**, start a run, and export JSON, CSV or Excel, or pull the results through the Apify API. You pay only for results; failed and empty requests are free.

### 📦 What you get

| Mode | What you get | Price | Per 1,000 |
| --- | --- | --- | --- |
| `profile` | An account's full name, bio, exact follower and following counts, post count, verified and private flags | $0.009 | $9.00 |
| `posts` | The latest posts on a profile's grid | $0.012 | $12.00 |
| `hashtag` | The top posts for a hashtag | $0.012 | $12.00 |
| `location` | The posts filed under a location | $0.012 | $12.00 |
| `post` | One post or reel: caption, likes, comment count, views, media, owner, location and music | $0.003 | $3.00 |
| `comments` | The first page of comments on a post, with likes and reply counts | $0.012 | $12.00 |

- 💵 **Price:** from **$3 per 1,000** `post` events ($0.003 each); failed and empty requests are free.
- ⚙️ **Setup:** none. No account on the site, no cookies, no keys.
- 📁 **Export:** JSON, CSV, Excel or HTML from the **Output** tab, or the Apify API.
- 🔁 **Automate:** schedules, webhooks, Make, Zapier, n8n and AI agents (MCP).

### ✨ What can this Instagram scraper do?

**Profile posts** returns the latest posts on an account's grid, **Hashtags** and **Locations** the posts Instagram shows for a hashtag or place, each with **link, caption, image and type**, **Post details** one post or reel with **likes, comment count, views, every image or video, owner, tagged location and music**, and **Comments** the first page of a post's comments with **likes and reply counts**. Each request is charged once; failed requests, unknown accounts and empty answers are free.

- **Profiles**: exact follower and following counts (not rounded to "104M"), post count, full name, bio, website, avatar, verified and private flags.
- **Profile posts**: the latest posts on an account's grid (about 12) with link, caption, image, media type and date.
- **Hashtags** and **Locations**: the posts Instagram shows for a hashtag or a place, with link, caption, image and author.
- **Post details**: one post or reel by link or shortcode, with caption, type, posting time, likes, comment count, video views and duration, every carousel image or video, owner (followers, verified), tagged location and music.
- **Comments**: the first page of comments on a post, with text, author, likes, reply count and date.
- Accepts usernames with or without `@`, profile, post and location links, and post shortcodes. Batch many in one run.

### 🚀 Quick start: how to scrape Instagram profiles, posts and comments

1. Click **Try for free** (or open the Actor in Apify Console) and go to the **Input** tab.
2. Pick a **Mode**. For Profiles or Profile posts enter accounts such as `@nasa`; for Hashtags enter hashtags such as `travel`; for Locations enter location ids or links; for Post details or Comments paste post links. Each line is one request.
3. Adjust the options if needed.
4. Click **Start** and wait for the run to finish.
5. Download the results from the **Output** tab as JSON, CSV, Excel or HTML, or fetch them with the Apify API.

💡 **Tip:** run it once with the pre-filled input to see the output, then change the input to your own.

### ⚖️ What makes it different?

| | **Instagram Scraper** | Many alternatives |
| --- | --- | --- |
| Setup | Nothing to configure: no login, no keys | Often your own accounts, cookies or network setup |
| You pay for | Successful results; failed and empty requests are free | Often run time, or every attempt |
| When a request fails | Retried automatically, and never charged | Often an empty or failed run |

### 👥 Who uses Instagram data?

- **Influencer and creator marketing**: Check creators' exact follower counts, bios and post counts before you reach out, and track them over time.
- **Brands and agencies**: See which posts show up for your hashtags and places, and what people say in the comments.
- **Researchers and analysts**: Collect captions and comments from public posts for trend and sentiment work.

### 🧭 Common jobs

#### Vet creators

Run **Profiles** on a list of usernames for exact followers, post counts and bios.

#### Watch a hashtag or place

Run **Hashtags** or **Locations** each day to see which posts Instagram shows for them.

#### Track posts

Run **Post details** on a list of post links each day to follow their likes, comments and views.

#### Read the audience

Run **Comments** on a post to see what people say and which comments get the most likes.

### 📋 What Instagram data can you extract?

| Field | Description |
| --- | --- |
| `profile.username / full_name / biography` | Username, name and bio (Profiles) |
| `profile.followers / following / posts_count` | Exact counts (Profiles) |
| `profile.verified / private / avatar / external_url` | Account flags, picture and website |
| `posts[].code / link / caption / image` | Post link, caption and image (Profile posts, Hashtags, Locations) |
| `posts[].media_type / product_type / taken_at / username` | Post kind, date and author |
| `post.type / caption / posted_at / likes / comments_count` | One post (Post details) |
| `post.video_views / video_duration / media[] / location / music` | Views, media, place and sound (Post details) |
| `post.owner.username / followers / verified` | Who posted it (Post details) |
| `comments[].text / username / likes / replies / created_at` | Comments |
| `has_next_page` | Whether Instagram has more for this input |

Every dataset item also carries `input` (the options used for that request), `request_id` (quote it to support), `billed` and `scraped_at`.

### ⌨️ Input

| Input | Name | What it does |
| --- | --- | --- |
| `mode` | Mode | Read accounts' profiles or latest posts, a hashtag's or location's posts, one post's details, or a post's comments. |
| `usernames` | Accounts (Profiles, Profile posts) | ..com/nasa/`. |
| `hashtags`| Hashtags (Hashtags) | One hashtag per line, with or without`#`, such as `travel`. |
| `locations` | Locations (Locations) | .com/explore/locations/212988663/…`). |
| `posts` | Posts (Post details, Comments) | .com/p/…`or`/reel/…\`) or its shortcode. |

### 📥 Input example

This is the default input; running the Actor without changes uses it.

```json
{
  "mode": "profile",
  "usernames": [
    "@nasa"
  ],
  "hashtags": [
    "travel"
  ],
  "locations": [
    "212988663"
  ],
  "posts": [
    "https://www.instagram.com/p/Dfc1mYxFevS/"
  ],
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

### 📤 Output example

One dataset item per request (trimmed here; real items contain all the fields):

```json
{
  "mode": "profile",
  "input": {
    "username": "@nasa"
  },
  "profile": {
    "biography": "Making the seemingly impossible, possible.",
    "followers": 104353244,
    "followers_text": "104M",
    "following": 91,
    "full_name": "NASA",
    "link": "https://www.instagram.com/nasa/",
    "posts_count": 5008,
    "private": false,
    "username": "nasa",
    "verified": true
  },
  "search_parameters": {
    "username": "nasa"
  },
  "request_id": "req_3f9c0d6e2b8a4c1f9e7d5b3a1c0e8f6d",
  "billed": true,
  "scraped_at": "2026-10-01T14:03:27.512Z"
}
```

A request that fails is saved with an `error` message instead (turn off **Include failed requests** to skip those). Failed requests are never charged.

### 💰 How much does it cost to scrape Instagram profiles, posts and comments?

This Actor uses **pay-per-event** pricing: you pay for successful requests, not for compute time.

| Event | Charged when | Price | Per 1,000 |
| --- | --- | --- | --- |
| `profile` | One account's profile: full name, bio, exact follower and following counts, post count, verified and private flags, avatar and website. Unknown accounts are free. | $0.009 | $9.00 |
| `posts-page` | The latest posts on one profile's grid (about 12): link, caption, image, type and date. Private or empty profiles are free. | $0.012 | $12.00 |
| `hashtag-page` | The top posts Instagram shows for one hashtag, with link, caption, image and author. Empty answers are free. | $0.012 | $12.00 |
| `location-page` | The posts filed under one Instagram location, with link, caption, image and author. Empty answers are free. | $0.012 | $12.00 |
| `post` | One post or reel: caption, type, posting time, likes, comment count, video views and duration, carousel items, owner, tagged location and music. Missing or private posts are free. | $0.003 | $3.00 |
| `comments-page` | The first page of comments on one post: text, author, likes, reply count and date. Posts without comments are free. | $0.012 | $12.00 |

The **$3/1K** in the title is the price of 1,000 `post` events, the cheapest mode; the table above prices every mode.

These prices apply from December 1, 2026, after Apify's 14-day notice of a price change; until then runs are charged the previous prices shown on the Pricing tab.

#### Cost examples

| Job | Cost |
| --- | --- |
| 100 profiles | **$0.90** |
| 20 hashtags and 20 accounts' posts | **$0.48** |
| Comments on 50 posts | **$0.60** |
| Details of 200 posts | **$0.60** |

Apify's $5 of free monthly usage covers about **555** `profile` events.

- ✅ Failed requests (errors, invalid input, a site refusing after retries) are **free**.
- ✅ Requests where the source returns nothing at all (no results, nothing priced) are saved but **not charged**.
- ✅ Set **Maximum cost per run** when you start a run and the Actor stops cleanly before going over it.

### 🔌 Integrations

#### ⏰ Schedules and webhooks

Use Apify **Schedules** to repeat a run hourly, daily or weekly and compare results over time, and **webhooks** or the **Integrations** tab to push new results to Make, Zapier, n8n, Google Sheets, Slack or your own warehouse.

#### 🤖 AI agents and MCP

Results are structured JSON, so they are easy to feed to a model. AI agents such as Claude can run this Actor and read its results through the [Apify MCP server](https://mcp.apify.com).

#### 💻 API: JavaScript and Python

Call the Actor from any language through the [Apify API](https://docs.apify.com/api/v2). With the JavaScript client (`npm install apify-client`):

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('scrapercompany/instagram-scraper').call({
    "mode": "profile",
    "usernames": [
        "@nasa"
    ]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

With Python (`pip install apify-client`):

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("scrapercompany/instagram-scraper").call(run_input={
    "mode": "profile",
    "usernames": ["@nasa"],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### ❓ FAQ

#### Do I need an account on the site, or an API key?

No. The Actor is ready to run as is, and you only pay the per-event prices above.

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

No. The Actor reads public Instagram pages without logging in.

#### How many posts or comments does one request give?

One page: about 12 posts per account, the top posts for a hashtag or place, and the first page of comments per post. Run more accounts, hashtags or posts for more.

#### What about private accounts?

Their profile comes back with `private` set and their counts; their posts are not public, so Profile posts is empty and free.

#### Why do some posts have no like or comment counts?

Instagram leaves those counts out of some grids for logged-out visitors. They are empty rather than guessed.

#### When was a post published?

Post details gives `posted_at`, worked out from the post's id, since the post page itself does not show a date to logged-out visitors.

#### How do I make a big run finish sooner?

Run several requests at once with **Parallel requests**.

#### Is it legal to scrape Instagram profiles, posts and comments?

The Actor collects publicly available information that anyone can see without logging in. You are responsible for how you use the results: respect the source site's terms, copyright and privacy law (such as GDPR) and do not collect personal data without a lawful basis. If in doubt, ask a lawyer.

#### What happens when a request fails?

Failed attempts are retried automatically. If a request still fails it is saved with the error message and not charged, and the rest of the batch keeps going. A run only fails when every request failed.

#### Why did a request return an error?

Read the `error` field: it says what was wrong with the input, for example a malformed date or an unknown id. Fix it and run again; failed requests cost nothing.

#### How many requests can I run at once?

Any number per run. The Actor sends up to 3 requests in parallel by default (change it under **Run options**); larger batches simply take longer.

### 🔗 Related scrapers

- [TikTok Scraper](https://apify.com/scrapercompany/tiktok-scraper): TikTok profiles, videos and comments
- [X (Twitter) Scraper](https://apify.com/scrapercompany/x-scraper): X profiles and posts

### 📝 Tried it? Tell others

Once you have run Instagram Scraper, a [short review on the Store](https://apify.com/scrapercompany/instagram-scraper/reviews) helps the next person decide.

### 💬 Support

Questions, a field you need, or a site that stopped working? Open an issue on the **Issues** tab. Include the `request_id` from the dataset item so we can trace the request. We read every issue.

# Changelog

This Actor's version history is a separate document: https://apify.com/scrapercompany/instagram-scraper/changelog.md

# Actor input Schema

## `mode` (type: `string`):

Read accounts' profiles or latest posts, a hashtag's or location's posts, one post's details, or a post's comments.

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

One Instagram account per line: <code>@nasa</code>, <code>nasa</code> or a profile link such as <code>https://www.instagram.com/nasa/</code>.

## `hashtags` (type: `array`):

One hashtag per line, with or without <code>#</code>, such as <code>travel</code>.

## `locations` (type: `array`):

One location per line: its numeric id or its link (<code>instagram.com/explore/locations/212988663/…</code>).

## `posts` (type: `array`):

One post per line: its link (<code>instagram.com/p/…</code> or <code>/reel/…</code>) or its shortcode.

## `customRequests` (type: `array`):

Optional list of JSON objects, one request each, using the field names shown above. Each object is merged over the options above, so you only need to give what differs. Add <code>"mode"</code> to an object to mix modes, for example <code>{"mode": "profile", "username": "@natgeo"}</code>. Example: <code>{"mode":"hashtag","tag":"sunset"}</code>

## `includeErrors` (type: `boolean`):

When on, a request that fails (for example an unknown property id) is saved as a dataset item with an <code>error</code> message so you can see what went wrong. Failed requests are never charged.

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

How many requests run at the same time (1-8). Parallel runs share one limit, so extra requests wait for a free slot instead of failing.

## `maxRetries` (type: `integer`):

How many times a request that failed for a temporary reason is tried again right away. A request still failing then gets one more try at the end of the run, after a 30-second pause. Invalid input is never retried.

## Actor input object example

```json
{
  "mode": "profile",
  "usernames": [
    "@nasa"
  ],
  "hashtags": [
    "travel"
  ],
  "locations": [
    "212988663"
  ],
  "posts": [
    "https://www.instagram.com/p/Dfc1mYxFevS/"
  ],
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

# Actor output Schema

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

One dataset item per request.

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

Counts of succeeded, failed, skipped and charged requests.

# 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"
    ],
    "hashtags": [
        "travel"
    ],
    "locations": [
        "212988663"
    ],
    "posts": [
        "https://www.instagram.com/p/Dfc1mYxFevS/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapercompany/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": ["@nasa"],
    "hashtags": ["travel"],
    "locations": ["212988663"],
    "posts": ["https://www.instagram.com/p/Dfc1mYxFevS/"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapercompany/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": [
    "@nasa"
  ],
  "hashtags": [
    "travel"
  ],
  "locations": [
    "212988663"
  ],
  "posts": [
    "https://www.instagram.com/p/Dfc1mYxFevS/"
  ]
}' |
apify call scrapercompany/instagram-scraper --silent --output-dataset

```

## MCP server setup

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