# Instagram Hashtag Posts - Most Recent by Hashtag 2026 (`instaprism/instagram-hashtag-posts`) Actor

No login required. Scrape the most recent posts from any Instagram hashtag in real-time. Get post URLs, captions, engagement metrics, author IDs. Always returns chronologically newest posts first. Export JSON/CSV.

- **URL**: https://apify.com/instaprism/instagram-hashtag-posts.md
- **Developed by:** [red](https://apify.com/instaprism) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 261 total users, 9 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 4.60 out of 5 stars

## Pricing

from $4.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Hashtag Posts Scraper - Get Recent Posts by Hashtag 2026

Scrape recent and top posts from any Instagram hashtag. Get post URLs, engagement metrics, and author details. Essential for content discovery and competitive research.

### No Login Required

**Your Instagram account stays safe.** This Actor:

- Does NOT require your Instagram login or cookies
- Uses our own infrastructure to fetch data
- Zero risk of account suspension for you
- Works with any public Instagram profile

Unlike browser extensions or tools that use your account, we handle all scraping server-side. Your credentials are never needed.

### Processing Time

| Volume | Processing Time |
|--------|-----------------|
| 100 posts per hashtag | 1-2 min |
| 500 posts per hashtag | 3-5 min |
| 1,000 posts per hashtag | 5-10 min |

Results stream in real-time as posts are discovered.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `hashtags` | array | Hashtags to scrape, without # (required) |
| `limit` | integer | Max posts per hashtag (default: 100) |
| `sortBy` | string | "recent" or "top" (default: recent) |

**Example input:**

```json
{
    "hashtags": ["fitness", "foodie", "travel"],
    "limit": 200,
    "sortBy": "recent"
}
```

### Output

Each post includes full engagement data:

```json
{
    "position": 1,
    "postId": "3245678901234567890",
    "url": "https://instagram.com/p/ABC123/",
    "shortcode": "ABC123",
    "owner": "fitness_pro",
    "ownerFollowers": 150000,
    "caption": "Morning workout! #fitness #gym #motivation",
    "mediaType": "carousel",
    "likes": 5000,
    "comments": 150,
    "views": null,
    "publishedAt": "2026-01-15T08:30:00Z",
    "sourceHashtag": "fitness"
}
```

### Sort Options

| Option | Description |
|--------|-------------|
| `recent` | Newest posts first - great for monitoring |
| `top` | Most engaging posts - great for research |

### Use Cases

- **Content discovery** - Find trending content in your niche
- **Competitor monitoring** - Track what content performs on your hashtags
- **Influencer discovery** - Find active creators in specific topics
- **Viral content research** - Analyze what formats work best
- **Content inspiration** - See what captions, formats, and styles perform
- **User-generated content** - Find posts mentioning your brand hashtag
- **Trend analysis** - Monitor hashtag activity over time

### Multiple Hashtags

Process multiple hashtags in a single run. Each result includes `sourceHashtag` so you can filter and analyze by hashtag.

### Tips for Best Results

1. **Recent vs Top** - Use "recent" for monitoring, "top" for research
2. **Combine related hashtags** - Scrape `["fitness", "gym", "workout"]` together
3. **Stream results** - Enable streaming to start analyzing immediately

### Output Format

Export as JSON or CSV. CSV is perfect for spreadsheet analysis.

### Integrations

Export your data to:

- **Google Sheets** - Direct integration, auto-sync results
- **Zapier / Make (Integromat)** - Trigger workflows when scrape completes
- **Webhooks** - Get real-time notifications
- **API** - Programmatic access via Apify API
- **Download** - JSON / CSV / Excel files

### Support

Telegram: @taskforceorange

### Need Custom Solutions?

Looking for **custom scraping**, **higher limits**, or **dedicated infrastructure**?

📩 **Contact us:**

- **Telegram:** [@taskforceorange](https://t.me/taskforceorange)
- **Website:** [social-swarm.com](https://social-swarm.com)

We offer:

- Custom actor development
- Enterprise-grade scraping solutions
- Dedicated proxy infrastructure
- White-label integrations
- Priority support

***

*Built with ❤️ by the InstaPrism team*

# Actor input Schema

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

Hashtags to scrape (without #). Returns the most recent posts for each hashtag.

## `limit` (type: `integer`):

Maximum number of recent posts to extract (across all hashtags)

## Actor input object example

```json
{
  "hashtags": [
    "fitness",
    "travel"
  ],
  "limit": 100
}
```

# Actor output Schema

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

All scraped items in JSON format

# 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": [
        "fitness",
        "travel"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("instaprism/instagram-hashtag-posts").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": [
        "fitness",
        "travel",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("instaprism/instagram-hashtag-posts").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": [
    "fitness",
    "travel"
  ]
}' |
apify call instaprism/instagram-hashtag-posts --silent --output-dataset

```

## MCP server setup

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

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/TvUBOmhSqmgGulaqM/builds/pT84E5xoCkmm4rPNL/openapi.json
