# Instagram Reels Posts (`opspilot.cc/instagram-reels-posts`) Actor

🎬 Instagram Reels Posts | The play counts Instagram hides everywhere else Give it a numeric Instagram user id and get every Reel as a row: real play count, likes, comments, caption, duration, coauthor count and link — plus a per-account summary with median plays, the view-to-like ratio, and the sh…

- **URL**: https://apify.com/opspilot.cc/instagram-reels-posts.md
- **Developed by:** [wang wei](https://apify.com/opspilot.cc) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.005 / actor start

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

> The play counts Instagram hides everywhere else — measured from 962,820 to 8,176,424 on a single account.

### ✨ What you get

One dataset row per Reel:

| Field | What it is |
|---|---|
| **`playCount`** | **real play count — the reason this Actor exists** |
| `likeCount` / `commentCount` | engagement |
| `viewToLikeRatio` | likes as a percentage of plays — how much of the reach actually engaged |
| `countsHidden` | `true` when the author hides like/view counts, so a 0 means *hidden*, not *nobody liked it* |
| `caption` / `hasCaption` | the caption; `hasCaption: false` is kept, not dropped |
| `durationSeconds` | length in seconds |
| `coauthorCount` | how many collaborators are credited on the Reel |
| `isVideo` / `displayUrl` / `thumbnailUrl` | media |
| `publishedAt` / `shortcode` / `url` | time, id and a direct `/reel/<shortcode>/` link |
| `userId` / `username` | the account |

The run summary gives, per account: Reels collected, how many rows actually carried a play count plus that as a `shareWithPlayCount`, median and total plays, median likes and comments, **`medianViewToLikeRatio`**, median duration, captionless and coauthored counts, hidden-count rows, has-more-pages, and the 5 most-played Reels.

### 💼 Use cases

- **Getting the reach number other Actors cannot give you** — play counts run from 962,820 to 8,176,424 on a single account in one run. Instagram hides them on the feed and in hashtag listings, which is why the hashtag Actor reports a `shareWithLikes` share at all; this leg returns them directly.
- **Judging whether reach actually converts** — `viewToLikeRatio` and the summary's `medianViewToLikeRatio` separate a high-play, low-ratio Reel that bought its reach from a low-play, high-ratio Reel that is worth more per view. The latter is the one to brief again.
- **Telling hidden counts from unliked Reels** — `countsHidden: true` marks the rows where an account switched off like and view visibility. Without that flag those zeros look like the worst content on the account; with it they are simply unknown.
- **Finding the Reel worth remaking** — the summary returns the 5 most-played Reels per account alongside `coauthorCount`, `hasCaption` and `durationSeconds`, so the format and length of the account's best performers are visible before you brief the next one.

### ✅ Who this is for

- **Video and Reels teams**— who have been told an influencer's reach is X and need the actual play count behind the claim.
- **Brands and agencies booking Reels partnerships**— who need `viewToLikeRatio` across candidates because a large play count alone hides paid reach.
- **Content strategists benchmarking short-form performance**— across up to 20 accounts using medians, not single viral posts.
- **Analysts watching a Reel's curve** — play counts keep rising after publication, so scheduling this Actor is how you see growth instead of a single snapshot.

### ❌ Who this is NOT for

- **Handles or profile URLs** — this Actor takes **numeric user ids only** and refuses handles up front with an explanation, because this source does not accept them. Use the Instagram Profile Scraper to get the `userId` first.
- **Reading a 0 as nobody liked it** — when an account hides like and view counts, Instagram returns zeros and `countsHidden: true` marks those rows. A zero there means hidden, not unliked; treating it as real would make the account's best content look like its worst.
- **Image, carousel or caption content strategy** — this is short-form video only. For the whole timeline including carousels and the accounts with no Reels at all, use the Instagram Posts Timeline Actor; the two datasets share `shortcode` values and can be joined.
- **A reach or ROI forecast** — `playCount` is Instagram's own count at collection time, not impressions, not unique viewers, not sales. It also keeps rising after publication, so one run is not a settled number.
- **Comment text or audience composition** — for what people wrote under a Reel, take the `shortcode` values to the Instagram Comments Scraper. This Actor is Instagram-only and returns no follower data.

### 🚀 Quick start

1. Open the Actor and press **Start** (defaults to `787132`, a public account).
2. Paste numeric user ids — one per line, up to 20.
3. Sort by `playCount` descending, or read `medianViewToLikeRatio` in the summary to judge whether reach converts into engagement.

### 📥 Input parameters

| Parameter | Type | Default | What it does |
|---|---|---|---|
| `userIds` | list | one public account | **Numeric** Instagram user ids, one per line, up to 20 per run. |
| `maxReelsPerAccount` | number | `60` | 1–200 Reels per account. A run-wide request budget (12 free / 40 paid) also caps total upstream calls; see Billing. |

### 📤 Output

- **Dataset** — one row per Reel (or a notice when nothing was collected)
- **SUMMARY** — per-account play distribution, view-to-like ratio, play-count coverage, top Reels, warnings

### ⚙️ How it works

1. Each input must be a numeric user id; handles are refused up front **with an explanation**, because this data source does not accept them.
2. Reels are paged with Instagram's own cursor, de-duplicated by shortcode, and the loop stops when a page adds nothing new or the cursor does not advance.
3. Rows arrive wrapped as `item.media`; the wrapper is unwrapped before normalising, so a bare-media shape (what other legs return) is also handled.
4. `play_count` and `ig_play_count` carried the same number in testing; both are read with a fallback so a future leg change cannot silently halve your counts.
5. `shareWithPlayCount` is reported per account, so a run where the field went missing is visible instead of looking like low reach.

### 💰 Billing

**Billed per run.** A single `apify-actor-start` charge applies when the run begins, at the price shown on this Actor's page. A run that returns 300 rows costs the same as one that returns 3. There is no daily run cap.

**Free plan limit.** One run collects **5 accounts over 3 pages, 60 reels each**. That is a hard ceiling on the upstream cost, so it cannot be raised from the input form. A capped run still succeeds: it writes a `notice` row to the dataset, sets `appliedLimits.capped: true` in `SUMMARY`, and logs why. Any paid Apify plan lifts the cap to 20 accounts over 15 pages and 200 reels each.

**Run-wide request budget.** On top of the per-item caps, every run has a fixed ceiling on upstream requests in total — **12 on the free plan, 40 on paid Apify plans** — shared by all accounts, keywords, hashtags or posts in that run, and counting retries. A single item can still walk all of its pages; only wide multi-item runs are compressed. Hitting the ceiling is reported, not hidden: the run still succeeds, delivers everything fetched so far, writes a `type: "notice"` row, and sets `SUMMARY.budgetExhausted: true` alongside `SUMMARY.maxRequestsPerRun` and `SUMMARY.upstreamRequests`.

The per-item figures above are upper bounds, not a promise for every run: when a run supplies the maximum number of items, the shared budget is reached first and fewer items are completed. `SUMMARY.upstreamRequests` reports exactly how many upstream requests were used.

### ❓ FAQ

**Why is this different from your other Instagram Actors?**
They cannot give you reach. Instagram hides play counts on its feed and hashtag listings — the hashtag Actor reports a `shareWithLikes` share precisely because most rows come back with zero. This leg returns real play counts, which is why it is worth running on its own.

**Do I need the numeric id rather than the handle?**
Yes. This data source only accepts the numeric id. Open the profile in a browser and the id is in the page source; a profile URL ending in `/<id>/` also works.

**What does `countsHidden` mean?**
When an account switches on "hide like and view counts", Instagram returns zeros. `countsHidden: true` marks those rows, so a `likeCount` of 0 reads as *hidden* rather than as *unliked* — which would otherwise look like the worst content on the account.

**What is a good `viewToLikeRatio`?**
It varies hugely by format and audience. What matters is comparing it across an account's own Reels and across competitors: a high-play, low-ratio Reel bought its reach, and a low-play, high-ratio Reel is worth more per view.

**Are the play counts exact?**
They are Instagram's own reported counts at the moment of collection, and they keep rising after publication. Re-run on a schedule to see a Reel's curve rather than a single snapshot.

**Can I get the comments on a Reel?**
Yes — take the `shortcode` values and use them with an Instagram comments scraper.

### 📚 Resources

- Instagram public Reels data (no login required)
- Apify free plan: monthly credit covers usage, no separate daily cap

# Changelog

This Actor's version history is a separate document: https://apify.com/opspilot.cc/instagram-reels-posts/changelog.md

# Actor input Schema

## `userIds` (type: `array`):

One per line, up to 20 per run. The Reels data source needs the numeric id, not the handle — open a profile in a browser and the id is in the page source / the ?hl= or /<id> path.

## `maxReelsPerAccount` (type: `integer`):

Cap on Reels collected per account. A run-wide request budget (12 free / 40 paid) also caps total upstream calls; see Billing.

## Actor input object example

```json
{
  "userIds": [
    "787132"
  ],
  "maxReelsPerAccount": 60
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per Reel, or a single notice when nothing was collected.

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

Per-account play distribution, view-to-like ratio, play-count coverage and warnings.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("opspilot.cc/instagram-reels-posts").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("opspilot.cc/instagram-reels-posts").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 '{}' |
apify call opspilot.cc/instagram-reels-posts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,opspilot.cc/instagram-reels-posts"
        }
    }
}
```

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/GXgNlbE4CkFZQFohQ/builds/Uf2cpAzkQfsdXiQWP/openapi.json
