# Instagram Reel Tracker - Likes, Comments, Daily Changes (`magenta_courser/instagram-reel-tracker`) Actor

Paste Instagram reel links, post links or usernames and get likes, comments and views per reel, with the change since your last run. Same column names as apify/instagram-reel-scraper. No login, no cookies, no browser.

- **URL**: https://apify.com/magenta_courser/instagram-reel-tracker.md
- **Developed by:** [SUNGHWAN CHO](https://apify.com/magenta_courser) (community)
- **Categories:** Social media, Videos, Marketing
- **Features:** Limited permissions
- **Stats:** 6 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 4.00 out of 5 stars

## Pricing

from $1.20 / 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.
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 Reel Tracker: Likes, Comments and Daily Changes

> **Free plan:** Apify's $5 monthly credit covers about 3,300 reels with this Actor.

Paste Instagram reel links (or post links, profile links, usernames) and get exact likes, comments and embed views per reel, with the change since your last run. It is an Instagram reel scraper without login, cookies or browser: every number comes from pages Instagram serves to logged-out visitors. Marketing teams use it to track a fixed list of influencer campaign reels every day and get one row per link with `likeChange`, `commentChange`, `viewChange` and `followerChange` already computed. The rows use the same key names, types and order as [apify/instagram-reel-scraper](https://apify.com/apify/instagram-reel-scraper), so it is a drop-in replacement for that Actor in existing sheets and pipelines; keys that need a login (such as `videoPlayCount`) are kept but `null`.

### What you get

One row per reel. `status: ok` rows are charged (event `reel`); every other status (`not_found`, `restricted`, `unsupported`, `blocked`, `error`) is a free row with a `statusMessage` that says what to do next, so you always know which link went missing.

#### Core columns (shared with apify/instagram-reel-scraper)

| Column | Type | Description |
|---|---|---|
| `inputUrl` | string | The link or username you pasted |
| `id`, `shortCode` | string | Media id and short code of the reel |
| `type` | string | `Video` for reels |
| `url` | string | Canonical `instagram.com/p/<code>/` URL |
| `caption` | string | Caption text |
| `hashtags`, `mentions` | array of strings | Parsed from the caption |
| `commentsCount` | integer | Exact comment count |
| `likesCount` | integer | Exact likes (not "1.2M"); `null` when the owner hides likes |
| `videoViewCount` | integer | Exact view count of the public embed page (needs `includeViewCount`); not the same metric as the app's "plays" |
| `timestamp` | ISO string | Publish time |
| `videoDuration` | number | Seconds |
| `productType` | string | `clips` for reels |
| `ownerUsername`, `ownerFullName`, `ownerId` | string | Account that posted the reel |
| `displayUrl`, `videoUrl`, `audioUrl`, `images`, `childPosts` | string / array | Media URLs are signed and expire |
| `dimensionsHeight`, `dimensionsWidth`, `originalHeight`, `originalWidth` | integer | Media dimensions |
| `alt` | string | Instagram's alt text |
| `taggedUsers`, `coauthorProducers`, `musicInfo` | array / object | Same shape as the reference; `coauthorProducers` is `[]` when there are none |

Reference keys that are always `null` without a login: `videoPlayCount`, `firstComment`, `latestComments`, `isPinned`, `paidPartnership`; `isCommentsDisabled` is `null` unless the page states it.

#### Columns this Actor adds

| Column | Type | Description |
|---|---|---|
| `status` | string | `ok`, `not_found`, `restricted`, `unsupported`, `blocked`, `error` |
| `statusMessage` | string | For rows that are not ok: what happened and what to do next |
| `ownerFollowersCount` | integer | Follower count from the embed page (needs `includeViewCount`) |
| `ownerIsVerified` | boolean | Verified badge |
| `likesCountIsApprox`, `commentsCountIsApprox`, `videoViewCountIsApprox` | boolean | `true` when Instagram printed a rounded number |
| `scrapedAt`, `previousScrapedAt` | ISO string | Time of this reading and of the reading it is compared with |
| `likeChange`, `commentChange`, `viewChange`, `followerChange` | integer | This run minus the previous run with the same `historyStoreName`. `null` on the first run |
| `playChange` | integer | Always `null` (because `videoPlayCount` is not available without login) |
| `isFirstSeen` | boolean | `true` when the history store has no earlier reading |

`videoViewCount` and `ownerFollowersCount` on reel-link rows come from the embed page, which Instagram caches: they can stay unchanged for a while and then jump. `likesCount` and `commentsCount` come from the live reel page.

`columnFormat: "tracker"` gives a compact flat row with this Actor's own names instead.

### Sample output

One real row from a run of this Actor (`columnFormat: "apify"`, first run so the change fields are `null`; signed media URLs and the `taggedUsers` / `coauthorProducers` arrays shortened):

```json
{
  "inputUrl": "https://www.instagram.com/reel/DHVrPLrIyQ_/",
  "id": "3590966437224850495",
  "type": "Video",
  "shortCode": "DHVrPLrIyQ_",
  "caption": "Meet the National Geographic 33! \n\nIn homage to our 33 founders, we're honoring modern trailblazers who are making a profound impact on conservation, science, policy, storytelling, and beyond. See how they're inspiring meaningful action at the link in bio. #NatGeo33",
  "hashtags": ["NatGeo33"],
  "mentions": [],
  "url": "https://www.instagram.com/p/DHVrPLrIyQ_/",
  "commentsCount": 117,
  "firstComment": null,
  "latestComments": null,
  "dimensionsHeight": 1088,
  "dimensionsWidth": 612,
  "originalHeight": 1280,
  "originalWidth": 720,
  "displayUrl": "https://scontent-ord5-2.cdninstagram.com/v/t51.71878-15/503285512_3996928200620957_6430910408958756623_n.jpg?...",
  "images": [],
  "videoUrl": "https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m367/AQMDLAvjqy33uVkZNMr1bAc1IT7e73KTvdNZvkD6tIjTQspTDbmcsck1wSnD6mecnHWintBX45YFhym9tIq7wVE5A3jUmP5mpoGIq1g.mp4?...",
  "audioUrl": "https://scontent-ord5-1.cdninstagram.com/o1/v/t2/f2/m86/AQP1_7h56JHaDhdXBZEcrsUkt7CwmugSeKx5GFwL1BYIFCZUViE271NKn_t59u3Q8brDcUb5RBm1N-SYU3dSzThl.mp4?...",
  "alt": "Video by National Geographic on March 18, 2025.",
  "likesCount": 11274,
  "videoViewCount": 268922,
  "timestamp": "2025-03-18T11:16:43.000Z",
  "childPosts": [],
  "ownerFullName": "National Geographic",
  "ownerUsername": "natgeo",
  "ownerId": "787132",
  "productType": "clips",
  "videoDuration": 52.053333,
  "isPinned": null,
  "taggedUsers": [
    { "full_name": "National Geographic Travel", "username": "natgeotravel", "profile_pic_url": "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-19/...", "is_verified": true, "id": "23947096" }
  ],
  "coauthorProducers": [
    { "profile_pic_url": "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-19/...", "is_unpublished": false, "username": "natgeotravel", "is_verified": true, "full_name": "National Geographic Travel", "id": "23947096", "__typename": "User" }
  ],
  "musicInfo": {
    "artist_name": "natgeo",
    "song_name": "Original audio",
    "uses_original_audio": true,
    "should_mute_audio": false,
    "should_mute_audio_reason": "",
    "audio_id": "998408589024391"
  },
  "isCommentsDisabled": null,
  "videoPlayCount": null,
  "paidPartnership": null,
  "status": "ok",
  "statusMessage": null,
  "ownerFollowersCount": 268183087,
  "ownerIsVerified": true,
  "likesCountIsApprox": false,
  "commentsCountIsApprox": false,
  "videoViewCountIsApprox": false,
  "scrapedAt": "2026-11-09T06:31:13.730Z",
  "previousScrapedAt": null,
  "likeChange": null,
  "commentChange": null,
  "viewChange": null,
  "playChange": null,
  "followerChange": null,
  "isFirstSeen": true
}
```

**Second run (changes filled).** The prefilled input run a second time a few minutes after the first, with the same `historyStoreName`: one real row, shortened to the count and change columns (the full row has the same columns as the one above).

```json
{
  "inputUrl": "https://www.instagram.com/reel/DfhrtQEykDv/",
  "ownerUsername": "natgeo",
  "likesCount": 71657,
  "commentsCount": 310,
  "videoViewCount": 527203,
  "ownerFollowersCount": 268157218,
  "status": "ok",
  "scrapedAt": "2026-11-12T03:04:31.320Z",
  "previousScrapedAt": "2026-11-12T03:01:03.115Z",
  "likeChange": 11,
  "commentChange": 0,
  "viewChange": 71,
  "playChange": null,
  "followerChange": 0,
  "isFirstSeen": false
}
```

### Use cases

1. **Influencer campaign reporting.** A marketing team keeps the reel links of a campaign in one scheduled task, runs it every morning, and reads `likeChange`, `commentChange` and `viewChange` per reel to see which creators' posts are still gaining engagement. The same links go in every day; the history store does the subtraction.
2. **Replacing an Instagram reel scraper in an existing pipeline.** An analyst who already imports apify/instagram-reel-scraper rows into a sheet or warehouse points the import at this Actor and keeps the columns, with the change fields added at the end.
3. **Creator shortlist monitoring.** An agency pastes a few usernames with `resultsLimit` to pull the reels among each account's latest posts and compares which creators' recent reels get the most likes and comments relative to their follower count (`ownerFollowersCount`).
4. **Alerts on long lists.** With `outputMode: "changesOnly"` on hundreds of reels, only new or changed reels are saved and charged, which keeps a daily check cheap.
5. **Brand collaboration tracking.** A brand manager tracks reels where the brand is tagged or co-authored (`taggedUsers`, `coauthorProducers`) and watches the daily engagement of each collaboration.

### How to use

#### Apify Console

Open the Actor, paste reel links or usernames into **Username**, and click **Start**. Only `username` is required. To get the change columns, save the input as a Task, add a Schedule, and keep the same list in it; from the second run on each row has the change fields.

```json
{
  "username": ["https://www.instagram.com/reel/DHVrPLrIyQ_/", "https://www.instagram.com/p/DX7lzTOJ1p6/", "natgeo"],
  "resultsLimit": 5
}
```

| Field | Default | What it does |
|---|---|---|
| `username` (required) | | Reel links, post links (`/p/`), profile links or usernames, one per line. Same field name as the reference Actor. |
| `resultsLimit` | 12 | Only for usernames / profile links: how many of the latest reels to read (max 12, the number of posts Instagram shows without a login). |
| `includeViewCount` | `true` | One extra request per reel to the public embed page for `videoViewCount` and `ownerFollowersCount`. Turn off to halve the requests. |
| `compareWithLastRun` | `true` | Adds the change fields, compared with the last run that used the same history store. |
| `outputMode` | `all` | `changesOnly` saves and charges only reels that are new or whose likes, comments or views changed. |
| `columnFormat` | `apify` | `apify`: reference columns plus tracking columns. `tracker`: compact flat row. |
| `historyStoreName` | `instagram-reel-history` | Named key-value store with the previous values. Use one name per campaign or client. |
| `proxyConfiguration` | Apify datacenter | A blocked request is retried once with a new IP. A selected RESIDENTIAL group is ignored with a warning; your own proxy URLs are used as given. |
| `maxRequests`, `maxRunMinutes` | 0 (unlimited), 60 | Run limits. |

Input types that differ from the reference:

- **Username / profile link**: returns the reels among the account's 12 latest posts. Instagram lists pinned posts first, so with a small `resultsLimit` you can get an older pinned reel before the newest one. There is no paging to older reels; paste their links instead. `onlyPostsNewerThan`, `skipPinnedPosts` and `skipTrialReels` are not supported.
- **Numeric profile IDs and audio URLs**: not supported (login only); they produce a free `unsupported` row.
- **The same link twice**: it is read and charged twice (one row per input line). Remove duplicates from your list.
- **Private accounts, deleted reels**: Instagram shows the same "not available" page for both to logged-out visitors, so both are reported as `not_found`.

#### API (curl)

```bash
curl -X POST "https://api.apify.com/v2/acts/magenta_courser~instagram-reel-tracker/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"username":["https://www.instagram.com/reel/DHVrPLrIyQ_/"]}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("magenta_courser/instagram-reel-tracker").call(run_input={
    "username": ["https://www.instagram.com/reel/DHVrPLrIyQ_/"],
    "historyStoreName": "campaign-spring",
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["shortCode"], row["likesCount"], row["likeChange"], row["status"])
```

#### JavaScript

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('magenta_courser/instagram-reel-tracker').call({
    username: ['https://www.instagram.com/reel/DHVrPLrIyQ_/'],
    historyStoreName: 'campaign-spring',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((r) => [r.shortCode, r.likesCount, r.likeChange, r.status]));
```

#### AI agents and MCP

Connect your agent (Claude, Cursor, a LangChain or OpenAI Agents SDK app, or any MCP client) to the Apify MCP server at `https://mcp.apify.com` with your Apify token and add this Actor as a tool, for example `https://mcp.apify.com?tools=magenta_courser/instagram-reel-tracker`. The agent then calls the tool `magenta_courser/instagram-reel-tracker` with a minimal input such as:

```json
{ "username": ["https://www.instagram.com/reel/DHVrPLrIyQ_/"] }
```

Numbers are numbers, missing values are `null`, and `status` says whether the row is usable, so an agent can read `likesCount`, `commentsCount`, `videoViewCount` and the change fields directly.

### Pricing

Pay per event. The current prices are:

| Event | Price | When |
|---|---|---|
| Actor start | $0.00005 per run | Once per run at the default 256 MB memory (one event per GB, minimum one) |
| Reel | $0.0015 per row (FREE plan); $0.001425 BRONZE, $0.00135 SILVER, $0.0012 GOLD and up | One row with `status: "ok"`. Failed, not-found, restricted, blocked and unsupported links are not charged |

Example: tracking 100 campaign reels once a day costs 100 × $0.0015 = $0.15 per run, about $4.50 per month on the FREE plan (30 runs; the start fee adds about $0.002 per month). With `outputMode: "changesOnly"` you pay only for reels whose numbers moved. Platform usage for this Actor is included in the event price.

### FAQ

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

No. The Actor reads the reel page and the public embed page as a logged-out visitor with plain HTTP requests. Nothing is logged in, and no cookies from an account are used.

#### Is this a drop-in replacement for apify/instagram-reel-scraper?

For the per-reel columns, yes: the key names, types and order match, and the tracking columns are appended. The differences are the keys that need a login and are therefore always `null` here: `videoPlayCount`, `firstComment`, `latestComments`, `isPinned`, `paidPartnership`. Shares count, transcript and video download add-ons of the reference Actor are not offered.

#### Why is `videoPlayCount` null, and what is `videoViewCount`?

The "plays" number of the app is only served to logged-in sessions, so `videoPlayCount` and `playChange` are always `null`. `videoViewCount` is the exact view count of the public embed page. Use `videoViewCount` / `viewChange` as the trend signal; the two numbers are different metrics and must not be mixed in one time series. The embed page is cached by Instagram, so `videoViewCount` and `ownerFollowersCount` can stay unchanged for a while and then jump.

#### What happens when Instagram blocks the request?

A blocked request (login wall, HTTP 401/403/429) is retried once with a new datacenter proxy session; if it is still blocked, the row is saved as `blocked` with a `statusMessage` and not charged. Requests go out at concurrency 2 with a 1-2 s pause. The run fails only when no reel at all could be read.

#### How does the change tracking work and how fresh is the data?

The first run stores each reel's numbers in the named key-value store. Every later run with the same `historyStoreName` fills `previousScrapedAt` and the `...Change` fields. Likes and comments are read live from the reel page at the moment of the run. If the named history store cannot be opened (some API tokens have no access to named storages), the run continues without comparison, logs a warning and sets `historyAvailable: false` in `RUN_SUMMARY`.

#### When am I not charged?

Rows with `status` `not_found`, `restricted`, `unsupported`, `blocked` or `error` are free. With `outputMode: "changesOnly"`, unchanged reels are neither saved nor charged. If you set **Maximum cost per run**, the Actor stops before exceeding it and the remaining reels get free `error` rows.

#### Can I get older reels of an account?

No. A username or profile link gives only the reels among the 12 latest posts that Instagram shows without a login. Paste the links of older reels directly to track them.

#### Where do I see the run totals?

The key-value record `RUN_SUMMARY` has rows per status, requests and blocks per proxy, and the stop reason. It is not billed.

### 한국어 안내

인스타그램 릴스 링크(또는 게시물 링크, 프로필 링크, 사용자명)를 넣으면 릴스 1개당 1행으로 정확한 좋아요 수, 댓글 수, 공개 임베드 페이지의 조회수(`videoViewCount`), 팔로워 수와 지난 실행 대비 증감(`likeChange`, `commentChange`, `viewChange`, `followerChange`)이 나옵니다. 컬럼 이름·타입·순서가 apify/instagram-reel-scraper와 같아 기존 시트나 파이프라인을 그대로 쓸 수 있습니다. 로그인·쿠키·브라우저 없이 비로그인 방문자에게 보이는 페이지만 읽으므로, 앱의 "재생수"(`videoPlayCount`)와 댓글 본문, 고정 여부, 유료 광고 표시는 항상 `null`입니다. 가격은 정상 행 1건당 $0.0015(FREE 플랜 기준, 상위 플랜 할인)와 실행당 시작 비용 $0.00005이며, 릴스 100개를 매일 추적하면 월 약 $4.50입니다. 삭제·비공개·차단·미지원 링크는 상태 행으로 나오고 과금되지 않습니다. 사용자명으로는 최신 게시물 12개 안의 릴스만 가져오므로, 오래된 릴스는 링크를 직접 넣어야 합니다.

### Notes

- Only public data is collected, no personal data beyond what Instagram shows on the public page, and no account is used. Checking that your use complies with Instagram's terms of service and the laws that apply to you is your responsibility.

### Need another field or feature?

Tell us in the **Issues** tab: a missing field, another input mode, a different output format. We aim to ship requested fields and features within a week, and we answer every issue.

# Actor input Schema

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

One per line. Reel/post links (https://www.instagram.com/reel/<code>/ or /p/<code>/) give one row each. A username or profile link gives the reels among that account's 12 latest posts (older reels need their own links). Audio URLs and numeric profile IDs are not supported and produce a free status row.

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

Only for usernames / profile links: how many of the latest reels to read (at most 12, the number of posts Instagram shows without a login). Ignored for reel links.

## `includeViewCount` (type: `boolean`):

Adds one request per reel to Instagram's public embed page, which carries videoViewCount and the owner's follower count. Turn off to halve the requests; both fields are then null.

## `compareWithLastRun` (type: `boolean`):

Stores each reel's numbers in a named key-value store and fills likeChange, commentChange, viewChange, followerChange and previousScrapedAt on the next run.

## `outputMode` (type: `string`):

changesOnly saves (and charges) only reels seen for the first time or whose likes, comments or views changed since the last run.

## `columnFormat` (type: `string`):

"apify" keeps the key names, types and order of apify/instagram-reel-scraper (keys that need a login are null) and appends the tracking columns. "tracker" is a shorter flat row.

## `historyStoreName` (type: `string`):

Named key-value store that keeps the previous numbers. Use a different name per campaign or client to keep comparisons separate.

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy by default; a blocked request is retried once with a new IP. This Actor works on datacenter proxies only: if the RESIDENTIAL group is selected it is ignored with a warning and the run uses the datacenter proxy (residential is slower and would only raise cost). Your own proxy URLs are used as given.

## `maxRequests` (type: `integer`):

Stop after this many HTTP requests (retries included). 0 = unlimited.

## `maxRunMinutes` (type: `integer`):

The run stops cleanly and saves what it has when this time is reached.

## Actor input object example

```json
{
  "username": [
    "https://www.instagram.com/reel/DHVrPLrIyQ_/",
    "https://www.instagram.com/reel/DfhrtQEykDv/",
    "https://www.instagram.com/reel/DfhyUf-vhkA/",
    "https://www.instagram.com/reel/De-4Ur_xzn5/",
    "https://www.instagram.com/reel/C4zKaNdRT5Y/"
  ],
  "resultsLimit": 12,
  "includeViewCount": true,
  "compareWithLastRun": true,
  "outputMode": "all",
  "columnFormat": "apify",
  "historyStoreName": "instagram-reel-history",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxRequests": 0,
  "maxRunMinutes": 60
}
```

# Actor output Schema

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

One row per reel (or one status row per input that could not be read).

## `runSummary` (type: `string`):

Rows per status, requests and blocks per proxy, stop reason.

# 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": [
        "https://www.instagram.com/reel/DHVrPLrIyQ_/",
        "https://www.instagram.com/reel/DfhrtQEykDv/",
        "https://www.instagram.com/reel/DfhyUf-vhkA/",
        "https://www.instagram.com/reel/De-4Ur_xzn5/",
        "https://www.instagram.com/reel/C4zKaNdRT5Y/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("magenta_courser/instagram-reel-tracker").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": [
        "https://www.instagram.com/reel/DHVrPLrIyQ_/",
        "https://www.instagram.com/reel/DfhrtQEykDv/",
        "https://www.instagram.com/reel/DfhyUf-vhkA/",
        "https://www.instagram.com/reel/De-4Ur_xzn5/",
        "https://www.instagram.com/reel/C4zKaNdRT5Y/",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("magenta_courser/instagram-reel-tracker").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": [
    "https://www.instagram.com/reel/DHVrPLrIyQ_/",
    "https://www.instagram.com/reel/DfhrtQEykDv/",
    "https://www.instagram.com/reel/DfhyUf-vhkA/",
    "https://www.instagram.com/reel/De-4Ur_xzn5/",
    "https://www.instagram.com/reel/C4zKaNdRT5Y/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call magenta_courser/instagram-reel-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,magenta_courser/instagram-reel-tracker"
        }
    }
}
```

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/Ns3j9ewrbS5Ui9ilx/builds/kSM73iI2rd3t24j77/openapi.json
