# Instagram Hashtag Generator — Hashtags Containing Your Word (`steadyfetch/instagram-hashtag-generator`) Actor

Instagram hashtag generator: put seed words and get the real Instagram hashtags that contain each one, each with its exact post count, ranked largest first. Nothing invented, no co-used tags. No login. No start fee; a seed with no hashtags is never charged.

- **URL**: https://apify.com/steadyfetch/instagram-hashtag-generator.md
- **Developed by:** [Steadyfetch Team](https://apify.com/steadyfetch) (community)
- **Categories:** Social media, Marketing, For creators
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 hashtag searches

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/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 Hashtag Generator — Hashtags Containing Your Word

**Put seed words and get, for each one, the real Instagram hashtags that contain it, each with its exact post count, ranked from the biggest tag to the smallest. Many seeds in one run. No login, no start fee, and a seed with no hashtags is never charged.**

"Generator" here means a ranked list of **real** hashtags for a seed, with their sizes: every tag in your results is one Instagram lists for that word, and nothing is invented. You get tags that **contain** your seed (`sourdough` → `#sourdoughbread`, `#sourdoughstarter`, `#sourdoughbaking` …); tags people merely use alongside it (a bread tag that does not say "sourdough") are not made up for you. Built for social media managers, agencies and creators choosing which tags to post with, and for agents that need "which hashtags go with this word, and how big is each?" as data.

**Using an AI agent?** Pin this actor in Apify's MCP server with one link: `https://mcp.apify.com?tools=steadyfetch/instagram-hashtag-generator`

- **Actor id:** `steadyfetch/instagram-hashtag-generator`
- **Input:** `{ "seeds": ["sourdough", "travel"], "maxHashtagsPerSeed": 30 }`
- **Cap the bill:** set `maxTotalChargeUsd` on the run (a run option, not Actor input), e.g. `0.50` — a seed is only read while your cap can still pay for it.
- **Price:** from $2.40 per 1,000 hashtag searches plus $0.02 per 1,000 hashtags delivered — 100 seeds with 55 hashtags each cost $0.35 on Gold. Full table below.
- **How often it changes:** post counts grow every day; which tags Instagram lists for a word changes over weeks. Re-run monthly to refresh a tag set, weekly to track the sizes.

*Not affiliated with or endorsed by Instagram or Meta.*

### What you get

One row per hashtag, for each seed, biggest first:

| Column | What it holds |
|---|---|
| `seed` | the seed word the hashtag was found for (as searched: no `#`, no spaces, lower case) |
| `hashtag` · `name` | the tag with its `#` (`#sourdoughbread`) and without it (`sourdoughbread`) |
| `postCount` | the exact number of posts under the tag, e.g. `3776586` |
| `postCountText` | the count the way Instagram shows it, e.g. `3.7M` |
| `rank` | 1 = the tag with the most posts for this seed, 2 = the next, and so on |
| `feedRank` | the position Instagram itself listed the tag in (its own order is not by size) |
| `hashtagId` · `url` | Instagram's id for the tag, digit for digit, and the tag's page |

Every row also carries `charged`, `chargedEvents`, `status`, `retryable` and `statusReason`, so you can reconcile your bill from the dataset itself. The last row (`run_summary`) is the receipt: seeds asked and delivered, hashtags delivered, and `seedsToRunAgain` — the seeds worth sending again if anything held them.

A seed with no hashtags comes back as one uncharged row that says why (`no_results`: Instagram listed none containing it on this run — a shorter word or another spelling may find some).

### How to use it

1. Put your words in **Seed words**, one per line: `sourdough`, `#travel`, `home decor` (spaces are joined, because a hashtag has none). An Instagram tag link such as `instagram.com/explore/tags/travel/` is read as its tag.
2. Optional: **Hashtags to keep per seed** keeps only the biggest ones; leave it empty for every hashtag the search lists. Press Start.

A seed that is a link to something else, or has no letters or numbers left once the `#`, spaces and punctuation are taken out, is refused on its own uncharged row before anything is read. A seed listed twice is searched once.

**Start with no seed runs the example:** the seed `sourdough`, up to its 10 biggest hashtags, so you can see real output before you put your own words in (the form opens empty, so pressing Start as it opens does this). It is charged like any run: on a paid plan every time, from $0.0026 on Gold to $0.0031 on Bronze. On the Apify free plan a bare Start runs one sample per account in any 24 hours, charged at the Apify Free plan prices ($0.0034), and after that it shows a stored example, not charged, with the time the next sample is available.

All Apify free plan accounts share one daily allowance on this actor, which renews at 00:00 UTC, and when it runs out a bare Start shows the same stored example, not charged.

### Pricing

Pay per result, all-inclusive (no platform usage on top), no start fee:

| Event | Apify Free plan | Bronze | Silver | Gold | Platinum | Diamond |
|---|---|---|---|---|---|---|
| Hashtag search (one per seed with at least one charged hashtag) | $0.0032 | $0.0029 | $0.0026 | $0.0024 | $0.0024 | $0.0024 |
| Hashtag (one per hashtag delivered) | $0.00002 | $0.00002 | $0.00002 | $0.00002 | $0.00002 | $0.00002 |

The hashtag search is charged once per seed, and only when that seed delivered at least one charged hashtag on the run. A seed with no hashtags, a seed that did not load, and a refused seed are never charged. Failed items are never charged.

Examples on Gold: one seed with 55 hashtags = $0.0024 + 55 × $0.00002 = $0.0035. One seed keeping its top 10 = $0.0026. 100 seeds × 55 hashtags = $0.35.

**Apify free plan:** an account on Apify's free plan can search up to 20 seeds in any 24 hours, plus one sample run (a Start with no seed), at the Apify Free plan prices in the table above, and free plan accounts share one daily allowance on this actor. Past either, the run keeps what it delivered and its last rows say when the allowance resets. Paid plans have no daily limit.

### Good to know

- **About 55 hashtags a seed:** one search listed 55 tags on every seed we measured, and you get every one it lists that contains your word. For more tags around a topic, add more seeds (`sourdough`, `sourdoughbread`, `sourdoughstarter`).
- **How long it takes:** a seed takes about 1 to 3 seconds, so 100 seeds take a few minutes.
- **A time limit ends the collecting, never the delivering:** hashtags already read are delivered, and the receipt says what stopped the run and which seeds to send again. Set **Max run seconds** to bound a run yourself. On a paid plan no daily limit of ours applies: a run stops at your run timeout or your maximum cost per run, if nothing at all comes back for 10 minutes, or if hashtags cannot be read on our side, and the receipt then names the seeds to send again.
- **This actor keeps no memory between runs:** every run reads every seed fresh and charges it. To run only what was left, send the receipt's `seedsToRunAgain`.
- **It may fail when Instagram changes how hashtags are listed** — failed items are never charged.

### Standby endpoint

On paid Apify plans the same thing is one HTTP request away: `GET /?seeds=sourdough&seeds=travel` (or a JSON body `{"seeds": ["sourdough", "travel"], "maxHashtagsPerSeed": 20}`) on this actor's Standby URL, up to 10 seeds a request. You get the same rows and the receipt back as JSON, at the same prices as a run. The endpoint keeps no account memory: every seed it returns is a fresh read. A request you close before its answer arrives is not charged.

### Related actors

- [Instagram Hashtag Scraper — Posts by Hashtag or Keyword](https://apify.com/steadyfetch/instagram-hashtag-scraper) — the posts and reels published under the hashtags you pick here.
- [Instagram Reels Keyword Search Scraper — Reels Search to Text](https://apify.com/steadyfetch/instagram-keyword-reels-scraper) — reels found by a search phrase, with what is said in them.
- [Related Keywords Generator — Keyword Ideas, Volume & CPC](https://apify.com/steadyfetch/keyword-ideas-scraper) — the same job for Google search keywords.

### Support

Questions, a seed that returns something odd, or a column you need: open an issue on the Issues tab and it will be looked at.

If it earned its keep, a rating helps other buyers find it, and saving the actor keeps it one click away.

# Changelog

This Actor's version history is a separate document: https://apify.com/steadyfetch/instagram-hashtag-generator/changelog.md

# Actor input Schema

## `seeds` (type: `array`):

One word or short phrase per line, with or without "#": "sourdough", "#travel", "home decor" (spaces are joined, since a hashtag has none). An Instagram tag link (instagram.com/explore/tags/travel/) is read as its tag. Each seed returns the real hashtags that contain it, largest first. On the Apify Free plan an account can search up to 20 seeds in any 24 hours plus one sample run, and free plan accounts share one daily allowance on this actor; paid plans have no daily limit. A link to anything else gets its own uncharged row. Leave it empty and press Start to run the example (the seed "sourdough").

## `maxHashtagsPerSeed` (type: `integer`):

Keep only this many of each seed's hashtags, largest post count first. Leave empty for every hashtag the search lists that contains the seed (55 on every seed we measured). Hashtags past your number are not delivered and not charged.

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

Stop starting new seeds after this many seconds (one seed takes about 1 to 3 seconds). Hashtags already read are still delivered. Leave empty for no limit beyond the run timeout.

## Actor input object example

```json
{}
```

# Actor output Schema

## `rows` (type: `string`):

One row per hashtag, for each seed: the seed, the hashtag (with and without #), its exact post count and the count as Instagram shows it, rank by size (1 = most posts), Instagram's own order (feedRank), the hashtag id and the tag page link. Every hashtag contains its seed; nothing is invented. Every row carries `charged`, `chargedEvents` and `status`, so the invoice reconciles from the dataset itself. Each delivered hashtag is charged one `hashtag`; each seed with at least one charged hashtag is charged one `hashtag-search`, on its first row. Hashtags past your maximum cost per run are delivered uncharged and say so.

## `misses` (type: `string`):

One uncharged row for each seed without hashtags, saying why: `no_results` (Instagram listed none containing the seed on this run; a shorter word or a later run may find some), `source_unavailable` (no answer on this run; run it again), `source_refused` (not accepted as a search), `parse_failed` (an answer we could not read, on our side), `failed` (read but not saved on Apify's side; run it again), `limit_reached` (this run reached a limit on our side; run it in a new run), `skipped_budget` / `skipped_deadline` (your maximum cost or the run clock stopped it first), `skipped.free_plan_allowance` (Apify free plan only: the daily allowance; the row names the reset time) and `input_error` (a link or a value with no letters; the row says what to put). None of these is charged.

## `summary` (type: `string`):

The run's receipt: seeds asked and delivered, hashtags delivered, seeds with no hashtags, the seeds worth sending again, the charged events and what stopped the run. Uncharged.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyfetch/instagram-hashtag-generator").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("steadyfetch/instagram-hashtag-generator").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 '{}' |
apify call steadyfetch/instagram-hashtag-generator --silent --output-dataset

```

## MCP server setup

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

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/cGYXTJ6rk4TF8yvdC/builds/2eyvREI1rH1hIQUav/openapi.json
