# Instagram Search Scraper (`icoe-man/instagram-search-scraper`) Actor

An instagram search scraper: search Instagram by keyword and collect profiles, reels and popular posts, with authors, dates and counts. Export JSON, CSV or Excel.

- **URL**: https://apify.com/icoe-man/instagram-search-scraper.md
- **Developed by:** [Icoe Man](https://apify.com/icoe-man) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 Search Scraper

Get public Instagram profiles, reels or popular posts in a table you can download and use in other tools. Pick a result type under What to collect, then enter one or more keywords to see what each search turns up.

### What you get

Under **What to collect**, choose the type of results you want. Fill in the fields for that choice, then start the run. Each run returns one kind of result. The Actor ignores fields from other modes. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Collection modes

#### Search profiles

Get public Instagram profiles that match your keywords, including usernames and follower counts. In `search-profiles` mode, fill in **Keywords** (up to 100 entries). Use **Result limit per target** to set how many profiles the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each profile appears in its own row and counts as one **Search profiles** charge.

Example result for one profile:

```json
{
  "status": "ok",
  "type": "profile",
  "platform": "instagram",
  "id": "528817151",
  "url": "https://www.instagram.com/nasa/",
  "username": "nasa",
  "displayName": "NASA",
  "bio": "Making the seemingly impossible, possible. ✨",
  "avatarUrl": "https://scontent.cdninstagram.com/v/t51/example-avatar.jpg",
  "verified": true,
  "isPrivate": false,
  "followers": 104352921,
  "following": 91,
  "postsCount": 5008,
  "externalUrl": null,
  "details": {
    "instagram": {
      "isBusiness": true,
      "isProfessional": true,
      "category": "Government organisation"
    }
  },
  "collectedAt": "2026-11-11T12:00:00Z",
  "input": {
    "keyword": "coffee",
    "maxItems": 30
  }
}
```

#### Search reels

Get public Instagram reels that match your keywords, with captions, post dates and counts for likes, comments and views. In `search-reels` mode, fill in **Keywords** (up to 100 entries), and **Reels from** (optional), **Reels before** (optional). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 200. Each post appears in its own row and counts as one **Search reels** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "instagram",
  "id": "CxAmPlE5678",
  "url": "https://www.instagram.com/p/CxAmPlE5678/",
  "author": {
    "id": "1234567890",
    "username": "example_user",
    "displayName": "Example User",
    "verified": false
  },
  "text": "A short example sentence for illustration. #coffee",
  "createdAt": "2026-08-07T16:29:50Z",
  "metrics": {
    "likes": 1565,
    "comments": 97,
    "views": 15734
  },
  "hashtags": [
    "coffee"
  ],
  "mentions": [],
  "media": [
    {
      "kind": "video",
      "url": "https://scontent.cdninstagram.com/v/t51/example.mp4",
      "thumbnailUrl": "https://scontent.cdninstagram.com/v/t51/example.jpg",
      "durationSec": 21
    }
  ],
  "details": {
    "instagram": {
      "productType": "reel",
      "audio": {
        "id": "1234567890123456",
        "title": "Original audio",
        "artist": "example_user",
        "isOriginal": true
      },
      "paidPartnership": false,
      "placeName": "Example Cafe"
    }
  },
  "collectedAt": "2026-11-11T12:00:00Z",
  "input": {
    "keyword": "coffee",
    "maxItems": 30
  }
}
```

#### Search popular

Get popular Instagram posts for your keywords, with links, captions and view counts. In `search-popular` mode, fill in **Keywords** (up to 100 entries). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 500. Each post appears in its own row and counts as one **Search popular** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "instagram",
  "id": "CxAmPlE9012",
  "url": "https://www.instagram.com/p/CxAmPlE9012/",
  "author": {
    "id": "1234567890",
    "username": "example_user",
    "verified": false
  },
  "text": "A short example sentence for illustration. #coffee",
  "metrics": {
    "views": 1229105
  },
  "hashtags": [
    "coffee"
  ],
  "mentions": [],
  "media": [
    {
      "kind": "image",
      "url": "https://scontent.cdninstagram.com/v/t51/example.jpg"
    }
  ],
  "details": {
    "instagram": {
      "productType": "reel"
    }
  },
  "collectedAt": "2026-11-11T12:00:00Z",
  "input": {
    "keyword": "coffee",
    "maxItems": 30
  }
}
```

### Ways to use the data

