# Instagram Follower Story Post Comment Likes Reel Profile API (`ipeer_apis/instapeer-instagram-public-api`) Actor

Instagram Public Data API

We provides :

- Followers/Following

- User Stories

- User Posts

- User Reels

- User Post/Media Comments

- Media Likes

- User Profile

- **URL**: https://apify.com/ipeer_apis/instapeer-instagram-public-api.md

- **Developed by:** [Instant Peer APIs](https://apify.com/ipeer_apis) (community)

- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks

- **User rating**: No ratings yet

## Pricing

from $0.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

<p align="center">
  <img src="https://ipeerapis.shop/products/instapeer-instagram.png" alt="InstantPeer Instagram API" width="140" style="border-radius: 20px;" />
</p>

## Instagram Data API & Scraper: Profiles, Posts, Reels, Followers & Comments

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-orange?logo=apify)](https://apify.com/ipeer_apis/instapeer-instagram-public-API)
[![Pricing](https://img.shields.io/badge/Pricing-Free%20Tier-brightgreen)](https://apify.com/ipeer_apis/instapeer-instagram-public-API)
[![Speed](https://img.shields.io/badge/Speed-Sub--Second%20API-blue)](https://apify.com)
[![Maintenance](https://img.shields.io/badge/Maintenance-Active-success)](https://apify.com)

Extract comprehensive, real-time public data from Instagram with **zero browser overhead** and **zero proxy bans**. Powered by the **InstantPeer** decentralized residential peer-node network, this Actor delivers 10x faster scraping speeds than traditional headless browser crawlers (Puppeteer/Playwright) while consuming minimal Apify Compute Units (CUs).

***

### 🌟 Why Choose InstantPeer Instagram Scraper?

| Feature | InstantPeer Actor | Traditional Headless Scrapers |
|---|---|---|
| **Architecture** | Direct Peer-Mesh API Bridge | Heavy Headless Browser (Puppeteer/Playwright) |
| **Execution Speed** | **1–3 seconds** per profile / page | 20–45+ seconds per profile |
| **Compute Units (Memory)** | **128 MB – 256 MB** | 2048 MB – 4096 MB (High Apify CU bills) |
| **Proxy Bans & Rate Limits** | Dynamic Residential Peer Routing | High risk of IP blocking & Captchas |
| **Output Formats** | JSON, CSV, Excel, XML, HTML, Webhooks | JSON, CSV |
| **AI-Agent & Pipeline Ready** | Strict typing & standard envelopes | Inconsistent unstructured DOM outputs |

***

### 📦 What Data Can You Scrape?

1. **User Profiles & Intelligence**:
   - Bio, username, full name, numeric user ID, verified status, private status.
   - Follower count, following count, total post count.
   - Profile picture HD URL, external website bio link.
   - **About This Account Audit**: Account join date, country/region of origin, and former username changes history.
2. **User Posts & Media**:
   - Shortcode, post URL, caption, display URL, dimensions.
   - Like count, comment count, video view count.
   - Timestamp, location tag, tagged users, carousel children media.
3. **Reels Feed**:
   - Video URL, play counts, like counts, duration, audio attribution.
4. **Followers & Following**:
   - Paginated list of followers with cursor support.
5. **Post Comments & Replies**:
   - Comment text, commenter username, like count, timestamp, child replies.
6. **Post Likers**:
   - Full list of users who liked any post or reel.
7. **Stories & Highlights**:
   - Active stories and story highlights breakdown.
8. **Universal Search & Hashtag Analytics**:
   - Search across users, hashtags, and places with keyword discovery.

***

### 🚀 How to Use

#### 1. Select Scraping Mode (`action`)

Choose what data you want from the dropdown:

- `profile` — User profile details + About account audit
- `posts` — User posts feed with pagination
- `reels` — User Reels feed
- `tagged_posts` — Posts where the user is tagged
- `followers` — Followers list
- `comments` — Post or reel comments
- `likers` — Post likers
- `stories` — Active stories and highlights
- `search` — Universal search or hashtag discovery

#### 2. Configure Inputs

Provide target usernames, URLs, or search keywords.

##### Example 1: Scrape Instagram Profiles

```json
{
  "action": "profile",
  "usernames": [
    "instagram",
    "natgeo",
    "https://www.instagram.com/cristiano/"
  ],
  "includeAboutAccount": true
}
```

##### Example 2: Scrape Posts & Media

```json
{
  "action": "posts",
  "usernames": ["natgeo"],
  "resultsLimit": 50
}
```

##### Example 3: Scrape Comments from a Post or Reel

```json
{
  "action": "comments",
  "directUrls": [
    "https://www.instagram.com/p/DF7oZfPygjB/"
  ],
  "resultsLimit": 100
}
```

##### Example 4: Search Hashtags or Keywords

```json
{
  "action": "search",
  "searchQuery": "#travelphotography"
}
```

***

### 📊 Sample Output (Profile)

```json
{
  "scrapeType": "profile",
  "username": "instagram",
  "id": "25025320",
  "full_name": "Instagram",
  "biography": "Discovering — and making — what's next from the culture.",
  "follower_count": 678000000,
  "following_count": 82,
  "media_count": 7890,
  "is_verified": true,
  "is_private": false,
  "profile_pic_url": "https://scontent...",
  "external_url": "https://about.instagram.com",
  "aboutAccount": {
    "date_joined": "October 2010",
    "country_of_origin": "United States",
    "former_usernames": 0
  },
  "scrapedAt": "2026-10-15T14:30:00.000Z"
}
```

***

### 💻 Integrations & API Usage

You can trigger this Actor programmatically in your applications:

#### Python (via `apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")

run_input = {
    "action": "profile",
    "usernames": ["instagram", "cristiano"],
    "includeAboutAccount": True,
}

run = client.actor("ipeer_apis/instapeer-instagram-public-API").call(run_input=run_input)

## Fetch results from the default dataset
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### Node.js (via `apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_API_TOKEN' });

const run = await client.actor('ipeer_apis/instapeer-instagram-public-API').call({
    action: 'posts',
    usernames: ['natgeo'],
    resultsLimit: 25,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### cURL / REST API

```bash
curl -X POST "https://api.apify.com/v2/acts/ipeer_apis~instapeer-instagram-public-API/runs?token=YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "profile",
    "usernames": ["instagram"]
  }'
```

***

### 🛡️ Fair Use & Privacy Notice

This Actor is designed exclusively for public data extraction in compliance with applicable public data access guidelines. It does not access private accounts or require personal user credentials.

***

### 💬 Support & Feedback

Encountering an issue or need custom high-volume enterprise concurrency?

- Email: <instantpeerapis@gmail.com>
- Report issues in the Actor's **Issues** tab on Apify Console.

# Actor input Schema

## `action` (type: `string`):

Select what type of Instagram data you want to extract.

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

List of Instagram usernames or URLs (e.g. \['instagram', 'natgeo', 'https://instagram.com/cristiano']). Used for Profile, Posts, Reels, Tagged Posts, Followers, Stories.

## `directUrls` (type: `array`):

List of Instagram post or reel URLs (e.g. \['https://www.instagram.com/p/DF7oZfPygjB/']). Used for Comments and Likers.

## `searchQuery` (type: `string`):

Keyword or hashtag to search (e.g. 'travel' or '#photography'). Used for Search mode.

## `resultsLimit` (type: `integer`):

Maximum number of items (posts, followers, comments) to collect per target.

## `includeAboutAccount` (type: `boolean`):

Enrich profile data with join date, country of origin, and former usernames.

## `customUserId` (type: `string`):

Optional: Explicit numeric Instagram User ID (e.g. '47643255841'). If omitted, the Actor automatically resolves it from the username.

## `startFrom` (type: `string`):

Optional: Resume pagination from a specific cursor token (e.g. from a previous run).

## Actor input object example

```json
{
  "action": "profile",
  "usernames": [
    "instagram"
  ],
  "resultsLimit": 50,
  "includeAboutAccount": true
}
```

# Actor output Schema

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

Instagram records extracted by the Actor

# 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": [
        "instagram"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ipeer_apis/instapeer-instagram-public-api").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": ["instagram"] }

# Run the Actor and wait for it to finish
run = client.actor("ipeer_apis/instapeer-instagram-public-api").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": [
    "instagram"
  ]
}' |
apify call ipeer_apis/instapeer-instagram-public-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ipeer_apis/instapeer-instagram-public-api"
        }
    }
}
```

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/QbCqSKSzL3Vx9ivyB/builds/rAQ95aq9dubW2wCqu/openapi.json
