# Instagram Reels Scraper (`muhammad_noman_riaz/instagram-reels-super-scraper`) Actor

Plays, likes, comment count, caption, date, duration, video URL, audio and top comments from public Instagram profiles and reel URLs. No login needed. Skip pinned reels and set a limit per profile.

- **URL**: https://apify.com/muhammad_noman_riaz/instagram-reels-super-scraper.md
- **Developed by:** [Muhammad Noman Riaz](https://apify.com/muhammad_noman_riaz) (community)
- **Categories:** Social media, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 120 total users, 1 monthly users, 96.9% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.20 / 1,000 results

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 Reels Scraper

Scrape reels from public Instagram profiles, or single reels by URL. No Instagram login is needed: the actor reads the same data Instagram shows to logged-out visitors, through residential proxies.

### What does Instagram Reels Scraper do?

Instagram Reels Scraper collects reels from public Instagram profiles, and single reels from their URLs, without an Instagram login. For each reel it returns the play count, like and comment counts, caption, hashtags, mentions, publish date, duration, video and cover URLs, audio artist and title, tagged users, collaborators, the owner's username and name, and the first comments Instagram shows. It reads a profile's reels tab, which is where Instagram shows play counts to logged-out visitors, pages through it 12 reels at a time up to your limit, and can skip pinned reels. Requests go through rotating residential proxies with retries on a new IP, and only complete reels are pushed, so you never pay for empty rows. Results export to JSON, CSV or Excel, or come back through the Apify API and MCP server. It is built for short-form video research, creator analytics, trend tracking and competitor monitoring.

### What you get without cookies

For each reel scraped from a profile:

- `id`, `shortCode`, `url`, `type`, `productType`
- `caption`, `hashtags`, `mentions`
- `videoPlayCount` and `videoViewCount` (plays), `likesCount`, `commentsCount`
- `timestamp`, `videoDuration`, `videoUrl`, `displayUrl`, `images`
- `musicInfo` (artist and audio title), `taggedUsers`, `coauthorProducers`
- `ownerUsername`, `ownerFullName`, `ownerId`
- `latestComments` and `firstComment`: the first comments Instagram shows on the reel

Profiles are paginated 12 reels at a time, so `resultsLimit` works beyond the first page. In local tests a profile returned reels from the second page without cookies. `skipPinnedPosts` works without cookies.

Limits without cookies:

- Reels requested by direct URL have `videoPlayCount` and `videoViewCount` set to `null`. Play counts are only shown in a profile's reels tab, so scrape the profile if you need them.
- Comments come from the first batch Instagram shows, about 15 per reel.
- `sharesCount` (when `includeSharesCount` is on) is `null`, because Instagram does not show share counts to logged-out visitors.
- Private profiles and reels hidden from logged-out visitors are skipped and listed in `FAILED_ITEMS`.
- Every reel costs one request to load its details, so large limits take longer.

### With your cookies (optional)

If you paste cookies from your own Instagram account, the actor uses Instagram's logged-in reels feed instead of the public pages. This path was not tested in the current version, so prefer running without cookies unless the logged-out mode is blocked for you.

### Input

| Field | Required | Description |
|-------|----------|-------------|
| `username` | Yes | Usernames, profile URLs, or reel URLs |
| `resultsLimit` | No | Max reels per profile, default 30 |
| `skipPinnedPosts` | No | Leave out pinned reels |
| `maxComments` | No | Max comments per reel, default 10 |
| `includeSharesCount` | No | Adds the `sharesCount` field |
| `cookies` | No | Your own Instagram cookies, see below |
| `proxy` | No | Defaults to Apify residential proxy |
| `maxConcurrency` | No | Inputs scraped in parallel, default 5 |
| `maxRequestRetries` | No | Retries per request on a new IP, default 6 |

```json
{
  "username": ["natgeo", "https://www.instagram.com/reel/DehZj9wggt0/"],
  "resultsLimit": 30
}
```

### Output example

```json
{
  "id": "4008597565992995700",
  "type": "Video",
  "shortCode": "DehZj9wggt0",
  "caption": "Keeping up with a pack of hunting wolves...",
  "url": "https://www.instagram.com/reel/DehZj9wggt0/",
  "commentsCount": 267,
  "likesCount": 37811,
  "videoPlayCount": 851150,
  "videoViewCount": 851150,
  "videoDuration": 30.04,
  "timestamp": "2026-10-15T19:00:02.000Z",
  "ownerUsername": "natgeo",
  "musicInfo": { "artist_name": "natgeo", "song_name": "Original audio", "uses_original_audio": true },
  "inputUrl": "https://www.instagram.com/natgeo/"
}
```

### Reliability

Every request goes through a fresh residential IP if the previous one is blocked or rate-limited, up to `maxRequestRetries` times. Only complete reels are pushed to the dataset. Inputs that fail or stop early are listed with the reason in the `FAILED_ITEMS` record of the key-value store, and the run's status message shows the totals.

### How to get your Instagram cookies

Cookies are optional. Only add them if you need what the "With your cookies" section above lists.

**Use a secondary Instagram account, not your main one.** Instagram can rate-limit or temporarily lock accounts that make many requests.

#### Option 1: Chrome or Edge developer tools

1. Log in to [instagram.com](https://www.instagram.com) with your secondary account.
2. Press F12 to open developer tools.
3. Open the **Application** tab, then **Cookies**, then `https://www.instagram.com`.
4. Copy the values of `sessionid`, `ds_user_id` and `csrftoken`.
5. Paste them into the cookies field in this format:

```
sessionid=YOUR_SESSIONID; ds_user_id=YOUR_DS_USER_ID; csrftoken=YOUR_CSRFTOKEN
```

#### Option 2: Cookie-Editor extension

1. Install the Cookie-Editor extension for your browser.
2. Log in to instagram.com, open Cookie-Editor and click **Export**, then **Export as JSON**.
3. Paste the whole JSON into the cookies field.

The actor checks the format before it starts and stops with a clear message if `sessionid`, `ds_user_id` or `csrftoken` is missing. Cookie values are never written to the log.

#### Keep them safe and fresh

- Cookies work like a password. Anyone who has them can act as that account. Do not share them or put them in public tasks or shared inputs. The field is stored as a secret on Apify.
- Cookies expire, and logging out of Instagram ends them immediately. If runs start failing with "your cookies may have expired", log in again in your browser and copy fresh cookies.
- Heavy use can get the account rate-limited. If that happens, wait a few hours or use a different secondary account.

### FAQ

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

No. Play counts, likes, comments and video URLs all come back without a login. Cookies from your own secondary account are optional.

#### Why do some reels have no play count?

Play counts are shown only in a profile's reels tab. Reels added by direct URL have `videoPlayCount` set to `null`, so scrape the profile if you need plays.

#### Can I skip pinned reels?

Yes. Turn on `skipPinnedPosts`; it works without cookies because the reels tab marks pinned reels.

#### Can I download the videos?

Each reel includes `videoUrl`, a direct link to the video file. Instagram signs these links, so they expire after a while; download them soon after the run.

#### What am I charged for?

Each reel pushed to the dataset is one result. Failed inputs and skipped reels are not charged. See the Pricing tab for the current price.

### Legal

Only public data is collected. You are responsible for using it in line with Instagram's terms and data protection laws such as GDPR.

# Actor input Schema

## `username` (type: `array`):

Public Instagram usernames, profile URLs, or direct reel URLs.

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

How many reels to extract from each profile. Does not apply to reel URLs.

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

Leave out reels pinned to the top of the profile's reels tab.

## `maxComments` (type: `integer`):

Comments are taken from the first batch Instagram shows on the reel, about 15 without cookies.

## `includeSharesCount` (type: `boolean`):

Adds sharesCount to each reel. Instagram does not show share counts to logged-out visitors, so it is null unless Instagram returns it for your cookies.

## `cookies` (type: `string`):

Not needed for public reels. Paste cookies from a secondary Instagram account to use Instagram's logged-in reels feed instead. Accepts "sessionid=...; ds_user_id=...; csrftoken=..." or the JSON exported by the Cookie-Editor extension. See "How to get your Instagram cookies" in the README. Treat cookies like a password.

## `proxy` (type: `object`):

Residential proxies work best. Each retry uses a new IP.

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

How many inputs to scrape in parallel.

## `maxRequestRetries` (type: `integer`):

How many times a blocked or failed request is retried on a new IP before the input is skipped.

## Actor input object example

```json
{
  "username": [
    "natgeo"
  ],
  "resultsLimit": 30,
  "skipPinnedPosts": false,
  "maxComments": 10,
  "includeSharesCount": false,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxConcurrency": 5,
  "maxRequestRetries": 6
}
```

# Actor output Schema

## `reels` (type: `string`):

The dataset containing all scraped Instagram reels

# 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 = {
    "username": [
        "natgeo"
    ],
    "resultsLimit": 30,
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammad_noman_riaz/instagram-reels-super-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 = {
    "username": ["natgeo"],
    "resultsLimit": 30,
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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