# Instagram Post Scraper using hash Tag (`clothefobia/instagram-post-scraper-using-hash-tag`) Actor

Instagram Post Scraper using hash Tag- scrap all instagram posts as per specified hash tag.

- **URL**: https://apify.com/clothefobia/instagram-post-scraper-using-hash-tag.md
- **Developed by:** [clothe fobia](https://apify.com/clothefobia) (community)
- **Categories:** Automation, Lead generation, Social media
- **Stats:** 7 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Post Scraper using Hash Tag

Instagram Post Scraper using Hash Tag - scrap all instagram posts with all details with  instagram username and userid using hash tag. you just need to insert hash tag tool will scrape all post related to this hash tag.

### Included below data when you scrap using our tools

- \*\*Post ID
- \*\*Post URL
- \*\*Post Short Code
- \*\*Post Caption
- \*\*Instagram user_id
- \*\*Instagram user_name
- \*\*Post like count
- \*\*Post comment count
- \*\*Post image_url
- \*\*timestamp

Example data extract from our tools

```
 {
    "id": "3615622202814936204",
    "post_url": "https://www.instagram.com/p/DItRTywzLSM/",
    "shortcode": "DItRTywzLSM",
    "caption": "@ min & @69.xxvuir_  # 🔇#awexz #ฝากบอกบอท #bot #imgx >>> ( @ account )",
    "user_id": "56191104144",
    "user_name": "fak_bot780",
    "like_count": 1,
    "comment_count": 1,
    "timestamp": 1745235775,
    "image_url": "https://scontent-iad3-2.cdninstagram.com/v/t51.2885-15/491463684_17962810583872145_3800704723498184590_n.jpg?stp=dst-jpg_e35_p1080x1080_sh0.08_tt6&_nc_ht=scontent-iad3-2.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2QGJI5YKpoY1SB5y73K1pzXri3s-eDIJvUjNiQkSDst2BeesTfDzksWaHbAv_6OKoAo&_nc_ohc=moypZ2vLHBgQ7kNvwFiat3Y&_nc_gid=O7XT2fX9Qo4jGkYel34lzA&edm=AA0rjkIBAAAA&ccb=7-5&oh=00_AfEPANOo5bTfHemTktD4qyDr6q24vbT9LjP_3ydisxyMUg&oe=680BFC9A&_nc_sid=49ed71"
  }
```

- ✅ Software will Extract All posts from any intagram hash tag with cookie method.
- ✅ Software with extract data with very securily so that instagram not block you.
- ✅ Software with extractraction speed is in 1 second 100 data.
- ✅ 100% Real Time instagram followere information with Advance Export into Excel ,CSV and Text Format.

### How to use

- Instagram Cookie - Enter Instagram Cookie (Check Section how to get Cookie)
- Instagram Hash Tag : Enter any hash tag like "Bot"
- Click on Save and Start Button for Start Process.

### How to get Instagram Cookies

1. ✅ Step 1 :  Install Chrome Extension [Export cookie JSON file for Puppeteer](https://chromewebstore.google.com/detail/export-cookie-json-file-f/nmckokihipjgplolmcmjakknndddifde/reviews) in chrome browser
2. ✅ Step 2 :  Login to your Instagram into chrome browser
3. ✅ Step 3 :  After login, open chrome Extension "Export cookie JSON file for Puppeteer"  and Click Export cookies as JSON, it will download Cookie json file, from file copy cookie.
4. ✅ Step 4 :  Go to Software input Area,Paste Cookie on Box "Instagram Cookie"

Get Cookie Demo video. so as per this video, just get cookie for instagram

https://youtu.be/OsOBlwwc2Xc

### Check Product Demo Video

https://youtu.be/34IrAXBUpdc

if you face any issue , you can email us at clothefobia@gmail.com

# Actor input Schema

## `HashTag` (type: `string`):

Instagram Hash Tag

## `insta_cookie` (type: `array`):

Insert your instagram cookie here.please login to instagram and use editthiscookie extention and get cookie and insert here

## `Run_Last` (type: `boolean`):

If checked then actors runs where last stop

## `proxySettings` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "HashTag": "bot",
  "proxySettings": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "HashTag": "bot",
    "Run_Last": false,
    "proxySettings": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("clothefobia/instagram-post-scraper-using-hash-tag").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 = {
    "HashTag": "bot",
    "Run_Last": False,
    "proxySettings": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("clothefobia/instagram-post-scraper-using-hash-tag").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 '{
  "HashTag": "bot",
  "Run_Last": false,
  "proxySettings": {
    "useApifyProxy": false
  }
}' |
apify call clothefobia/instagram-post-scraper-using-hash-tag --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clothefobia/instagram-post-scraper-using-hash-tag"
        }
    }
}
```

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/2UOJGVRagDKkNpxM2/builds/BbtrK5LB5YgnzDh9N/openapi.json
