# Instagram Reels Scraper: Play Counts, No Login (`automation_craft/instagram-reels-scraper`) Actor

Scrape Instagram reels with play counts, no login: every reel a public profile's Reels tab shows, reel links and the reels of a sound. Rows carry plays, likes, comments, caption, date, length, music, collaborators and video link. Date, plays and likes filters. JSON, CSV or API; pay per reel.

- **URL**: https://apify.com/automation_craft/instagram-reels-scraper.md
- **Developed by:** [Automation Craft](https://apify.com/automation_craft) (community)
- **Categories:** Social media, Marketing, Automation
- **Features:** Limited permissions
- **Stats:** 12 total users, 8 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.19 / 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 Reels Scraper: Play Counts, No Login

**Scrape Instagram reels with play counts from any public profile, reel link or sound, with no login and no cookies.** Give
usernames and get every reel their Reels tab shows, newest first, each with its plays, likes, comments, caption, date, length,
music, collaborators and video link. Give reel links and get each reel with its play count wherever Instagram shows it. Give a sound and get the reels that
use it. Pay only for the reels delivered.

- Reads the profile's **Reels tab**, so reels the profile's grid does not show and collab reels the profile is part of are included (and marked).
- **Play counts** from Instagram's own Reels tab or sound page on every profile and sound reel, and on reel links wherever the lookup finds them (each row says why not), never estimated.
- Filters: a date window with a start AND an end, minimum plays, likes and comments, skip pinned reels, collab reels kept, left out or alone.
- Add-ons: each reel owner's profile details, up to 50 comments a reel, the MP4 video file stored for you.
- Every miss (an unknown, renamed or private profile, a removed reel, an unknown sound) is a free status row. Each reel is charged once per run.

### Quick start

1. Open the **Input** tab and put one or more usernames (or profile links) in **Profiles**, for example `nasa`.
2. Set **Reels per profile** (12 by default) and, if you like, a date window or a minimum number of plays.
3. Click **Start**. Reels arrive in the **Output** tab within seconds; export them as JSON, CSV or Excel, or read them through the API.
4. For single reels, put reel links in **Reel links or codes**; for the reels of a sound, put audio links or sound ids in **Sounds**.

### What you get

One `reel` row per reel:

| Field | What it holds | Filled on |
|---|---|---|
| `code`, `id`, `url` | The reel's code, media id and link | every reel |
| `owner` | `username`, `id`, `fullName`, `isVerified`, `profilePicUrl`, `url` of the account that posted it | every reel |
| `playCount` | Instagram's play count | profile and sound reels: every reel shown by Instagram; links: where the lookup finds it (`playCountStatus` says why not) |
| `likeCount`, `commentCount` | Likes (null when the owner hid them, `likesHidden`) and comments | every reel |
| `caption`, `hashtags` | The caption as Instagram serves it, its hashtags in order | reels with a caption |
| `postedAt`, `postedAtTimestamp` | Publication time (UTC) | every reel |
| `durationSeconds`, `width`, `height`, `hasAudio` | Length and size of the video | every reel |
| `audio` | `type` (original or music), `title`, `artist`, `audioId`, `isExplicit` | reels with a sound |
| `videoUrl`, `videoUrlExpiresAt`, `audioUrl`, `coverUrl` | Instagram's own video link and when it expires (about a day and a half), the audio only track, the cover image | every reel |
| `isPinned`, `isCollab`, `isOnProfileGrid` | Pinned to the Reels tab; posted by another account with this profile as collaborator; shown on the profile's grid (with `checkProfileGrid`) | profile reels |
| `fbLikeCount`, `fbPlayCount` | Likes and plays of the reel's Facebook copy, as Instagram's answer carries them | where the answer carries them (likes on 136 of 1,525 reels measured, plays on 1) |
| `coauthors`, `location`, `isPaidPartnership`, `aiLabel` | Collaborators, place with coordinates, paid partnership label, AI label | where the reel carries them |
| `taggedUsers`, `mentions` | Accounts tagged in the reel and mentioned in its caption | every reel (an empty list when none) |
| `viewCount` | The reel's view counter from its embed page | with `includeViewCount` on |
| `ownerDetails` | Followers, following, posts, full name, category, account type, bio, links of the reel's owner | with `includeOwnerDetails` on |
| `comments` | Up to 50 comments: text, time, likes, reply count, author | with `maxCommentsPerReel` above 0 |
| `videoFile` | `url`, `key`, `bytes`, `megabytes` of the stored MP4 | with `downloadVideos` on |
| `source`, `input`, `inputList`, `inputPosition`, `profile`, `rankInTab` | Where the reel came from: the profile, link or sound you gave and its place in your list | every reel |

Measured on 1,525 distinct reels of this Actor's own runs on 2026-11-04: a play count on 99.9 percent (98 of 99 reel links), likes 98.6 (the rest hidden by their owners), comments, date and video link 100, length 99.9, caption 98.2, sound 98.1, hashtags 53.4, collaborators 34.2, location 17.0, AI label 1.4.

Free rows beside the reels: one `profile` row per profile read (its details: full name, followers, following, category, account
type, bio and links; reels listed, delivered and left out by each filter; why the walk stopped), one `audio` row per sound (title, artist, original or licensed, Instagram's reel count), one `status` row per kind of
miss naming the list positions, and a `summary` row with the run's counters and charges.

Every public field Instagram serves is delivered on every run: the accounts tagged and mentioned, and every website and bio link of
profile and owner details. Captions and comments are delivered exactly as Instagram serves them. You are responsible for a lawful
use of personal data, GDPR included.

Example reel row (shortened):

```json
{
  "type": "reel",
  "source": "profile",
  "input": "nasa",
  "code": "De2t82PPyx9",
  "url": "https://www.instagram.com/reel/De2t82PPyx9/",
  "owner": { "username": "nasa", "isVerified": true },
  "playCount": 3259755,
  "likeCount": 66432,
  "commentCount": 518,
  "postedAt": "2026-10-23T23:20:57.000Z",
  "durationSeconds": 59.883,
  "audio": { "type": "original", "title": "Original audio", "artist": "nasa" },
  "isPinned": false,
  "isCollab": false
}
```

### How much does it cost to scrape Instagram reels?

Pay per event, in US dollars. The price falls with your Apify plan:

| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Reel (each reel delivered) | $0.27 | $0.24 | $0.22 | $0.19 |
| Reel link (each reel link delivered whose play count lookup ran to its end, on top of its Reel) | $0.60 | $0.55 | $0.50 | $0.45 |
| Profile (each profile whose Reels tab delivered at least one reel, once per run; with a free row of its details) | $2.00 | $1.90 | $1.70 | $1.50 |
| Sound (each sound whose audio page delivered at least one reel, once per run; with a free row of its details) | $2.00 | $1.90 | $1.70 | $1.50 |
| Owner profile (owner details add-on, once per reel owner per run) | $2.00 | $1.90 | $1.70 | $1.50 |
| Comment (comments add-on, each comment) | $0.27 | $0.24 | $0.22 | $0.19 |
| Video megabyte (video file add-on, each started MB of a stored file) | $10.00 | $7.50 | $6.00 | $5.00 |

Prices are per 1,000 events. The Actor start is $0.0075 once per run, the same on every plan.
Platinum and Diamond plans pay the Gold price. The Store pricing card shows these same prices per 1,000 events: "$0.19 / 1,000" on
the Reel row means one reel costs 0.019 cents on a Gold plan, so 1,000 reels cost USD 0.19, and "$5.00 / 1,000" on the Video
megabyte row means one stored megabyte costs half a cent. Reels a filter leaves out, repeats,
misses and anything Instagram did not answer are free; only the run's start fee is charged for a run that delivers nothing.

Examples at the Free price: the 12 newest reels of one profile cost 0.0075 + 0.002 + 12 x 0.00027 = USD 0.0127; 1,000 reels of a
profile cost USD 0.2795; 100 reel links cost 0.0075 + 100 x (0.00027 + 0.0006) = USD 0.0945; 24 reels of one sound cost 0.0075 +
0.002 + 24 x 0.00027 = USD 0.0160. At the Gold price the same 12 reels of a profile cost USD 0.0113.

### Input

| Setting | What it does |
|---|---|
| `usernames` | Usernames, @handles, profile or Reels tab links (up to 500) |
| `userIds` | Instagram's numeric user ids (up to 500) |
| `reelUrls` | Reel links (/reel/, /reels/, /p/, /tv/) or reel codes (up to 1,000) |
| `audioUrls` | Audio links (instagram.com/reels/audio/<id>/) or sound ids (up to 100) |
| `maxReelsPerProfile`, `maxReelsPerAudio`, `maxReels` | Reels per profile (default 12), per sound (default 24), in the whole run |
| `postedSince`, `postedUntil` | A day (2026-10-01) or "30 days", "24 hours"; and an end day |
| `minPlays`, `minLikes`, `minComments` | Leave out reels below these counts (a reel without the count asked is left out) |
| `skipPinned`, `collabReels` | Leave out pinned reels; include, leave out or keep only collab reels (on a profile: posted by another account with the profile; on a sound: posted with collaborators) |
| `includeOwnerDetails`, `maxCommentsPerReel`, `downloadVideos`, `maxVideoSizeMb` | The add-ons: owner details on every row, comments, video files |
| `includeViewCount`, `checkProfileGrid`, `maxOwnerPagesPerLink` | More fields: the embed's view counter, the grid mark, how far a link's play count is looked up (0 = no lookup, no Reel link event) |
| `compactRows`, `includeRawData` | A compact row, or Instagram's raw answer for each reel (still needs `includePersonalData` on, as before) |
| `includePersonalData` | Since 2026-11-06 all public data is delivered whatever it says (`taggedUsers`, `mentions`, every website and bio link); it still decides one thing, as before: `includeRawData` needs it on |
| `maxRunSeconds`, `requestTimeoutSecs`, `maxRetries`, `proxyConfiguration` | Run settings |

Example input:

```json
{
  "usernames": ["nasa", "https://www.instagram.com/natgeo/reels/"],
  "maxReelsPerProfile": 50,
  "postedSince": "30 days",
  "minPlays": 10000,
  "reelUrls": ["https://www.instagram.com/reel/DePHLhtON_i/"],
  "audioUrls": ["https://www.instagram.com/reels/audio/946424854281103/"]
}
```

### How it reads Instagram

Logged out and with no cookies of any account: the profile's Reels tab (12 reels a call, with play counts), Instagram's own
details of each reel, the sound pages, the profile read and the comments, as the Instagram web app asks for them. Requests go
from the run's own address first and move to Apify's datacenter proxy when Instagram refuses one there; no residential proxy is
needed. Reel links: the play count comes from the reel's own sound page when the reel made that sound, else from the owner's
Reels tab, read newest first down to the reel's date, at most `maxOwnerPagesPerLink` pages (default 10, the owner's 120 newest
reels), shared by every link of that owner in a run.

### Work that earns nothing

A run's unpaid work (pages of profiles nobody can read, filters nothing passes, dead links) is bounded: it may spend about 72
seconds of work before its first billed reel, and every billed event adds a little more. A run that only meets misses stops there
with a free row for what it did not read; a run that delivers reels reads on to its caps. The add-ons (owner details, comments, video
files) have an allowance of their own: an add-on is left off a row (its status says `allowance`) when its allowance is spent; each stored
video file pays for the next download of its round.

### What this Actor does NOT do

- No share, save or repost counts and no trial reel mark: Instagram does not show them to a visitor who is not logged in.
- No stories, story highlights or tagged posts: Instagram shows them only to logged in visitors.
- No transcripts, no posts or carousels of a profile's grid, no hashtag, location or keyword search: other tools of ours do these (see below).
- No reels of private profiles, and no login or cookies of yours, ever.
- A sound's page may show only part of the reels that use the sound: on 2026-11-04 it ended at 84 reels for a sound used in
  29,000 reels and at 39 for one used in 47; a sound used in 323,000 reels listed 108 before the run's limit of 100.
- No comment replies (Instagram does not serve them logged out; each comment carries its `replyCount`) and no related profiles.
- Facebook play counts only where Instagram's answer carries one (1 reel in 1,525 measured); `fbLikeCount` on about 9 percent.
- Instagram offers no jump to a date: an end date far in the past reads the newer reels first (they are free).
- No play count history between runs and no "new reels only" memory: schedule the Actor and compare runs in your own sheet.
- No custom code runs inside the Actor (no mapping functions) and no delivery into other apps beyond Apify's integrations.

### FAQ

#### Can you scrape Instagram reels views?

Yes. Every reel row carries Instagram's play count (`playCount`) as the Reels tab or the sound page shows it, and `includeViewCount`
adds the separate view counter of the reel's embed page.

#### How can I see the views of other accounts' Instagram reels?

Put the account's username in `usernames`: every reel of its Reels tab comes with its play count, likes and comments, newest first.

#### How do I find the reels that use a sound?

Put the sound's audio link (instagram.com/reels/audio/<id>/) or its id in `audioUrls`. You get the reels its audio page shows,
with play counts, and a free row with the sound's title, artist and Instagram's reel count.

#### Can I filter scraped reels by a minimum view count?

Yes: `minPlays`, `minLikes` and `minComments`. Reels below them are left out and not charged.

#### Why does this Actor run with limited permissions?

It needs nothing beyond its own run: it reads public Instagram pages and writes only to its own dataset and key-value store (the
video files of the add-on). Limited permissions keep it from touching any other storage of your account.

### Use with the API

```bash
curl -X POST "https://api.apify.com/v2/acts/automation_craft~instagram-reels-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"usernames": ["nasa"], "maxReelsPerProfile": 12}'
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('automation_craft/instagram-reels-scraper').call({ usernames: ['nasa'], maxReelsPerProfile: 12 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((x) => x.type === 'reel'));
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("automation_craft/instagram-reels-scraper").call(run_input={"usernames": ["nasa"], "maxReelsPerProfile": 12})
reels = [x for x in client.dataset(run["defaultDatasetId"]).iterate_items() if x["type"] == "reel"]
```

### Changelog

- 0.1: first version (profiles, user ids, reel links, sounds; filters; profile details, comments and video file add-ons).
- 2026-11-06: all public data is always delivered: `taggedUsers`, `mentions` and every website and bio link, whatever
  `includePersonalData` says (it still unlocks `includeRawData`). Rows and charges are unchanged.

### More data tools by Automation Craft

- [Instagram Posts Scraper: Profiles, Reels, No Login](https://apify.com/automation_craft/instagram-posts-scraper)
- [Instagram Reels Search Scraper: Reels by Keyword](https://apify.com/automation_craft/instagram-reels-search-scraper)
- [Instagram User Search Scraper: Profiles by Keyword](https://apify.com/automation_craft/instagram-user-search-scraper)
- [Instagram Search Scraper: Reels, Users, Hashtags](https://apify.com/automation_craft/instagram-search-scraper)
- [Threads Profile Scraper: Followers, Bio, Posts](https://apify.com/automation_craft/threads-profile-scraper)
- [Facebook Reels Scraper: Views, Likes, No Login](https://apify.com/automation_craft/facebook-reels-scraper)
- [Facebook Videos Scraper: Page Videos, Views](https://apify.com/automation_craft/facebook-videos-scraper)
- [Meta Ads Library Scraper - Meta Ad Library API](https://apify.com/automation_craft/meta-ads-library-scraper)

# Changelog

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

# Actor input Schema

## `usernames` (type: `array`):

Instagram usernames, @handles, profile links or Reels tab links (instagram.com/nasa/reels/). Each profile's Reels tab is read newest first, pinned reels first, each reel with its play count, likes, comments, caption, date, length, music and video link, including reels the grid does not show and collab reels the profile is part of. Up to 500. One Profile event per profile that delivers a reel. A private profile delivers nothing (a free status row).

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

Instagram's numeric user ids (for example 528817151). Each id is turned into its username, then read like a profile above. Up to 500.

## `reelUrls` (type: `array`):

Reel links (instagram.com/reel/<code>/, /reels/, /p/ and /tv/ links, also with the owner's name in front) or bare reel codes. Each reel is delivered as a full row with its play count where Instagram shows it: from the reel's own sound page when the reel made that sound, else from the owner's Reels tab (see maxOwnerPagesPerLink). Filters do not apply to links: a link is delivered as asked. Up to 1,000.

## `audioUrls` (type: `array`):

Instagram sound pages (instagram.com/reels/audio/<id>/) or sound ids. Each sound delivers the reels its audio page shows, in Instagram's own order, with play counts, plus a free row about the sound (title, artist, Instagram's reel count text). An audio page may show only part of a sound's reels (84 for one used in 29,000 reels, measured). A Sound event is charged once for each sound that delivers at least one reel. Up to 100 sounds.

## `maxReelsPerProfile` (type: `integer`):

The most reels delivered for one profile (1 to 10,000). The walk reads the Reels tab newest first until this many reels passed your filters, the tab ends, or the date window is passed. Default 12.

## `maxReelsPerAudio` (type: `integer`):

The most reels delivered for one sound (1 to 500). Default 24.

## `maxReels` (type: `integer`):

The most reels the whole run delivers (1 to 100,000). Leave empty for no run wide cap.

## `postedSince` (type: `string`):

A day (2026-10-01, from 00:00 UTC) or a time back from the run's start ("30 days", "24 hours"). On a profile the walk stops at the first whole page older than this.

## `postedUntil` (type: `string`):

A day (2026-10-31, up to 23:59:59 UTC). Newer reels are listed and left out free; Instagram offers no jump to a date, so a far end date reads the newer pages first.

## `minPlays` (type: `integer`):

Leave out reels with fewer plays (Instagram's play count). A reel without a play count is left out when this is set.

## `minLikes` (type: `integer`):

Leave out reels with fewer likes. A reel whose owner hid its likes is left out when this is set.

## `minComments` (type: `integer`):

Leave out reels with fewer comments.

## `skipPinned` (type: `boolean`):

Leave out the reels a profile pinned to the top of its Reels tab (on a sound, reels their owner pinned). Does not apply to reel links.

## `collabReels` (type: `string`):

Collab reels: on a profile, reels another account posted with the profile as a collaborator (its Reels tab shows them); on a sound, reels posted with collaborators. Include them (each row says isCollab), leave them out, or deliver only them. Does not apply to reel links.

## `includeOwnerDetails` (type: `boolean`):

Adds each reel owner's profile to its rows (ownerDetails): followers, following, post count, full name, category, account type, verified, bio and links. Charged once per owner per run as an Owner profile event; left off (ownerDetailsStatus allowance) when the add-on's work allowance is spent. Every website and bio link is delivered as Instagram serves it. A walked profile's own details are on its free profile row.

## `maxCommentsPerReel` (type: `integer`):

Adds up to this many of each reel's comments (0 to 50): text, time, likes, reply count and author. Each comment delivered is a Comment event. Comments are left off a row (commentsStatus allowance) when the add-on's unpaid work allowance is spent. 0 = none.

## `downloadVideos` (type: `boolean`):

Stores each delivered reel's video file (MP4, 720p as Instagram serves it) in the run's key-value store and puts its link on the row (videoFile). Charged per started MB of the stored file as a Video megabyte event (1 MB = 1,000,000 bytes). A file is left off its row (videoFileStatus allowance) when the add-on's unpaid work allowance is spent. Instagram's own video link (videoUrl) is on every row for free and expires in about a day and a half.

## `maxVideoSizeMb` (type: `integer`):

A video file larger than this is not stored (its row says too_large and nothing is charged for it). 1 to 100, default 50.

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

Adds the reel's view counter from its embed page (viewCount), a counter apart from the play count (about a fifth to two fifths of the plays on the reels measured). One more page read per reel, no extra charge.

## `checkProfileGrid` (type: `boolean`):

Reads each profile's grid (its Posts tab) as far back as its delivered reels and marks each reel isOnProfileGrid: false for reels shown only on the Reels tab. Profiles only; no extra charge.

## `maxOwnerPagesPerLink` (type: `integer`):

For a reel link, the play count is read from the reel's own sound page when the reel made that original sound, else from the owner's Reels tab, 12 reels a page, newest first, down to the reel's own date: at most this many pages (1 to 100, default 10, the owner's 120 newest reels), shared by every link of one owner in a run. 0 = no play count lookup: links are delivered without their play count and without the Reel link event.

## `compactRows` (type: `boolean`):

Delivers a compact row: the reel's code, link, owner, caption, hashtags, plays, likes, comments, views, date, length, pinned and collab marks, video and cover links, and the add-ons asked for.

## `includeRawData` (type: `boolean`):

Adds Instagram's own answer for each reel (raw), as served. It still needs includePersonalData set to true, as before 2026-11-06 (an input without it stays refused).

## `includePersonalData` (type: `boolean`):

Since 2026-11-06 all public data is always delivered, whatever this says: taggedUsers, mentions and every website and bio link of profile and owner details. It still decides one thing, as before: includeRawData needs it on. It stays so saved inputs keep working. You are responsible for a lawful use of personal data, GDPR included.

## `maxRunSeconds` (type: `integer`):

Stop after this many seconds (30 to 86,400), with free rows for what was not read. Leave empty to run until done or until the Apify run timeout.

## `requestTimeoutSecs` (type: `integer`):

How long one request may take (5 to 60). Default 30.

## `maxRetries` (type: `integer`):

How often a failed request is tried again on a fresh exit (0 to 5). Default 2.

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

Default: Apify Proxy without a group or country, which reads from the run's own address first and moves a request type to Apify's datacenter proxy when it is refused there. Choose a group or a country to read only through Apify Proxy, or give your own proxy links. A residential group is read through the datacenter pool instead (no extra cost).

## Actor input object example

```json
{
  "usernames": [
    "nasa"
  ],
  "maxReelsPerProfile": 12,
  "skipPinned": false,
  "collabReels": "include",
  "includeOwnerDetails": false,
  "downloadVideos": false,
  "includeViewCount": false,
  "checkProfileGrid": false,
  "compactRows": false,
  "includeRawData": false,
  "includePersonalData": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `items` (type: `string`):

No description

# 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 = {
    "usernames": [
        "nasa"
    ],
    "maxReelsPerProfile": 12,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_craft/instagram-reels-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 = {
    "usernames": ["nasa"],
    "maxReelsPerProfile": 12,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automation_craft/instagram-reels-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 '{
  "usernames": [
    "nasa"
  ],
  "maxReelsPerProfile": 12,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automation_craft/instagram-reels-scraper --silent --output-dataset

```

## MCP server setup

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