# Instagram Hashtags Scraper (`icoe-man/instagram-hashtags-scraper`) Actor

Instagram hashtags scraper: collect public posts for any hashtag, with captions, authors, likes, comments and post links. Export clean data as JSON, CSV or Excel for trend research and content discovery.

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

## Pricing

from $1.90 / 1,000 hashtag posts

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

Compare public Instagram posts in one table. Enter one or more hashtags to see each post's caption, author, date, and like and comment counts alongside its link. Download the table to review the posts or use the results in another tool.

### What you get

Enter up to 100 hashtags in **Hashtags**, and set **Feed** (optional), **Posts from** (optional), **Posts before** (optional). By default, you get up to 100 public posts for each hashtag. To change that limit, enter a number no higher than 10000 in **Result limit per hashtag**. Each post gets its own row in the results table. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Ways to use the data

- See how people use your brand or campaign hashtag and what they say in those posts.
- Compare how often hashtags appear in the posts you collect and see which posts get the most likes and comments.
- Find ideas for your next post by browsing recent work from creators in your niche.
- Build an event recap from public posts you export using your event hashtag.
- Learn what topics a community talks about and what words people use to describe them.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `hashtags` | Hashtags | Enter the hashtags you want to collect posts from, with or without the # sign. |
| `feed` | Feed | Choose recent for newest posts first (the default), top for up to 200 of the best-performing posts per hashtag, including reels, or reels for reels only. If you choose top, leave Posts from and Posts before blank. If top is unavailable, the run stops with a short message and you aren't charged. |
| `postedAfter` | Posts from | Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date or if you choose top. If the Actor checks dates after collecting posts, you may get fewer results than requested. The run stops after three pages in a row with no matches. |
| `postedBefore` | Posts before | Enter the first day to exclude, such as 2026-11-15 (UTC). Leave blank for no cutoff or if you choose top. If the Actor checks dates after collecting posts, you may get fewer results than requested. The run stops after three pages in a row with no matches. |
| `maxItems` | Result limit per hashtag | Enter the maximum number of results to collect for each hashtag. |
| `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
{
  "hashtags": [
    "coffee",
    "travel"
  ],
  "maxItems": 20,
  "freshness": "standard"
}
```

### Your results

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "instagram",
  "id": "3012345678901234567",
  "url": "https://www.instagram.com/p/CxAmPlE1234/",
  "author": {
    "id": "1234567890",
    "username": "beanhouse",
    "displayName": "Bean House",
    "verified": false
  },
  "text": "Fresh pour-over this morning. #coffee #morning",
  "language": "en",
  "createdAt": "2026-10-01T08:30:00Z",
  "metrics": {
    "likes": 1280,
    "comments": 42,
    "shares": null,
    "views": null
  },
  "hashtags": [
    "coffee",
    "morning"
  ],
  "mentions": [],
  "media": [
    {
      "kind": "image",
      "url": "https://scontent.cdninstagram.com/v/t51/example.jpg",
      "thumbnailUrl": null,
      "durationSec": null
    }
  ],
  "details": {
    "instagram": {
      "productType": "photo",
      "audio": null,
      "paidPartnership": false,
      "taggedUsers": [
        "example_friend"
      ],
      "placeName": "Example Cafe"
    }
  },
  "collectedAt": "2026-11-07T10:00:00Z",
  "input": {
    "hashtag": "coffee"
  }
}
```

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`.

### 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 |
| --- | --- | --- | --- | --- | --- | --- |
| Hashtag posts | $2.622 | $2.300 | $2.012 | $1.900 | $1.900 | $1.900 |

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 100 results per run and make up to 20 runs per day.

### Common questions

#### What's included for each post?

Each result includes the post link, caption, username, posting date, like and comment counts, hashtags, mentions, and photo and video links when public. If a post has several images, you get a link to each one. When available, you also get the author's display name and whether the account is verified, the caption language, share and view counts, and video length. Other details can include the reel audio, the paid partnership label, accounts tagged in photos or videos, and the tagged location.

#### Can I collect top posts or just reels?

In Feed, choose top for up to 200 of the best-performing posts per hashtag, including reels. Choose reels for reels only, or leave Feed set to recent to get the newest posts first. Leave Posts from and Posts before blank when using top. If top is unavailable, the run stops with a short message and you aren't charged.

#### Can I collect posts from a specific date range?

Yes. Set Posts from to the first day you want to include and Posts before to the first day you want to exclude. Both dates use UTC. If the Actor checks dates after collecting posts, you may get fewer results than requested. The run stops after three pages in a row with no matches.

#### Do I need to sign in to Instagram?

No. The Actor collects only public posts, so you don't need to sign in to Instagram or share cookies (saved sign-in data).

#### How do I control how many posts I get?

Set Result limit per hashtag to the most posts you want from each hashtag. You pay only for the posts you get, and the run stops if it reaches your spending limit.

#### Can I include the # sign in Hashtags?

Yes. The # sign is optional. The Actor ignores spaces before or after each hashtag and removes exact duplicates.

### Disclaimer

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

# Actor input Schema

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

Enter the hashtags you want to collect posts from, with or without the # sign.

## `feed` (type: `string`):

Choose recent for newest posts first (the default), top for up to 200 of the best-performing posts per hashtag, including reels, or reels for reels only. If you choose top, leave Posts from and Posts before blank. If top is unavailable, the run stops with a short message and you aren't charged.

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

Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date or if you choose top. If the Actor checks dates after collecting posts, you may get fewer results than requested. The run stops after three pages in a row with no matches.

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

Enter the first day to exclude, such as 2026-11-15 (UTC). Leave blank for no cutoff or if you choose top. If the Actor checks dates after collecting posts, you may get fewer results than requested. The run stops after three pages in a row with no matches.

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

Enter the maximum number of results to collect for each hashtag.

## `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
{
  "hashtags": [
    "coffee",
    "travel"
  ],
  "feed": "recent",
  "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 = {
    "hashtags": [
        "coffee",
        "travel"
    ],
    "maxItems": 20
};

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

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

```

## MCP server setup

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