# Instagram User Detail Scraper - Posts & Comments (`airy_armadillo/ins-user-detail-scraper`) Actor

Extract Instagram profile details, posts (with media URLs), comments, stories and highlights for any public account. No login, no cookies, no Instagram API key. Multi-mode, per-post rows, CSV/JSON ready.

- **URL**: https://apify.com/airy_armadillo/ins-user-detail-scraper.md
- **Developed by:** [wen cheng](https://apify.com/airy_armadillo) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## 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 User Detail Scraper — Profile, Posts, Comments, Stories & Highlights (No Login)

Extract public Instagram data for any account **without logging in, without cookies and without an Instagram API key**.

Give it a list of usernames and pick what you want. Every record lands in a dataset as **one row per object**
(post / comment / story / highlight), with the owner's profile fields repeated on each row — ready for CSV, Excel, BI tools and CRMs.

### What you can get

| Mode (`resultsType`) | One row per | Fields |
|---|---|---|
| `profile` | account | full name, bio, external link, category, verified / private / business flags, followers, follows, posts count, avatar URL |
| `posts` | post | post ID + URL, media type (image / video / carousel), caption, likes, comments count, posted at, pinned flag, tagged users, co-authors, **media file URLs**, thumbnail URL |
| `comments` | comment | post ID + URL, comment ID, author username / full name / avatar, text, "5h ago", likes |
| `stories` | story item | story ID, media type, media URL, thumbnail, posted at |
| `highlights` | highlight **and** highlight item | highlight ID, title, cover URL, plus each item's media URL and timestamp |
| `all` | profile + posts + stories + highlights | everything above except comments |

Media URLs are direct, absolute and downloadable (`GET` works with no headers and supports HTTP `Range`,
so resume / partial downloads are fine).

### ⚠️ NOT SUPPORTED (please read before buying)

This Actor does **not** return follower lists, following lists or who-liked lists. Those three interfaces of the
underlying data source are permanently blocked upstream (`following` / `followers` return `TIMEOUT`, `likes` returns
`NOT_FOUND`) — the payloads match the site's own frontend byte for byte, so no parameter tuning can unlock them.
If you need **following / followers**, use a different Actor. Everything else on this page is live-tested data.

### How to use it

1. Add one or more public Instagram usernames (`nasa`, `@natgeo`, …). Profiles are interchangeable with `@handle` form.
2. Pick **Data to scrape**. `profile` is the cheapest (1 request per account), `all` is the richest.
3. Optionally raise **Posts pages per account** (12 posts per page) and **Highlights to expand**.
4. Run, then export the dataset as JSON / CSV / Excel / XML, or pull it with the Apify API.

#### Rate limits are real — keep runs small

The data source rate-limits after roughly **30 upstream jobs per session**; after that every interface starts
returning `TIMEOUT` until it cools down for 3–5 minutes. A single job is one of: profile, one posts page,
one comments request, one stories request, one highlights request.

So: `profile` for ~10 accounts is ~10 jobs (fine). `all` with 3 posts pages for 10 accounts is ~60 jobs
(will hit cooldown). Keep `usernames` at ≤ 10 and prefer one mode at a time; the run stays well inside the limit.

### Output sample (`posts` mode)

```json
{
  "rowType": "post",
  "inputUsername": "nasa",
  "postId": "DeTUk4sDSp-",
  "postUrl": "https://www.instagram.com/p/DeTUk4sDSp-/",
  "mediaType": "video",
  "caption": "POV: you're watching the Earth set …",
  "likesCount": 779233,
  "commentsCount": 1234,
  "timestamp": "2026-10-10T15:15:02.000Z",
  "isPinned": false,
  "taggedUsers": [],
  "coAuthors": [],
  "mediaUrls": ["https://inviziogram.com/mp/<sha1>/<token>"],
  "thumbnailUrl": "https://inviziogram.com/mp/<sha1>/<token>",
  "profile": {
    "username": "nasa",
    "fullName": "NASA",
    "isVerified": true,
    "isPrivate": false,
    "category": null,
    "biography": "Making the seemingly impossible, possible. ✨",
    "externalLink": "https://www.nasa.gov",
    "followersCount": 104329043,
    "followsCount": 90,
    "postsCount": 5010,
    "avatarUrl": "https://inviziogram.com/mp/<sha1>/<token>"
  },
  "scrapedAt": "2026-11-16T01:12:00Z",
  "source": "inviziogram.com"
}
```

Rows that could not be produced are emitted as `rowType: "error"` (with `stage` + `error`), and stories that the
upstream refuses are emitted as `rowType: "degraded"`. A per-run summary is stored in the run's key-value store
under the `SUMMARY` key, so you can check counts and errors without parsing the dataset.

### Tips

- **Stories are the least reliable interface.** They are retried (`storiesRetries`, default 2) with a forced refresh
  to bypass the server-side failure cache. A failed story fetch degrades that field, it does not fail the run.
- **Metrics are upstream-cached** and lag Instagram by minutes to hours; compare with the app in an incognito window.
- **Private accounts** return their public shell only (no posts / stories).
- **Proxy**: optional. Add Apify Proxy only if you see connection errors from your region — one proxy session per account.

### Cost

This Actor is currently **free to run** (you only pay standard Apify platform usage for the run).

# Actor input Schema

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

Public Instagram usernames to scrape (with or without @). Keep this small: the upstream site rate-limits after ~30 jobs per session and then needs a 3-5 minute cooldown.

## `resultsType` (type: `string`):

Which records to produce. `all` = profile + posts + stories + highlights (comments excluded, use `comments` explicitly).

## `postsPages` (type: `integer`):

12 posts per page. 1 page = 1 upstream job.

## `commentsPerAccount` (type: `integer`):

Only used when Data to scrape = comments. Each post costs 1 upstream job.

## `highlightLimit` (type: `integer`):

How many highlights get their items fetched. 0 = only the highlight list.

## `includeProfileInRows` (type: `boolean`):

Adds a `profile` object to each post/comment/story row so the dataset is join-free in CSV/BI tools.

## `taskDelaySecs` (type: `number`):

Throttle. Below 2 seconds you risk the site-wide rate limit (all interfaces start returning TIMEOUT).

## `jobTimeoutSecs` (type: `integer`):

Billing is per compute-second, and a timed-out job is billed for the full wait. 60s keeps a rate-limited run cheap; upstream answers in ~2-8s when healthy.

## `storiesRetries` (type: `integer`):

Stories are the least reliable upstream interface (quota-based). Retries use forceRefresh to bypass the server-side failure cache.

## `proxyConfiguration` (type: `object`):

Optional. The site is Cloudflare-fronted but currently accepts plain datacenter IPs; enable Apify Proxy only if you see connection errors.

## Actor input object example

```json
{
  "usernames": [
    "nasa"
  ],
  "resultsType": "profile",
  "postsPages": 1,
  "commentsPerAccount": 1,
  "highlightLimit": 1,
  "includeProfileInRows": true,
  "taskDelaySecs": 2.5,
  "jobTimeoutSecs": 60,
  "storiesRetries": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset with one row per profile, post, comment, story, highlight or highlight item. `rowType` tells them apart.

## `summary` (type: `string`):

Per-account row counts and upstream errors for this run.

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

// Run the Actor and wait for it to finish
const run = await client.actor("airy_armadillo/ins-user-detail-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": ["nasa"] }

# Run the Actor and wait for it to finish
run = client.actor("airy_armadillo/ins-user-detail-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": [
    "nasa"
  ]
}' |
apify call airy_armadillo/ins-user-detail-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,airy_armadillo/ins-user-detail-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/dDamLCPamwIQi893b/builds/dEPcjMwvgj3jykpEO/openapi.json
