# Instagram Scraper - Posts, Reels, Profiles & Comments (`ryyos/instagram-scraper`) Actor

\[$1.5/1000] Scrape Instagram profiles, posts, reels, comments and locations from any mix of links and usernames - auto-detected, no login. Full post detail with all carousel media, tagged users, music, comments with authors, plus profile engagement analytics and date, media-type and likes filters.

- **URL**: https://apify.com/ryyos/instagram-scraper.md
- **Developed by:** [Rio Dwi Saputra](https://apify.com/ryyos) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

**Scrape Instagram profiles, posts, reels, comments and locations from one simple list - no login, no cookies, no browser.** Paste profile links, `@usernames`, post or reel links and location links in any mix. The Actor **recognises every line automatically** and returns clean, analysis-ready JSON: full post details (exact likes, comments with authors, every carousel image and video, tagged users, collaborators, music, location) plus **profile engagement analytics** computed for you.

### What does Instagram Scraper do?

Instagram Scraper collects public data from [Instagram](https://www.instagram.com) using Instagram's own lightweight web endpoints over plain HTTP. It is fast, cheap to run, and never needs your Instagram account, so there's no account to get flagged or locked.

For every input it can return:

- **Profiles** - bio, bio links, followers, following, verification, highlights, Threads handle, active story flag, plus analytics: average likes and comments, engagement rate, posts per week, top hashtags and content mix.
- **Posts and reels** - caption, hashtags, mentions, exact like and comment counts, video play counts, publish time, every image and video URL (including all carousel items) in directly downloadable form, alt text, tagged users, collaborators, music, location, topics, paid-partnership and AI labels.
- **Comments** - the latest comments of each post with author, text, time, likes and reply count.
- **Locations** - name, category, coordinates, address, phone, website, price range, total post count and its top posts.

Because it runs on the Apify platform you also get API access, scheduling, webhooks, integrations (Make, Zapier, Google Sheets, Slack and more), automatic proxy rotation and run monitoring out of the box.

### Why use this Instagram Scraper?

- **One input box for everything.** No need to pick a "content type" that has to match your URL format. Mix profiles, posts, reels and locations in a single run.
- **Full detail by default.** Every post is opened, so you get exact counts, all carousel media and real comments, not just a thumbnail grid.
- **Built-in analytics.** Engagement rate per post and per profile, posting frequency and top hashtags, ready for influencer vetting and competitor benchmarks.
- **Smart filters that save money.** Date range (after and before), media type (photos, videos, carousels, reels), minimum likes, minimum comments and caption keywords. Feeds stop early once posts get older than your date range, so you don't pay for data you'll throw away.
- **No account risk.** Fully logged-out, nothing to configure but your list.

Typical uses: influencer discovery and vetting, brand and competitor monitoring, campaign tracking, content research, academic studies, and feeding social data into BI dashboards or AI pipelines.

### How to scrape Instagram data

1. Click **Try for free** to open the Actor.
2. Paste your profiles, posts, reels or locations into **Instagram profiles, posts, reels or locations**, one per line.
3. Choose what to collect (profile details, posts, reels, full post detail, comments) and optionally set filters.
4. Click **Start** and watch results appear in the **Output** tab.
5. Download the data as JSON, CSV, Excel, XML or HTML, or fetch it through the API.

### Input

Everything is configured in the **Input** tab. Main options:

| Field | What it does | Default |
|---|---|---|
| `targets` | Profiles (`instagram.com/natgeo`, `natgeo`, `@natgeo`), posts (`/p/...`), reels (`/reel/...`), locations (`/explore/locations/...`) | - |
| `includeProfileDetails` | One profile row with analytics per account | `true` |
| `includePosts` / `maxPostsPerProfile` | Feed posts per profile, newest first | `true` / `24` |
| `includeReels` / `maxReelsPerProfile` | Reels tab with play counts | `false` / `12` |
| `scrapePostDetails` | Open every post for full detail | `true` |
| `maxCommentsPerPost` | Latest comments per post | `10` |
| `maxPostsPerLocation` | Top posts per location | `12` |
| `postedAfter` / `postedBefore` | Date range, `YYYY-MM-DD` or relative like `30 days` | - |
| `mediaTypes` | `photo`, `video`, `carousel`, `reel` | all |
| `minLikes` / `minComments` | Engagement thresholds | `0` |
| `captionKeywords` | Keep posts whose caption contains any of these | - |
| `maxConcurrency` | Parallel requests | `3` |
| `proxyConfiguration` | Apify Proxy (datacenter works well) | Apify Proxy |

Example input:

```json
{
  "targets": [
    "https://www.instagram.com/natgeo/",
    "@nasa",
    "https://www.instagram.com/reel/Dfa5-jix5gw/",
    "https://www.instagram.com/explore/locations/212988663/new-york-new-york/"
  ],
  "maxPostsPerProfile": 50,
  "includeReels": true,
  "maxCommentsPerPost": 10,
  "postedAfter": "3 months",
  "minLikes": 1000
}
```

### Output

Every row has a `resultType` of `profile`, `post` or `location`. The Output tab has separate **Posts & reels**, **Profiles** and **Locations** views. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

A post:

```json
{
  "resultType": "post",
  "id": "4024784204432119856",
  "shortCode": "Dfa5-jix5gw",
  "url": "https://www.instagram.com/reel/Dfa5-jix5gw/",
  "type": "Video",
  "isReel": true,
  "caption": "From harsh conditions to rival predators, these wolves face danger at every turn...",
  "hashtags": ["wolvesupclose"],
  "mentions": ["bertiegregory", "disneyplus"],
  "timestamp": "2026-11-07T15:00:02Z",
  "likesCount": 135360,
  "commentsCount": 563,
  "videoPlayCount": null,
  "engagementRatePercent": 0.0507,
  "ownerUsername": "natgeo",
  "ownerFollowersCount": 268116615,
  "displayUrl": "https://scontent...jpg",
  "videoUrl": "https://scontent...mp4",
  "images": ["https://scontent...jpg"],
  "childPosts": [],
  "taggedUsers": [],
  "coauthors": [],
  "location": null,
  "musicInfo": null,
  "latestComments": [
    {
      "text": "fascinating how resilient these species are in harsh conditions",
      "ownerUsername": "naturesealed",
      "timestamp": "2026-11-15T...Z",
      "likesCount": 0,
      "repliesCount": null
    }
  ],
  "source": { "type": "profile", "value": "natgeo" }
}
```

A profile:

```json
{
  "resultType": "profile",
  "username": "natgeo",
  "fullName": "National Geographic",
  "followersCount": 268116615,
  "followsCount": 195,
  "isVerified": true,
  "biography": "Step into wonder and find your inner explorer with National Geographic",
  "externalUrls": [{ "title": null, "url": "http://visitstore.bio/natgeo" }],
  "threadsUsername": "natgeo",
  "highlights": [{ "id": "18023864549864045", "title": "BOTW 2027" }],
  "stats": {
    "postsAnalyzed": 30,
    "avgLikes": 45470.3,
    "avgComments": 250.4,
    "engagementRatePercent": 0.0171,
    "postsPerWeek": 7.76,
    "topHashtags": ["perpetualplanet", "wolvesupclose", "photoark"],
    "contentMix": { "Video": 20, "Image": 6, "Sidecar": 4 }
  }
}
```

#### Main data fields

| Group | Fields |
|---|---|
| Post basics | `shortCode`, `url`, `type`, `productType`, `isReel`, `caption`, `hashtags`, `mentions`, `timestamp` |
| Engagement | `likesCount`, `commentsCount`, `videoPlayCount`, `engagementRatePercent`, `latestComments` |
| Media | `displayUrl`, `images`, `videoUrl`, `videoUrls`, `childPosts`, `width`, `height`, `accessibilityCaption` |
| Context | `taggedUsers`, `coauthors`, `location`, `musicInfo`, `topics`, `isPaidPartnership`, `isAiGenerated` |
| Owner | `ownerUsername`, `ownerFullName`, `ownerId`, `ownerIsVerified`, `ownerFollowersCount` |
| Profile | `username`, `fullName`, `biography`, `externalUrls`, `followersCount`, `followsCount`, `isVerified`, `isPrivate`, `highlights`, `threadsUsername`, `stats` |
| Location | `name`, `category`, `lat`, `lng`, `address`, `city`, `phone`, `website`, `priceRange`, `postsCount` |

### How much does it cost to scrape Instagram?

You pay per result: **$1.5 per 1,000 results** (profiles, posts and locations each count as one result). Example: 10 profiles with 50 posts each is about 510 results, roughly $0.77. Turning off **Open every post for full detail** makes runs faster when you only need listing data. Filters are applied before results are saved, so filtered-out posts are never charged.

### Tips

- Use `postedAfter` for monitoring jobs. Feeds stop as soon as posts get older than your date, keeping scheduled runs quick and cheap.
- Turn on **Reels tab** to get video play counts. They are also merged into matching feed posts.
- Keep **Parallel requests** at 3-5. Instagram rate-limits aggressive clients, and the Actor already rotates proxy sessions automatically when that happens.
- The `RUN_SUMMARY` record in the key-value store lists counts and any targets that failed (for example deleted posts or misspelled usernames).
- For keyword and hashtag search use the companion **Instagram Keyword Search Scraper**.

### FAQ, limitations and support

**Do I need an Instagram account or cookies?** No. Everything is collected logged-out.

**What can't be scraped without logging in?** Stories, followers/following lists, the "tagged" tab, private accounts (only their profile header), and comments beyond the first ~12-15 per post. Locations show about 20 top posts. Total post counts are not exposed logged-out.

**Is scraping Instagram legal?** This Actor only collects publicly visible data. Results may still contain personal data protected by GDPR and similar laws, so only collect what you have a legitimate reason to process, and review Instagram's terms for your use case. If unsure, consult a lawyer.

**Something broke or you need a custom feature?** Open an issue in the **Issues** tab. Custom solutions are available on request.

# Actor input Schema

## `targets` (type: `array`):

One per line. Accepted: profile URLs (<code>instagram.com/natgeo</code>), usernames (<code>natgeo</code> or <code>@natgeo</code>), post links (<code>/p/...</code>), reel links (<code>/reel/...</code>) and location links (<code>/explore/locations/123/...</code>). The type of each line is detected automatically, so you can mix them freely. For hashtags and keyword search use the Instagram Search Scraper Actor.

## `includeProfileDetails` (type: `boolean`):

One row per profile: bio, links, followers, following, verification, highlights, Threads handle, plus engagement analytics computed from the scraped posts (average likes and comments, engagement rate, posts per week, top hashtags, content mix).

## `includePosts` (type: `boolean`):

Collect the profile's feed posts (photos, videos, carousels and reels shown in the grid), newest first.

## `maxPostsPerProfile` (type: `integer`):

How many feed posts to collect per profile. Higher values cost more.

## `includeReels` (type: `boolean`):

Also collect the profile's Reels tab, which includes play counts. Reels already collected from the feed are not duplicated.

## `maxReelsPerProfile` (type: `integer`):

How many reels to collect per profile when the Reels tab is enabled.

## `scrapePostDetails` (type: `boolean`):

Opens each post to get exact likes and comment counts, the latest comments with authors, every carousel image and video in downloadable form, tagged users, collaborators, music and location. Turn off for a faster, cheaper run with listing data only. Post and reel links you paste are always opened in full.

## `maxCommentsPerPost` (type: `integer`):

How many of the latest comments to include with each opened post (author, text, time, likes, reply count). Without a login Instagram shows roughly the first 12-15 comments of a post, so values above that return what is available.

## `maxPostsPerLocation` (type: `integer`):

Top posts to collect for each location link. Without a login Instagram shows about 20 top posts per location.

## `postedAfter` (type: `string`):

Only keep posts published after this date. Use YYYY-MM-DD or a relative value such as <code>7 days</code>, <code>3 months</code> or <code>1 year</code>. UTC time. Feeds stop early once older posts are reached, which saves time and money.

## `postedBefore` (type: `string`):

Only keep posts published before this date. Same formats as above. Combine both fields for an exact date range.

## `mediaTypes` (type: `array`):

Keep only these kinds of posts. Leave empty to keep everything.

## `minLikes` (type: `integer`):

Skip posts with fewer likes than this. 0 keeps all posts. Exact counts need the opened post, so posts are opened automatically when this is set.

## `minComments` (type: `integer`):

Skip posts with fewer comments than this. 0 keeps all posts. Posts are opened automatically when this is set.

## `captionKeywords` (type: `array`):

Keep only posts whose caption contains at least one of these words or phrases (case-insensitive). Leave empty to keep everything.

## `maxConcurrency` (type: `integer`):

How many requests run in parallel. The default is a safe balance between speed and Instagram rate limits.

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

Apify Proxy is used by default and rotated automatically whenever Instagram rate-limits a session. Datacenter proxies work well; switch to residential only if you see many retries in the log.

## Actor input object example

```json
{
  "targets": [
    "https://www.instagram.com/natgeo/",
    "@nasa",
    "https://www.instagram.com/explore/locations/212988663/new-york-new-york/"
  ],
  "includeProfileDetails": true,
  "includePosts": true,
  "maxPostsPerProfile": 24,
  "includeReels": false,
  "maxReelsPerProfile": 12,
  "scrapePostDetails": true,
  "maxCommentsPerPost": 10,
  "maxPostsPerLocation": 12,
  "mediaTypes": [],
  "minLikes": 0,
  "minComments": 0,
  "captionKeywords": [],
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

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

No description

## `runInfo` (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 = {
    "targets": [
        "https://www.instagram.com/natgeo/",
        "@nasa",
        "https://www.instagram.com/explore/locations/212988663/new-york-new-york/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ryyos/instagram-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 = {
    "targets": [
        "https://www.instagram.com/natgeo/",
        "@nasa",
        "https://www.instagram.com/explore/locations/212988663/new-york-new-york/",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ryyos/instagram-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 '{
  "targets": [
    "https://www.instagram.com/natgeo/",
    "@nasa",
    "https://www.instagram.com/explore/locations/212988663/new-york-new-york/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ryyos/instagram-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ryyos/instagram-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/08Gujf4pUo7DCoQ3M/builds/vmAH0Jtc8lVgJjCer/openapi.json
