# Instagram Reel Scraper — Play Counts, Likes & Comments (`headofactors/instagram-reel-scraper`) Actor

Scrape public Instagram reels by username, profile ID, profile URL, reel URL or audio URL. Get play counts, likes, comments, duration, owners and video/audio URLs. Automatic pagination and date filters.

- **URL**: https://apify.com/headofactors/instagram-reel-scraper.md
- **Developed by:** [HeadOfActors](https://apify.com/headofactors) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 reels

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

Instagram Reel Scraper collects public Instagram reels with play counts, likes, comment counts, captions, duration, creator details and video or audio URLs. Supply a profile or one reel URL; no Instagram login is required.

### Instagram Reel Scraper: what you get

Use this actor to follow public creator activity, compare engagement across campaigns, find videos about a subject, or collect source URLs for your own reporting. Each successful record represents one public reel. The output preserves the familiar Instagram scraper names, including `shortCode`, `ownerUsername`, `caption`, `likesCount`, `commentsCount`, `videoPlayCount` and `timestamp`. You can export the dataset as JSON, CSV or Excel through Apify's dataset tools.

The actor reads the public reels tab. Instagram trial reels do not appear there, so they are always excluded. The `skipTrialReels` option is accepted for compatibility and does not change that behavior. If your previous workflow included trial reels by default, the set of returned videos can differ even when the requested limit is the same. Private account content is unavailable.

### Use cases

- **Creator and competitor tracking:** schedule a daily run with `onlyPostsNewerThan` set to `1 days` and store `videoPlayCount`, `likesCount` and `commentsCount` per `shortCode` to see which reels take off.
- **Campaign reporting:** paste the reel URLs from an influencer campaign into `username` and export play counts, captions and durations to a spreadsheet.
- **Trend and sound research:** pass an Instagram audio URL to list public reels that use the same sound.
- **Content libraries:** collect `videoUrl`, `displayUrl` and captions of your own public reels for archiving or repurposing.

### Input

`username` is a required list. Each entry can be an Instagram username, an @handle, a public profile URL, a numeric profile ID, a direct reel URL, or an Instagram audio URL. Blank lines are ignored and equivalent profile inputs are deduplicated. Standard Instagram profile URLs and URLs ending in `/reels/` are accepted. Direct video URLs may use `/reel/`, `/reels/`, `/p/` or `/tv/`.

`resultsLimit` sets the maximum number of reels per profile or audio input. When omitted, it is 25. A direct reel URL returns at most that one requested reel, regardless of a larger limit. Multiple profiles each receive their own limit. The actor follows continuation pages automatically; an API caller can continue using the returned cursor and the same original input.

`onlyPostsNewerThan` accepts a UTC date such as `2026-11-12`, a UTC datetime, or an interval such as `7 days`. Relative dates are anchored to the start of the collection so a continuation uses the same cutoff. The filter is ignored for audio inputs. Older pinned reels are skipped without incorrectly stopping the rest of the scan. `skipPinnedPosts` excludes pinned reels entirely.

`includeSharesCount`, `includeTranscript` and `includeDownloadedVideo` are accepted to preserve existing input names. These features are currently unavailable. Enabling them returns an explicit warning, while `sharesCount`, `transcript` and `downloadedVideo` remain null. No shares, transcription or file download event is charged. The public `videoUrl` is still returned when Instagram supplies it.

### Output

Use `videoPlayCount` for views. Instagram retired the older `videoViewCount` field; it remains present as null. The play count comes from the public reels feed and can include repeat plays. It should not be interpreted as unique viewers. A direct reel URL is enriched with its owner's recent feed. When the requested reel is outside that recent window, `videoPlayCount` remains present as null and a warning explains the missing value. Available duration and engagement fields remain on the record.

`latestComments` contains visible public comments in source order. It is not a complete export of every comment on a reel. `firstComment` contains the first visible comment in that list. If comments cannot be fetched, the actor preserves the reel and returns an empty list with a warning. `alt` contains the public accessibility caption when available.

Media fields include `displayUrl`, `images`, `videoUrl`, `audioUrl`, dimensions and duration. These are original source URLs and may expire. `ownerId` and `id` are strings to preserve large identifiers. `paidPartnership` and `isPinned` are explicit booleans. Hashtags and mentions preserve source spelling; the additional `hashtagsNormalized` list provides lowercase, deduplicated tags. `fetched_at` records the collection time in UTC.

Unavailable inputs produce clear errors. A nonexistent profile or an empty private profile returns `not_found` when it is the only input. In a mixed collection, an unavailable input can appear as a diagnostic row with `error` and `errorDescription`; it has no `shortCode` and does not count as a reel. Temporary source blocks are retryable errors, so a blocked collection is not silently reported as an empty success.

#### Example output

A real record from a public reel (shortened; the full record also holds `latestComments`, media URLs and dimensions):

```json
{
  "inputUrl": "https://www.instagram.com/reel/Df5pPTfAhBI/",
  "type": "Video",
  "shortCode": "Df5pPTfAhBI",
  "url": "https://www.instagram.com/p/Df5pPTfAhBI/",
  "ownerUsername": "natgeo",
  "ownerFullName": "National Geographic",
  "commentsCount": 32,
  "likesCount": 5513,
  "videoPlayCount": 392971,
  "videoDuration": 21.055999755859375,
  "timestamp": "2026-11-18T23:05:45.000Z",
  "hashtags": [
    "BestOfTheWorld"
  ],
  "mentions": [
    "birch"
  ],
  "productType": "clips",
  "isPinned": false,
  "paidPartnership": false,
  "caption": "Situated on Spain's northern coast, Santander is often overlooked by those outside of Spain, but the arrival of two worl…"
}
```

### How it compares

The input and output field names match the Apify Instagram Reel Scraper that most users start with, so an existing integration can switch without remapping. We ran the same ten fixed inputs (a username, a profile URL, an @handle, a profile ID, a direct reel URL, a date window, pinned-post skipping, an unknown profile, a 60-reel run and a multi-profile run) through both on 19 November 2026:

| | Apify Instagram Reel Scraper | This actor (local handler run) |
|---|---|---|
| Inputs handled as expected | 10 of 10 | 10 of 10 |
| Reels returned across the ten inputs | 191 | 191 |
| Median run time per input | 33.8 s | 29.3 s |
| Non-empty fields per reel | 29.3 | 29.6 |
| Price per 1,000 reels | 2.36 USD (measured, Bronze plan) | see the pricing panel; measured after launch |

The competitor figure is measured from real runs. Ours was measured against the handler without platform startup time, so live run times will be somewhat higher. Differences you should know about: trial reels are always excluded, and shares, transcripts and video downloads are not delivered.

### Pricing and limits

The actor charges the reel event only for delivered records that contain a `shortCode`. Diagnostic rows do not incur a reel charge. The configured actor start event is separate. Check the current Apify pricing panel for the actual published amounts; the local benchmark does not establish our future live Apify price. Shares, transcripts and video downloads have no additional charge because those features are not delivered.

Free users receive at most ten reel records per run. Paid runs can collect more through automatic continuation. A profile with fewer public matching reels naturally returns fewer than the requested limit. Audio feeds can expose fewer public records than Instagram's displayed audio usage count; completeness beyond the public feed is not promised.

### FAQ

#### Why do I see fewer reels than in another scraper?

Trial reels, private content, date filters, pinned post filters and public availability can change the set of videos. This actor collects the public reels tab. A requested limit is an upper bound and does not create records that Instagram does not expose.

#### Which field should I use for views?

Use `videoPlayCount`. The older `videoViewCount` is deprecated and null. Older direct reel links may also have a null play count when the video is no longer in the creator's recent public feed.

#### Can I download every comment or generate transcripts?

The actor returns visible comments attached to the public reel page. It does not provide a complete comment archive, transcript generation or stored video files. Unsupported options return a warning and do not produce an extra charge.

#### Can I collect a private account?

Only public content is supported. Private or unavailable profiles return a clear error. Retry temporary source errors; changing a result limit cannot make private material public.

After a complete successful collection, the actor asks for an Apify review. Empty collections and runs with source failures do not trigger that request.

# Actor input Schema

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

Instagram usernames, @handles, public profile URLs, numeric profile IDs, reel URLs or audio URLs. Public data only; trial reels are not visible.

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

Maximum reels per input profile or audio URL. A reel URL returns at most one reel. When omitted, 25 is used.

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

UTC date or datetime, or a relative interval such as 7 days. Pinned older reels do not stop the scan. Ignored for audio URLs.

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

Skip reels pinned to the top of the public reels tab.

## `skipTrialReels` (type: `boolean`):

Accepted for compatibility. Only the public reels tab is available, so trial reels are always excluded.

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

Accepted for compatibility. Shares are not public: sharesCount stays null, with a warning and no shares charge.

## `includeTranscript` (type: `boolean`):

Accepted for compatibility. Transcription is unavailable: transcript stays null, with a warning and no transcript charge.

## `includeDownloadedVideo` (type: `boolean`):

Accepted for compatibility. File download is unavailable: downloadedVideo stays null, with a warning and no download charge.

## `cursor` (type: `string`):

Opaque continuation from next_cursor. Resend the original input unchanged. Apify follows this automatically.

## Actor input object example

```json
{
  "username": [
    "natgeo"
  ],
  "resultsLimit": 25,
  "skipPinnedPosts": false,
  "skipTrialReels": false,
  "includeSharesCount": false,
  "includeTranscript": false,
  "includeDownloadedVideo": false
}
```

# Actor output Schema

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

Reel records with the familiar field names.

## `output` (type: `string`):

Counts, warnings and collection status.

# 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": 25
};

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

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

```

## MCP server setup

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