# Instagram Reels Finder & Downloader (`viet_tt/instagram-reels-finder-downloader`) Actor

Finds Instagram Reels by hashtag, filters them by likes, comments, shares, views, and engagement score, then sorts and stores the results. Matching videos can also be downloaded automatically to Apify storage.

- **URL**: https://apify.com/viet\_tt/instagram-reels-finder-downloader.md
- **Developed by:** [Viet TON THAT](https://apify.com/viet_tt) (community)
- **Categories:** Social media, Videos, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 reel results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Instagram Reels Finder & Downloader

Find Instagram Reels by hashtag, filter them using engagement metrics, sort the matching results, and optionally download the corresponding video files.

This Actor is designed for social media research, content discovery, trend analysis, competitive monitoring, and other lawful Instagram data collection use cases.

### What does this Actor do?

The Actor:

1. Searches Instagram Reels using one or more hashtags.
2. Retrieves Reel metadata through Apify’s Instagram Hashtag Scraper.
3. Normalizes the returned data into a consistent output format.
4. Filters Reels according to configurable engagement criteria.
5. Sorts the matching Reels by the selected metric.
6. Stores the final metadata in the default Apify dataset.
7. Optionally downloads the matching video files.
8. Stores downloaded videos in the run’s default key-value store.
9. Generates a detailed execution summary.

### Main features

- Search by multiple Instagram hashtags
- Reel-only content discovery
- Minimum and maximum likes filters
- Minimum and maximum comments filters
- Minimum and maximum shares or reposts filters
- Minimum and maximum views or plays filters
- Calculated engagement score
- Configurable sorting
- Configurable result limits
- Missing-metric handling
- Optional Reel video downloads
- Concurrent downloads
- Maximum video file size control
- Structured dataset output
- Detailed run summary

### Input

#### Hashtags

Enter one or more Instagram hashtags without the `#` symbol.

Example:

````json
{
  "hashtags": [
    "travel",
    "education",
    "studentlife"
  ]
}

# Actor input Schema

## `hashtags` (type: `array`):

Enter one or more Instagram hashtags without the # symbol.
## `resultsLimitPerHashtag` (type: `integer`):

Maximum number of Reels requested for each hashtag. The actual number may be lower.
## `maximumResults` (type: `integer`):

Maximum number of filtered Reels stored in the final dataset and downloaded when video downloads are enabled.
## `minimumLikes` (type: `integer`):

Keep only Reels with at least this number of likes. Set to 0 to disable.
## `maximumLikes` (type: `integer`):

Keep only Reels with no more than this number of likes. Leave empty for no maximum.
## `minimumComments` (type: `integer`):

Keep only Reels with at least this number of comments. Set to 0 to disable.
## `maximumComments` (type: `integer`):

Keep only Reels with no more than this number of comments. Leave empty for no maximum.
## `minimumShares` (type: `integer`):

Keep only Reels with at least this number of shares or reposts. Set to 0 to disable. This metric may be unavailable.
## `maximumShares` (type: `integer`):

Keep only Reels with no more than this number of shares or reposts. Leave empty for no maximum.
## `minimumViews` (type: `integer`):

Keep only Reels with at least this number of views or plays. Set to 0 to disable.
## `maximumViews` (type: `integer`):

Keep only Reels with no more than this number of views or plays. Leave empty for no maximum.
## `minimumScore` (type: `number`):

Keep only Reels with at least this calculated engagement score. Set to 0 to disable.
## `ignoreMissingMetrics` (type: `boolean`):

Do not reject a Reel only because Instagram did not return a requested metric.
## `sortBy` (type: `string`):

Select the metric used to order the final results.
## `descending` (type: `boolean`):

Show Reels with the highest selected metric first.
## `downloadVideos` (type: `boolean`):

Download matching Reel video files to the run's default key-value store.
## `concurrentDownloads` (type: `integer`):

Maximum number of videos downloaded simultaneously.
## `maximumVideoSizeMb` (type: `integer`):

Maximum accepted size in MB for each video. Larger files are skipped.

## Actor input object example

```json
{
  "hashtags": [
    "travel",
    "education"
  ],
  "resultsLimitPerHashtag": 20,
  "maximumResults": 10,
  "minimumLikes": 0,
  "minimumComments": 0,
  "minimumShares": 0,
  "minimumViews": 0,
  "minimumScore": 0,
  "ignoreMissingMetrics": true,
  "sortBy": "likes",
  "descending": true,
  "downloadVideos": false,
  "concurrentDownloads": 2,
  "maximumVideoSizeMb": 100
}
````

# Actor output Schema

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

Instagram Reels matching the configured filters.

## `files` (type: `string`):

Downloaded Reel files and the execution summary stored in the default key-value store.

# 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 = {
    "hashtags": [
        "travel",
        "education",
        "studentlife"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("viet_tt/instagram-reels-finder-downloader").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 = { "hashtags": [
        "travel",
        "education",
        "studentlife",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("viet_tt/instagram-reels-finder-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "hashtags": [
    "travel",
    "education",
    "studentlife"
  ]
}' |
apify call viet_tt/instagram-reels-finder-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=viet_tt/instagram-reels-finder-downloader",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/obxSe3hvc8J7tRLaJ/builds/5arXsmtdhZUewdJDB/openapi.json
