# Instagram Profile Content Scraper — Posts, Reels & Story Status (`thenetaji/instagram-profile-content-scraper`) Actor

Scrape posts, reels, or check story/live status for one or more public Instagram accounts, with optional full media detail enrichment.

- **URL**: https://apify.com/thenetaji/instagram-profile-content-scraper.md
- **Developed by:** [The Netaji](https://apify.com/thenetaji) (community)
- **Categories:** Automation, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

**Pull posts, reels, or a quick story/live status check from public Instagram accounts — one Actor, one dropdown.**

I built this so tracking what an account is putting out doesn't mean running three different tools. Switch Fetch Mode and the same Actor covers posts, reels, and presence.

### Pick what you're tracking

Set Fetch Mode to Posts or Reels for the content grid, or to Highlights/Story Status for a quick check on whether the account currently has a public story live or is broadcasting. Turn on Fetch Full Media Details to swap thin posts/reels for their complete record.

#### Posts

Leave Fetch Mode on Posts to pull the public post grid for each account.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | array | Yes | Instagram usernames to scrape |
| `scraperType` | string | Yes | Which kind of content to collect for each account. |
| `maxItem` | integer | No | Maximum number of items to scrape (0 = unlimited) |

#### Reels

Switch Fetch Mode to Reels to pull short-form video posts instead.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | array | Yes | Instagram usernames to scrape |
| `scraperType` | string | Yes | Which kind of content to collect for each account. |
| `maxItem` | integer | No | Maximum number of items to scrape (0 = unlimited) |

#### Story/live status

Switch Fetch Mode to Highlights/Story Status to check whether each account currently has a public story live or is broadcasting.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | array | Yes | Instagram usernames to scrape |
| `scraperType` | string | Yes | Which kind of content to collect for each account. |

#### Full media detail

Turn on Fetch Full Media Details to replace each thin post/reel hit with its complete media record.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | array | Yes | Instagram usernames to scrape |
| `scraperType` | string | Yes | Which kind of content to collect for each account. |
| `enrichMedia` | boolean | No | Replace each thin hit with its complete media record (caption, counters, all image/video variants). Costs an extra event per swapped item. |

#### Example run

```json
{
  "username": [
    "nasa"
  ],
  "scraperType": "userPosts",
  "maxItem": 12,
  "enrichMedia": false
}
```

### Content, tagged by source account

#### Media identity

| Field | Type | Description |
| --- | --- | --- |
| `pk` | string | Instagram media numeric primary key. |
| `code` | string | Instagram post/reel shortcode. |
| `media_type` | number | Instagram media type (1=photo, 2=video, 8=carousel). |
| `taken_at` | number | Unix timestamp the media was posted. |

#### Engagement

| Field | Type | Description |
| --- | --- | --- |
| `like_count` | number | Number of likes on the media. |
| `comment_count` | number | Number of comments on the media. |
| `caption` | string | Post caption text. |

#### Story/live status

| Field | Type | Description |
| --- | --- | --- |
| `has_public_story` | boolean | Whether the account has an active public story. |
| `is_live` | boolean | Whether the account is currently live. |

#### Source & enrichment

| Field | Type | Description |
| --- | --- | --- |
| `source_username` | string | The account whose followers/followings this record belongs to. |
| `enriched` | boolean | Whether this record was replaced with a full enriched profile. |

#### Result preview

```json
{
  "pk": "3920738671208852726",
  "code": "DZpQwxqimz2",
  "like_count": 1024,
  "comment_count": 42,
  "taken_at": 1753123200,
  "media_type": 1,
  "caption": "A view from the summit",
  "enriched": false,
  "source_username": "nasa"
}
```

### Cost scales with mode and enrichment

This Actor uses Apify pay-per-result pricing. You are charged for successful dataset results according to the Actor pricing shown on the Apify Pricing tab. Enrichment may add extra billable events when enabled.

Apify's free credits may cover small test runs and up to the free result allowance configured for the Actor.

Start with a low maxItem value and chainDepth 0 before enabling enrichment or chain discovery for large runs.

Full media detail adds a billable event per swapped item — test with a small maxItem first.

### Public content, tracked responsibly

This Actor extracts publicly available Instagram account information. It should not be used to collect private account data, bypass access controls, or contact people in ways that violate privacy laws, Instagram terms, or your own compliance obligations. If you are unsure, consult a qualified lawyer.

### Run this Actor from code

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("thenetaji/instagram-profile-content-scraper").call(run_input={
    "username": [
        "nasa"
    ],
    "scraperType": "userPosts",
    "maxItem": 12,
    "enrichMedia": false
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### Node.js

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

const client = new ApifyClient({ token: "YOUR_APIFY_API_TOKEN" });
const run = await client.actor("thenetaji/instagram-profile-content-scraper").call({
  "username": [
    "nasa"
  ],
  "scraperType": "userPosts",
  "maxItem": 12,
  "enrichMedia": false
});

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

### Complementary Actors

- [Instagram User Info Scraper](https://apify.com/thenetaji/instagram-user-info-scraper) — Fetch public profile details for one or more Instagram accounts by username. Returns follower/following counts, biography, bio links and identity by default; enable Full Profile Details for post previews, media count and business fields.
- [Instagram Post Scraper — Details, Comments & oEmbed](https://apify.com/thenetaji/instagram-post-scraper) — Fetch a post's full media object, its comments, or its oEmbed metadata, by shortcode, media ID, or URL, with optional author profile enrichment.
- [Instagram Related Users Scraper](https://apify.com/thenetaji/instagram-related-user-scraper) — Discover Instagram accounts similar to a given user

### Ask the maintainer

Use the Issues tab on the Actor page for bug reports, missing fields, and feature requests.

# Actor input Schema

## `username` (type: `array`):

Instagram usernames to scrape

## `scraperType` (type: `string`):

Which kind of content to collect for each account.

## `maxItem` (type: `integer`):

Maximum number of items to scrape (0 = unlimited)

## `enrichMedia` (type: `boolean`):

Replace each thin hit with its complete media record (caption, counters, all image/video variants). Costs an extra event per swapped item.

## Actor input object example

```json
{
  "username": [
    "natgeo"
  ],
  "scraperType": "userPosts",
  "maxItem": 100,
  "enrichMedia": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped data

# 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 = {
    "username": [
        "natgeo"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/instagram-profile-content-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 = { "username": ["natgeo"] }

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/instagram-profile-content-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 '{
  "username": [
    "natgeo"
  ]
}' |
apify call thenetaji/instagram-profile-content-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=thenetaji/instagram-profile-content-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/193rW0z09SE6leYhm/builds/uqW4On6Bg6KeB3Xzg/openapi.json
