# Instagram Profile Posts Scraper (`perfectscrape/mass-instagram-profile-posts-scraper`) Actor

Super fast Instagram scraper, hundreds of requests per minute - using direct HTTP requests (no browser). Add multiple usernames/profile links. Get captions, images, videos, likes, comments, timestamps, and more. Fast, lightweight, low-cost—perfect for mass instagram scraping.

- **URL**: https://apify.com/perfectscrape/mass-instagram-profile-posts-scraper.md
- **Developed by:** [Sadnan](https://apify.com/perfectscrape) (community)
- **Categories:** Lead generation, Social media, Other
- **Stats:** 407 total users, 3 monthly users, 99.9% runs succeeded, 7 bookmarks
- **User rating**: 2.07 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Profile Posts Scraper

### Introduction

This Apify actor scrapes Instagram posts from public profiles wiyhout using browsers, making it ultra fast and saves costs. It's built for speed and simplicity—no browser automation involved. You can scrape multiple Instagram profiles by providing usernames or profile links and set how many posts to collect from each one. It’s ideal for tasks like social media research, influencer tracking, or content analysis.

This scraper can handle up to **400 posts per minute**, making it one of the fastest Instagram scrapers available. It avoids browser-based methods, which helps reduce cost and increase speed.

#### Example Performance

Scraping 300 posts took just 50 seconds and cost only **$0.06** in Apify usage.

![Example usage performance](https://i.postimg.cc/gk3TFrq5/3-AE70-D06-728-F-4279-8548-21058-F50-E1-D2.png)

### Features

- ⚡ **Fast scraping** can scrape upto 400 posts in a minute
- 🧠 **No browser** = lower costs and faster runs
- 📥 **Scrape multiple usernames or profile URLs**
- 🎯 **Set max number of posts per profile**
- 📊 **Returns detailed post-level data**
- ✅ **Built for scale and reliability**

### How to Use

1. Go to the actor’s page on Apify.
2. Input one or more Instagram usernames or profile URLs.
3. Set `maxResults` to limit the number of posts per profile.
4. Click **Start**.
5. Download the results when the run is complete.

### Input Fields

| Field        | Type    | Description                                      |
| ------------ | ------- | ------------------------------------------------ |
| `usernames`  | array   | List of Instagram usernames or full profile URLs |
| `maxResults` | integer | Number of posts to scrape per profile            |

### Output Fields

Each post will contain the following fields:

- `account_username`
- `caption`
- `posted` (timestamp)
- `likes`
- `comments`
- `video_links`
- `image_links`
- `thumbnail`
- `shortcode`
- `id`
- `account_verified`
- `account_profile_picture`

### 📤 Output Example

```json
{
    "id": "1234567890123456789_98765432",
    "shortcode": "EXAMP1Ev1D3o",
    "posted": "01 Jan 2025, 12:00:00 pm",
    "caption": "Sunset vibes with furry friends 🐾🌅 \n\n#EveningChill\n\nVideo by @exampleuser \nMusic by @sampleartist",
    "thumbnail": "https://instagram.examplecdn.net/v/t51.2885-15/example_thumbnail.jpg",
    "video_links": ["https://instagram.examplecdn.net/o1/v/t16/f2/sample_video.mp4"],
    "image_links": [
        "https://instagram.examplecdn.net/v/t51.2885-15/sample_image1.jpg",
        "https://instagram.examplecdn.net/v/t51.2885-15/sample_image2.jpg",
        "https://instagram.examplecdn.net/v/t51.2885-15/sample_image3.jpg"
    ],
    "likes": 12345,
    "comments": 678,
    "account_verified": true,
    "account_username": "exampleuser",
    "account_profile_picture": "https://instagram.examplecdn.net/v/t51.2885-19/sample_profile_pic.jpg"
}
```

### Cost and Performance

This actor is optimized for speed and cost. Scraping large volumes of posts takes seconds and stays cost-effective. For instance, scraping **300 posts** takes under a minute and costs **about $0.06**.

### Use Cases

- 📈 **Instagram scraping** for social media trends
- 🧾 **Instagram profile scraping** for influencer insights
- 🔍 **Instagram posts scraper** for research and content tracking
- 🗂️ **Media collection** (images, videos, captions)
- 👥 **Competitor analysis** and engagement data

### Ongoing Development

We’re actively working on this actor and others like it. Expect regular updates, performance improvements, and added features. If you find a bug or have an idea to improve it, feel free to open an issue:

👉 [Submit feedback or issues here](https://console.apify.com/actors/YWNSRWahRtCT0fzRj/issues)

***

This actor is built for anyone who needs reliable, fast, and flexible Instagram scraping.

# Actor input Schema

## `usernames` (type: `array`):

List of Instagram usernames or profile URLs (e.g., 'instagram' or 'https://instagram.com/instagram')

## `maxResults` (type: `integer`):

Maximum number of posts to scrape for each username.

## Actor input object example

```json
{
  "usernames": [
    "https://www.instagram.com/nasa/"
  ],
  "maxResults": 20
}
```

# 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 = {
    "usernames": [
        "https://www.instagram.com/nasa/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("perfectscrape/mass-instagram-profile-posts-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 = { "usernames": ["https://www.instagram.com/nasa/"] }

# Run the Actor and wait for it to finish
run = client.actor("perfectscrape/mass-instagram-profile-posts-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 '{
  "usernames": [
    "https://www.instagram.com/nasa/"
  ]
}' |
apify call perfectscrape/mass-instagram-profile-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,perfectscrape/mass-instagram-profile-posts-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/YWNSRWahRtCT0fzRj/builds/Pd6SOHuRoVD2zokN8/openapi.json
