# Instagram Reels Search (`opspilot.cc/instagram-reels-search`) Actor

🔍 Instagram Reels Search | What ranks for a keyword, and how far it actually reaches Give it keywords and get the matching Reels as rows with real play counts, the posting account's size, and a per-keyword report: median plays, how concentrated the results are in one account, and the biggest Reels…

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

## Pricing

from $0.05 / 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 Search

> What ranks for a keyword, and how far it actually reaches — measured in play counts, not guesswork.

### ✨ What you get

One dataset row per matching Reel:

| Field | What it is |
|---|---|
| `keyword` | which keyword produced the row |
| `shortcode` / `url` / `mediaId` | the Reel, with a direct `/reel/<shortcode>/` link |
| **`playCount`** | **real play count — the reason this Actor exists** |
| `likeCount` / `commentCount` / `viewToLikeRatio` | engagement, and likes as a share of plays |
| `countsHidden` | `true` when the author hides like/view counts, so a 0 means *hidden*, not *unliked* |
| `caption` / `hasCaption` | caption text and whether there was one |
| **`authorFollowers`** | the posting account's follower count — a big account ranking is a different signal from a small one |
| `authorFollowerCountAvailable` | distinguishes "unknown" from "0 followers" |
| `username` / `authorId` / `isVerified` / `isPrivate` | the account |
| `durationSeconds` / `isVideo` / `coauthorCount` | media details |
| `publishedAt` / `displayUrl` | time and media |

The run summary gives, per keyword: Reels collected, how many carried a play count, median and total plays, median likes and comments, **median author follower count**, unique authors, **the accounts appearing most often** (concentration), and the 5 biggest Reels.

### 💼 Use cases

- **Deciding whether a keyword is worth entering** — three numbers together: `medianPlayCount` for the reach actually available, `medianAuthorFollowers` for how big the accounts already ranking are, and `uniqueAuthors` for whether anyone owns it. A high median with a low author median means small accounts are still getting real reach.
- **Seeing who already owns a term** — `topAuthors` is a concentration measure. One account appearing five times means the keyword is effectively theirs; twelve accounts appearing once each means it is open.
- **Pricing a creator shortlist against achievable reach** — `viewToLikeRatio` alongside `playCount` tells you whether a Reel's audience actually engaged or whether the number was bought. A big play count with a low ratio is a media buy, not an organic win.
- **Finding format precedents before you shoot** — `durationSeconds`, `hasCaption` and `coauthorCount` on the ranking Reels show what length and structure is currently winning the term.

### ✅ Who this is for

- **Content strategists picking keywords**— who need achievable reach and competitive concentration in one run instead of guessing from the feed.
- **Creator-facing teams building a prospecting list** — `username`, `isVerified` and the accounts appearing most often tell you which creators to approach for a term, and `authorFollowers` tells you how big they are.
- **Small accounts testing a niche** — a high `medianPlayCount` with a low `medianAuthorFollowers` is the specific evidence that a new account can still reach a real audience there.
- **Agencies running competitor keyword sweeps**— across up to 20 terms who need the ranking rows with play counts attached, not screenshots.

### ❌ Who this is NOT for

- **Hashtag or username lookup** — a leading `#` or `@` is stripped, not searched as a tag or a handle. This Actor answers "who posts about this". For what is actually inside a tag, use the Instagram Hashtag Posts Actor.
- **Any coverage percentage or "top result" claim** — the reported result count measured as equal to the page size (12 on a keyword with far more matches), so it is not a total. No coverage figure is claimed; `hasMorePages` tells you whether more can be paged.
- **Reading `authorFollowers: null` as zero** — the search payload does not always carry it. `authorFollowerCountAvailable` separates "not reported" from "0 followers"; treating null as zero makes a small account look like a broken row.
- **Treating a 0 like count as nobody liked the Reel** — `countsHidden: true` means the author hides like and view counts and Instagram returned zeros. That is missing data, not negative performance.
- **Image and carousel content, or another platform** — this returns Reels only. For an account's whole timeline, use the Instagram Posts Timeline Actor; TikTok, YouTube Shorts and Instagram's own hashtag listings are different datasets.

