# 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, NaN 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=clothefobia/instagram-post-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Instagram Post Scraper",
        "description": "Instagram Post Scraper : Scrap All posts detail from any instagram profile.",
        "version": "0.0",
        "x-build-id": "uP05NydhvJj5uMAh6"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/clothefobia~instagram-post-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-clothefobia-instagram-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/clothefobia~instagram-post-scraper/runs": {
            "post": {
                "operationId": "runs-sync-clothefobia-instagram-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/clothefobia~instagram-post-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-clothefobia-instagram-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "insta_cookie"
                ],
                "properties": {
                    "Insta_UserName": {
                        "title": "Instagram User Name",
                        "type": "string",
                        "description": "Instagram User Name"
                    },
                    "insta_cookie": {
                        "title": "Instagram Cookies",
                        "type": "array",
                        "description": "Instagram authentication cookies in JSON format (name-value pairs). To export cookies \n1. Install the Cookie Editor extension from [here](https://chromewebstore.google.com/detail/export-cookie-json-file-f/nmckokihipjgplolmcmjakknndddifde/reviews) \n2. open Instagram \n3. export cookies as JSON \n4. paste the JSON in this field. \nFor more, watch [this video](https://youtu.be/yYJ6l2jm83Q). \nRequired for accessing post likers."
                    },
                    "maxPosts": {
                        "title": "Maximum",
                        "type": "integer",
                        "description": "Maximum number of posts",
                        "default": 50
                    },
                    "Run_Last": {
                        "title": "Run where last stop",
                        "type": "boolean",
                        "description": "If checked then actors runs where last stop"
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used by the scraper to avoid being blocked by Instagram."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