- See where your brand or product comes up in public profiles and reels.
- Find accounts in your niche and compare their follower counts.
- Research a trend by seeing which reels and popular posts come up when you search for it.
- Save reels and popular posts on a topic for ideas for your next post.
- Compare how competing brands cover the same topic on their profiles and in their reels.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `mode` | What to collect | Choose one type of result per run, then fill in the fields for that choice. |
| `keywords` | Keywords | Enter one or more search terms, such as coffee. |
| `postedAfter` | Reels from | Enter a UTC date, such as 2026-11-01, to keep reels posted on or after that day. Leave blank for no start date. Checking dates after gathering results may leave you with fewer reels than your limit. The run stops after three pages in a row with no matches. |
| `postedBefore` | Reels before | Enter a UTC date, such as 2026-11-15, to keep only reels posted before that day. Leave blank for no end date. Checking dates after gathering results may leave you with fewer reels than your limit. The run stops after three pages in a row with no matches. |
| `maxItems` | Result limit per target | Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. |
| `freshness` | Data freshness | Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run. |

Example input:

```json
{
  "mode": "search-profiles",
  "keywords": [
    "coffee"
  ],
  "maxItems": 20,
  "freshness": "standard"
}
```

### Your results

Each mode has its own view of the results table. See **Collection modes** for what each mode returns.

Every row has a `status` field. For each entry that fails, the Actor returns one row with `status: "error"`. The `error` field has a `code` and a `message`. If a required field for your mode is blank, the run returns one error row and collects no data.

### Pricing

You pay per result. Prices for each Apify plan are in USD per 1,000 results.

| What you pay for | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Search popular | $2.498 | $2.172 | $1.884 | $1.680 | $1.680 | $1.680 |
| Search profiles | $2.498 | $2.172 | $1.884 | $1.680 | $1.680 | $1.680 |
| Search reels | $2.498 | $2.172 | $1.884 | $1.680 | $1.680 | $1.680 |

You don't pay for errors or empty results. The run stops when it reaches your spending limit.

On the free plan, you can collect up to 10 results per run and make up to 20 runs per day.

### Common questions

#### What data do I get with each search option?

Search profiles returns matching accounts with follower counts and bios. It also shows account categories and whether an account is a business or professional account, when available. Search reels returns matching reels with audio details, paid partnership labels and tagged place names when available. If you set Reels from or Reels before, the Actor checks dates in UTC. It may check them after gathering results, so you may get fewer reels than your limit. Search popular returns popular posts for your keyword.

#### Can I collect profiles, reels and popular posts in the same run?

No. Pick one option under What to collect for each run. Start a new run for a different type of result.

#### Do I need an Instagram account to run this Actor?

No. The Actor collects only public data. You don't need to sign in to Instagram or share account details or browser cookies.

#### How do I limit results, and which results count toward the cost?

Use Result limit per target to cap the number of results per keyword. The price applies only to results you get. Errors and empty results cost nothing. The run stops if it reaches your spending limit.

#### Is this tool affiliated with Instagram or Meta?

No. This tool is independent. Neither Instagram nor Meta is affiliated with, endorses or sponsors it. It collects only public information from Instagram.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by Instagram. All trademarks belong to their owners.

# Actor input Schema

## `mode` (type: `string`):

Choose one type of result per run, then fill in the fields for that choice.

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

Enter one or more search terms, such as coffee.

## `postedAfter` (type: `string`):

Enter a UTC date, such as 2026-11-01, to keep reels posted on or after that day. Leave blank for no start date. Checking dates after gathering results may leave you with fewer reels than your limit. The run stops after three pages in a row with no matches.

## `postedBefore` (type: `string`):

Enter a UTC date, such as 2026-11-15, to keep only reels posted before that day. Leave blank for no end date. Checking dates after gathering results may leave you with fewer reels than your limit. The run stops after three pages in a row with no matches.

## `maxItems` (type: `integer`):

Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit.

## `freshness` (type: `string`):

Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.

## Actor input object example

```json
{
  "mode": "search-profiles",
  "keywords": [
    "coffee"
  ],
  "maxItems": 20,
  "freshness": "standard"
}
```

# Actor output Schema

## `results` (type: `string`):

See everything this run collected in one table.

# 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 = {
    "mode": "search-profiles",
    "keywords": [
        "coffee"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/instagram-search-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 = {
    "mode": "search-profiles",
    "keywords": ["coffee"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/instagram-search-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 '{
  "mode": "search-profiles",
  "keywords": [
    "coffee"
  ],
  "maxItems": 20
}' |
apify call icoe-man/instagram-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,icoe-man/instagram-search-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/PptJHxDxqBur46m19/builds/okg7cHsXYth45cKcD/openapi.json