### 🚀 Quick start

1. Open the Actor and press **Start** (defaults to `yoga`).
2. Add keywords — one per line, up to 20. A leading `#` or `@` is stripped, so `#yoga` and `yoga` behave the same.
3. Read `medianPlayCount` for the achievable reach and `topAuthors` for who already owns the keyword.

### 📥 Input parameters

| Parameter | Type | Default | What it does |
|---|---|---|---|
| `keywords` | list | `yoga` | Keywords to search, one per line, up to 20 per run. |
| `maxReelsPerKeyword` | number | `48` | 1–200 Reels per keyword. A run-wide request budget (12 free / 40 paid) also caps total upstream calls; see Billing. |

### 📤 Output

- **Dataset** — one row per matching Reel (or a notice when nothing matched)
- **SUMMARY** — per-keyword reach distribution, author concentration, top Reels, warnings

### ⚙️ How it works

1. Each keyword is reduced to its bare form; `#`/`@` prefixes are removed so a hashtag and a word behave identically.
2. Results are paged with Instagram's own `pagination_token`, de-duplicated by shortcode, and the loop stops when a page adds nothing new or the token does not change.
3. `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.

### 💰 Billing

**Billed per result.** Every Reel written to the default dataset is one `apify-default-dataset-item` charge, on top of the one-off `actor-start` charge when the run begins. A run that returns 300 Reels costs 300 item charges; a run that returns 3 costs 3. Per-item price is on the Actor's pricing card. Rows of `type: "notice"` are dataset rows too and are billed the same way.

**Free plan limit.** One run covers **5 keywords over 2 pages, 60 reels each**. That is a hard ceiling on the upstream cost, so it cannot be raised from the input form. Paid Apify plans get the full 20 keywords, 15 pages and 200 reels per keyword. A capped run still succeeds: it writes a `type: "notice"` row to the dataset, sets `appliedLimits.capped: true` in `SUMMARY`, and logs why — the cap is never silent and never turns into a failed run.

**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 there no coverage percentage?**
The provider's own result count was measured to equal the page size — 12 on a keyword that plainly has far more matches — so it is not a total. It is reported as `reportedResultCount` and no coverage figure is claimed. The `hasMorePages` flag tells you whether more can be paged.

**Why is `authorFollowers` null on some rows?**
The search payload does not always carry the author's follower count. `authorFollowerCountAvailable` distinguishes "not reported" from "0 followers" so a small account is never confused with an unknown one.

**What does `topAuthors` tell me?**
Concentration. If one account appears five times in a keyword's results, that keyword is effectively owned by them. If twelve different accounts appear once each, the keyword is open.

**How do I judge whether a keyword is worth entering?**
Read three numbers together: `medianPlayCount` (the reach available), `medianAuthorFollowers` (how big the accounts already ranking are) and `uniqueAuthors` (whether anyone owns it). A high median with a low author median means small accounts are getting real reach.

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

**Can I search hashtags or usernames?**
Keywords only. A leading `#` is stripped rather than searched as a tag, so this Actor answers "who posts about this" rather than "what is in this hashtag" — for the latter, use the Instagram Hashtag Posts Actor.

### 📚 Resources

- Instagram public Reels data (no login required)
- Apify free plan: monthly credit covers usage, and each run is capped as described under Billing

# Changelog

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

# Actor input Schema

## `keywords` (type: `array`):

One per line, up to 20 per run. A leading # or @ is stripped, so #yoga and yoga behave the same.

## `maxReelsPerKeyword` (type: `integer`):

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

## Actor input object example

```json
{
  "keywords": [
    "yoga"
  ],
  "maxReelsPerKeyword": 48
}
```

# Actor output Schema

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

One row per matching Reel, or a single notice when nothing matched.

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

Per-keyword reach distribution, author concentration, top Reels 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-search").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-search").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-search --silent --output-dataset

```

## MCP server setup

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

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/4YDenoKSMGOJ8jd2L/builds/IJzesLfreBb0DjOnc/openapi.json
