# Instagram Post Scraper (`clothefobia/instagram-post-scraper`) Actor

Instagram Post Scraper : Scrap All posts detail from any instagram profile.

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

## Pricing

from $100.00 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### Instagram Post Scraper

Instagram Post Scraper  - scrap all instagram posts with all details from any instagram profile . you just need to insert Instagram profile 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": "3788640076473336808_38112389378",
    "post_url": "https://www.instagram.com/p/DST9BOUAIPo/",
    "shortcode": "DST9BOUAIPo",
    "caption": "DataScrapify - All in one automation tools for grow your social media\n\nhttps://www.datascrapify.com",
    "video": "https://scontent-iad3-2.cdninstagram.com/o1/v/t2/f2/m86/AQPkwjJ-jKCUU3LOQAUmiX3oCHauG6GYF9lv7VYtLcdypysKAEJQaVtly6Zo41iUJUi9nBgA2nOCIW_RQ3V6T45psB9STZzqIi_tek0.mp4?_nc_cat=105&_nc_sid=5e9851&_nc_ht=scontent-iad3-2.cdninstagram.com&_nc_ohc=DFG_Z1xK8VIQ7kNvwEP6qJU&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6ODQ3OTk3MjUxNDY0NDAzLCJhc3NldF9hZ2VfZGF5cyI6OTUsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjozOCwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=9f3e18358cf13e50&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC9DQzRDRjk1NkFDNzNCN0U4OUFEMzVEOEI2REE1MjVCRV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HQWROMVNPMlZPcXRkeElIQUk3RXBnX203Y2htYnN0VEFRQUYVAgLIARIAKAAYABsCiAd1c2Vfb2lsATEScHJvZ3Jlc3NpdmVfcmVjaXBlATEVAAAmprON7_fPgQMVAigCQzMsF0BDLtkWhysCGBJkYXNoX2Jhc2VsaW5lXzFfdjERAHX-B2XmnQEA&_nc_gid=QSmCSzgC_wh048pGkpU5Ng&_nc_ss=7a30f&_nc_zt=28&oh=00_Afwjnyv-la4tgptsKhg2MtZ3xd-ywAUtOIdmXjuHPU-McQ&oe=69C06862",
    "user_id": "38112389378",
    "user_name": "motivation_quote_12668",
    "like_count": 1,
    "comment_count": 0,
    "timestamp": 1765861130,
    "image_url": "https://scontent-iad3-1.cdninstagram.com/v/t51.82787-15/598127283_18079034909269379_4880633476719646927_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=110&ig_cache_key=Mzc4ODY0MDA3NjQ3MzMzNjgwOA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6InhwaWRzLjEwODB4MTkyMC5zZHIuQzMifQ%3D%3D&_nc_ohc=k2ptA-MLU_oQ7kNvwFW2dCN&_nc_oc=AdrLQsjYBypJWOIV1RfCwrahZwv4fAyksAn0bcFpwmWW2K3xmJRDeH__zZeUkMjxHPY&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-iad3-1.cdninstagram.com&_nc_gid=QSmCSzgC_wh048pGkpU5Ng&_nc_ss=7a30f&oh=00_AfzxfxthDvk7AMR-RTjopm9jUz48cvRDpDTok5rUoeiZwQ&oe=69C454FC"
  }
```

- ✅ 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 Profile : Enter any instagram profile 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/\_8rjcypTGZ4

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

# Actor input Schema

## `Insta_UserName` (type: `string`):

Instagram User Name

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

Instagram authentication cookies in JSON format (name-value pairs). To export cookies

1. Install the Cookie Editor extension from [here](https://chromewebstore.google.com/detail/export-cookie-json-file-f/nmckokihipjgplolmcmjakknndddifde/reviews)
2. open Instagram
3. export cookies as JSON
4. paste the JSON in this field.
   For more, watch [this video](https://youtu.be/yYJ6l2jm83Q).
   Required for accessing post likers.

## `maxPosts` (type: `integer`):

Maximum number of posts

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

If checked then actors runs where last stop

## `proxy` (type: `object`):

Select proxies to be used by the scraper to avoid being blocked by Instagram.

## Actor input object example

```json
{
  "Insta_UserName": "motivation_quote_12668",
  "maxPosts": 50,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "Insta_UserName": "motivation_quote_12668",
    "Run_Last": false,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("clothefobia/instagram-post-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 = {
    "Insta_UserName": "motivation_quote_12668",
    "Run_Last": False,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("clothefobia/instagram-post-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 '{
  "Insta_UserName": "motivation_quote_12668",
  "Run_Last": false,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call clothefobia/instagram-post-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clothefobia/instagram-post-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/gBjrgIVTkoIvyEpgd/builds/uP05NydhvJj5uMAh6/openapi.json
