# Instagram Scraper All-in-One: Posts & Comments (`t800solutions/instagram-scraper`) Actor

The all-in-one Instagram scraper: public profiles, posts, reels, hashtags and comments in the same run, without login. Paste profiles, post links or hashtags and get followers, bios, captions, likes, comments, music and media URLs. Export via API, CSV or Excel.

- **URL**: https://apify.com/t800solutions/instagram-scraper.md
- **Developed by:** [T800 Solutions](https://apify.com/t800solutions) (community)
- **Categories:** Social media, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 7 total users, 3 monthly users, 99.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.45 / 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 Scraper All-in-One** is an Instagram scraper that gets **public profiles, posts, reels, hashtags and comments in a single run, without login**. Paste profile links or usernames, post or reel links and hashtags, and get followers, bios, external links, captions, likes, comment counts, publish dates, locations, music, tagged users and media URLs. No Instagram account, no API key, no cookies. Export to **Excel, CSV or JSON**, or use the results through the API.

### ✨ What this Instagram scraper gets

| Feature | What you get |
|---|---|
| 👤 **Profiles** | Username, full name, biography, external links, followers, following, verified and private flags, profile picture, category, highlights, and the 12 latest posts shown on the profile page, plus 12 more when Instagram allows (up to 24 without login) |
| 📝 **Posts and reels** | Shortcode, URL, type (post, reel or video), media type (image, video or carousel), caption, hashtags, mentions, author, image and video URLs, plays |
| 📋 **Post details** | Likes (or "hidden"), comment count, exact publish date (UTC), location, music or original audio, tagged users, co-authors, all carousel images, width and height, alt text |
| 💬 **Add-on: Comments** | The comments Instagram shows on the public post page (about 11 per post): text, date, likes, replies count and author |
| #️⃣ **Hashtags** | The recent posts of a hashtag page (12 without login), with caption, plays and author |
| 📅 **Date filter** | Keep only posts newer than a date. Included |
| 📈 **Live Run summary** | Inputs done, profiles, posts and comments delivered and amount charged, updated every 15 seconds |

The leading Instagram scrapers split this into separate Actors for profiles, posts, reels, hashtags and comments, one result type per run. Here you paste everything in one list, pay only for what you turn on, and get posts and comments linked to their profiles.

### 🚀 How to scrape Instagram profiles, posts and comments

1. Open the **🔗 Profiles, posts, reels or hashtags** field and paste one item per line: `https://www.instagram.com/nasa/` or `@nasa`, `https://www.instagram.com/p/XXXX/`, `#travel`.
2. Set **🔢 Max posts per profile** (12 by default, always delivered; up to 24 when Instagram allows; 0 for profile details only) and **🔢 Max posts per hashtag**.
3. Turn on **📋 Post details** to open each post for likes, dates, locations and music, and **💬 Add-on: Comments** to get the comments.
4. Optional: set **📅 Only posts newer than** and the **🌍 Proxy country**.
5. Click **Start**. Follow the **Run summary** in the Output tab, then open the **Results** tab to view, filter or export.

### 📥 Input

```json
{
  "start_urls": ["https://www.instagram.com/nasa/", "#space", "https://www.instagram.com/reel/Dfc1mYxFevS/"],
  "max_posts_per_profile": 24,
  "post_details": true,
  "comments": true,
  "max_comments_per_post": 50
}
```

- `start_urls` (**🔗 Profiles, posts, reels or hashtags**): profile links or usernames, post or reel links, hashtags. Up to 1,000 per run.
- `max_posts_per_profile` (**🔢 Max posts per profile**): newest first; the 12 of the profile page always, up to 24 when Instagram allows.
- `max_posts_per_hashtag` (**🔢 Max posts per hashtag**): up to 12 without login.
- `post_details` (**📋 Post details**): open each post of the profiles and hashtags. Post links always get full details.
- `comments` (**💬 Add-on: Comments**) with `max_comments_per_post`.
- `only_newer_than` (**📅 Only posts newer than**), `max_total_results`, `proxy_country` (**🌍 Proxy country**).

### 📤 Output

One row per profile (with its posts inside `posts`), one row per post with full details (with its comments inside `comments`), one row per hashtag. Main columns:

| Column | Meaning |
|---|---|
| `kind`, `input`, `rank` | profile, post or hashtag; the item you gave; position of the post in its list |
| `username`, `full_name`, `biography`, `external_urls`, `followers_count`, `following_count`, `verified`, `private`, `category`, `profile_pic_url` | Profile details |
| `posts_delivered`, `posts`, `posts_truncated` | Posts inside the profile or hashtag row; `posts_truncated` is true when you asked for more than Instagram shows without login |
| `shortcode`, `url`, `type`, `media_type`, `caption`, `hashtags`, `mentions`, `owner_username`, `display_url`, `video_url`, `play_count` | Post data from the list |
| `likes_count`, `likes_hidden`, `comments_count`, `timestamp`, `location_name`, `music_title`, `music_artist`, `tagged_users`, `coauthors`, `images`, `width`, `height`, `alt_text` | Post details |
| `comments_delivered`, `comments` | Comments (Add-on: Comments): `text`, `timestamp`, `likes_count`, `replies_count`, `owner_username` |
| `error`, `error_code` | Why an item could not be delivered (not charged) |

```json
{
  "kind": "post",
  "input": "https://www.instagram.com/nasa/",
  "rank": 1,
  "shortcode": "Dfc1mYxFevS",
  "url": "https://www.instagram.com/reel/Dfc1mYxFevS/",
  "type": "reel",
  "caption": "Apply to become an astronaut! ...",
  "likes_count": 88458,
  "comments_count": 1189,
  "timestamp": "2026-11-07T18:35:41Z",
  "owner_username": "nasa",
  "comments_delivered": 11,
  "comments": [{"text": "...", "timestamp": "2026-11-12T19:06:19Z", "likes_count": 1, "owner_username": "..."}]
}
```

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

Pay per event, in US$ per 1,000. Your price depends on your Apify plan, and the Apify pricing panel shows the price that applies to you.

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Profile (with the posts of the profile page, up to 12, included) | $2.35 | $2.05 | $1.80 | $1.45 |
| Post with full details | $2.40 | $2.05 | $1.80 | $1.45 |
| Post (list only): hashtag posts and profile posts beyond the first 12 | $1.50 | $1.30 | $1.10 | $0.90 |
| Add-on: Comment | $2.35 | $2.05 | $1.90 | $1.70 |

Each run also has a tiny start fee of $0.00005 per GB of memory (about $0.05 per 1,000 runs). **The date filter and the proxy country are included. Private profiles, removed posts and failed links are not charged.**

**Example (Free plan):** 100 profiles with their 12 latest posts cost $0.235 (the posts of the profile page are included); 1,000 posts with full details, $2.40; 100 posts with 11 comments each, $0.24 + $2.59 = $2.83.

**Is it free to try?** Yes. The Apify Free plan includes $5 of usage every month, with no credit card, which covers about 2,100 profiles with their latest posts, or 2,000 posts with full details.

### 🔌 Use it through the API

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("t800solutions/instagram-scraper").call(run_input={
    "start_urls": ["https://www.instagram.com/nasa/"],
    "max_posts_per_profile": 12,
    "post_details": True,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["kind"], row.get("username") or row.get("shortcode"), row.get("likes_count"))
```

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

const client = new ApifyClient({ token: "YOUR_APIFY_TOKEN" });
const run = await client.actor("t800solutions/instagram-scraper").call({
  start_urls: ["#travel"], max_posts_per_hashtag: 12,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].posts.length, "posts");
```

```bash
curl -X POST "https://api.apify.com/v2/acts/t800solutions~instagram-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"start_urls": ["https://www.instagram.com/p/Dfc1mYxFevS/"], "comments": true}'
```

### 🔗 Integrations

- **n8n**: the [Apify node](https://docs.apify.com/platform/integrations/n8n) runs this Actor and returns the rows, for example to send new posts of a profile to a Google Sheet or to an AI step that reads the captions and comments.
- **Make and Zapier**: the Apify modules start a run and fetch the dataset.
- **Webhooks**: get a call when the run finishes, then read the dataset through the API.
- **Scheduling**: run it daily or weekly from the Apify Console to track profiles and hashtags over time.
- **MCP**: connect the Actor to an AI assistant through the Apify MCP server.

### 💡 What people use it for

- **Influencer research**: followers, engagement and recent posts of a list of creators.
- **Brand and competitor monitoring**: captions, likes and comments of competitor accounts and hashtags.
- **Social listening**: comments on a campaign post, exported for analysis.
- **Content datasets**: captions, hashtags and media URLs for AI and reporting.

### ❓ FAQ

**Does it need my Instagram login or cookies?** No. It reads what Instagram shows to a visitor who is not logged in; that is why the number of posts per profile (up to 24) and comments per post (about 11) is limited.

**Why did I get fewer posts than I asked for?** Without login Instagram always shows the 12 latest posts of a profile, sometimes 12 more (up to 24), and about 11 comments per post. The row has `posts_truncated: true` when it showed fewer than you asked for; posts not delivered are not charged.

**Can it scrape private profiles, stories, followers lists or mentions?** No: those need a logged-in account. Private profiles are delivered with `private: true` and no posts, and are not charged.

**Why is `likes_count` null?** The author hid the like count; `likes_hidden` is true in that case.

**Can I export to Excel?** Yes. Open the **Results** tab, click Export and choose Excel or CSV. Posts and comments are inside each row; for large lists use JSON or the API.

**Is it legal to scrape Instagram?** The Actor collects only public data shown to anyone without login. You are responsible for how you use the data and for complying with the laws that apply to you, such as GDPR.

**Something failed?** Rows with `error` and `error_code` explain unavailable items; they are not charged. Report problems in the Issues tab.

### 🧩 More Actors by T800 Solutions

| Actor | What it does |
|---|---|
| [📍 Google Maps Scraper – Most Accurate Extractor](https://apify.com/t800solutions/google-maps-scraper) | Business names, phones, websites, addresses, ratings and reviews from Google Maps, across whole cities and only inside your area |
| [📄 PDF Extractor All-in-One: Text, Tables & OCR](https://apify.com/t800solutions/pdf-extractor) | PDF to text, Markdown, tables, OCR for scanned PDFs in 20 languages, RAG chunks and images |
| [📹 YouTube Scraper All-in-One: Videos & Transcripts](https://apify.com/t800solutions/youtube-scraper) | Videos, Shorts, live streams, channels and playlists from YouTube, with comments and transcripts in one run |

All our Actors: [apify.com/t800solutions](https://apify.com/t800solutions) · Code examples for every Actor: [github.com/t800solutions/apify-actors](https://github.com/t800solutions/apify-actors)

More examples ready to copy (Python, JavaScript and cURL) on GitHub: [github.com/t800solutions/apify-actors/instagram-scraper](https://github.com/t800solutions/apify-actors/tree/main/instagram-scraper)

# Actor input Schema

## `start_urls` (type: `array`):

One per line: profile links or usernames (https://www.instagram.com/nasa/ or @nasa), post or reel links (https://www.instagram.com/p/XXXX/), and hashtags (#travel or https://www.instagram.com/explore/tags/travel/).

## `max_posts_per_profile` (type: `integer`):

Posts delivered with each profile, newest first. The 12 of the profile page are always delivered (and included in the profile price); up to 24 when Instagram allows. 0 = profile details only.

## `max_posts_per_hashtag` (type: `integer`):

Recent posts delivered with each hashtag (up to 12 without login).

## `post_details` (type: `boolean`):

Open each post from the profiles and hashtags to get likes, comment count, exact date, location, music, tagged users and media URLs. Post links always get full details.

## `comments` (type: `boolean`):

Get the comments of each post (the ones Instagram shows without login, about 11 per post). Turns on Post details.

## `max_comments_per_post` (type: `integer`):

Upper limit of comments delivered per post (the comments Instagram shows on the public post page, about 11).

## `only_newer_than` (type: `string`):

Keep only posts published on or after this date (YYYY-MM-DD). Included, not charged.

## `max_total_results` (type: `integer`):

Safety cap on profiles + posts + hashtags delivered in one run.

## `proxy_country` (type: `string`):

Two-letter country code of the proxy (what Instagram shows can vary by country).

## Actor input object example

```json
{
  "start_urls": [
    "https://www.instagram.com/nasa/"
  ],
  "max_posts_per_profile": 12,
  "max_posts_per_hashtag": 12,
  "post_details": false,
  "comments": false,
  "max_comments_per_post": 50,
  "max_total_results": 100000,
  "proxy_country": "US"
}
```

# Actor output Schema

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

All profiles, posts and hashtags delivered by the run, one row each, with posts and comments inside.

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

Status, inputs done, profiles, posts and comments delivered, amount charged so far and duration. Updated every 15 seconds while the run is going, and final at the end.

# 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 = {
    "start_urls": [
        "https://www.instagram.com/nasa/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("t800solutions/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 = { "start_urls": ["https://www.instagram.com/nasa/"] }

# Run the Actor and wait for it to finish
run = client.actor("t800solutions/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 '{
  "start_urls": [
    "https://www.instagram.com/nasa/"
  ]
}' |
apify call t800solutions/instagram-scraper --silent --output-dataset

```

## MCP server setup

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