# Instagram Post Scraper (`codenest/instagram-post-scraper`) Actor

(Cheapest rate) Input profile URLs or username or specific post URLs and  Scrape Instagram posts with full metadata - usernames, captions, reactions, comments, media URLs (images/videos/reels), thumbnails, and upload timestamps from any public profile.

- **URL**: https://apify.com/codenest/instagram-post-scraper.md
- **Developed by:** [CodeNest](https://apify.com/codenest) (community)
- **Categories:** Social media, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 8 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 post scrapeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 📸 Instagram Post Scraper - Ultimate Profile-Based Content Extractor

**Effortlessly scrape and download Instagram posts, reels from any profile with our powerful **Instagram Post Scraper**! This Apify actor enables bulk extraction of posts, complete metadata, engagement metrics, and comprehensive profile information.**

***

### 📋 Overview

Need to archive Instagram content, analyze viral trends, or repurpose posts? This **Instagram Post Scraper** delivers:

- 📱 **Profile-Based Scraping** - Extract posts from any Instagram profile/page
- 🎬 **Multi-Format Support** - Download images, videos, and reels
- 📊 **Rich Engagement Data** - Reactions, comments, descriptions, timestamps
- ⚡ **High Performance** - Concurrent scraping with customizable limits
- 🔍 **Complete Profile Metadata** - Bio, followers, following, profile photos
- 🌐 **Proxy Support** - Built-in Apify proxy integration for reliable scraping

Perfect for social media managers 📈, content creators 🎭, marketers 📊, and data analysts 🔬!

***

### ⭐ Core Capabilities of Instagram Post Scraper

#### 🎯 Profile Extraction

- **Multiple Profile Support** - Scrape from 4+ Instagram profiles simultaneously
- **Complete Profile Data** - Bio, follower counts, profile/cover photos
- **Verification Status** - Detect verified accounts automatically
- **Rich Metadata** - Full name, bio, posts count, and more

#### 📱 Post Data Mastery

- **Downloadable Media URLs** - Direct CDN links for all posts
- **Engagement Metrics** - Reactions, comments (formatted K/M/B)
- **Content Descriptions** - Captions and hashtags
- **Temporal Data** - Upload timestamps and durations
- **Thumbnail Extraction** - High-quality cover images for videos/reels
- **Media Type Detection** - Auto-identifies images vs. videos vs. reels

#### ⚡ Technical Features

- **Concurrency Control** - Adjustable parallel processing (1-10 threads)
- **Proxy Configuration** - Built-in Apify proxy support
- **Session Management** - Optional session persistence
- **JSON Output** - Clean structured data with optional file export
- **Error Resilience** - Individual profile failures don't stop batch
- **Headless Mode** - Efficient browser automation

***

### ⚙️ Input Configuration

Simply enter Instagram profile URLs, configure limits, and click "Start". Input looks like this:

```json
{
  "headless": true,
  "includeDetailedEngagement": true,
  "maxReels": 10,
  "postUrls": [
    "https://www.instagram.com/p/Dcl4SbSlNZA/?utm_source=ig_web_copy_link&stkn=NTc4MTIwNjQ2YQ=="
  ],
  "profileUrls": [
    "wwe",
    "https://www.instagram.com/apple/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "outputFile": "reels_data.json",
  "sessionId": ""
}
```

#### 📝 Input Specifications

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `profileUrls` | Array | ✅ Yes | - | Instagram profile URLs or usernames to scrape |
| `maxReels` | Integer | ❌ No | 60 | Maximum posts to extract per profile |
| `headless` | Boolean | ❌ No | true | Run browser in headless mode |
| `outputFile` | String | ❌ No | "reels_data.json" | Output filename for JSON export |
| `proxyConfiguration.useApifyProxy` | Boolean | ❌ No | true | Enable Apify proxy rotation |
| `sessionId` | String | ❌ No | "" | Session ID for cookie persistence |

***

### 📤 Output Structure

Your **Instagram Post Scraper** produces comprehensive output with profile metadata and post data:

```json
[
  {
    "profile_url": "https://www.instagram.com/nba",
    "scraped_at": "2026-09-10T10:14:39.579560Z",
    "profile_metadata": {
      "username": "nba",
      "full_name": "NBA",
      "biography_clean": "Join us as we recap the best plays, performances and moments of the 2025-26 NBA season 🍿",
      "followers_count": 88043003,
      "following_count": 1303,
      "posts_count": 0,
      "profile_pic_url_hq": "https://scontent.cdninstagram.com/v/t51.82787-19/582086582_18603572488024487_7141348984943669969_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy44MDAuQzMifQ%3D%3D&_nc_ohc=5oia_M4ZE7sQ7kNvwGXf5xa&_nc_oc=Adq2YpkykvvL_O2OZn6goTm13xJPh3fqA_xEzap3-JRW8EAsz-pD0ATiVAz5aQ2nH_Y&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=62AdRX8hPg6Ns0zmsB9jfg&_nc_ss=72689&oh=00_AQItpzZkiip3Nt_j3qBA5MidO595dezRF8INkZ3XjTSukw&oe=6AA844BE",
      "is_verified": true,
      "page_title": "NBA (@nba) • Instagram photos and videos",
      "title": "NBA (@nba) • Instagram photos and videos",
      "description": "",
      "image": "https://scontent.cdninstagram.com/v/t51.82787-19/582086582_18603572488024487_7141348984943669969_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy44MDAuQzMifQ%3D%3D&_nc_ohc=5oia_M4ZE7sQ7kNvwGXf5xa&_nc_oc=Adq2YpkykvvL_O2OZn6goTm13xJPh3fqA_xEzap3-JRW8EAsz-pD0ATiVAz5aQ2nH_Y&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=62AdRX8hPg6Ns0zmsB9jfg&_nc_ss=72689&oh=00_AQItpzZkiip3Nt_j3qBA5MidO595dezRF8INkZ3XjTSukw&oe=6AA844BE",
      "url": "https://www.instagram.com/nba/",
      "scraped_at": "2026-09-10T10:14:32.656865Z"
    },
    "total_posts_scraped": 10,
    "posts": [
      {
        "posts num ": 1,
        "version": "1.0",
        "title": "OPENING WEEK IS MUST-SEE 🍿\n\nNBA Champions raise a banner. Superstars debut with new teams. Rivalries pick up where they left off.\n\nThe 2026-27 NBA season tips off Tuesday, October 20. Watch all the action on NBC/Peacock, ESPN and Prime. NBA Schedule Release presented by @ticketmaster\n\n🍿 Jayson Tatum, Paul George and the Celtics visit Cade Cunningham and last year’s top-seeded Pistons\n🍿 LeBron James and Jaylen Brown make Sixers debuts vs. Jalen Brunson and the Knicks on their championship banner raising night at MSG\n🍿 Shai Gilgeous-Alexander and the Thunder face Victor Wembanyama and the Spurs in a West Finals rematch\n\n🍿 Giannis (MIA) and LaMelo (MIN) make their new team debuts\n🍿 Luka, Lakers host Steph, Warriors in LA\n🍿 LeBron makes 76ers home debut vs. Spida and the Cavs\n🍿 SGA and Joker clash in a matchup of the last two Kia NBA MVPs\n\n🍿 Brunson and the reigning champion Knicks visit Tatum and the Celtics in Boston\n🍿 KD and Wemby go head-to-head for Rockets/Spurs Texas showdown in Austin",
        "author_name": "nba",
        "author_url": "https://www.instagram.com/nba/",
        "author_id": 20824486,
        "media_id": "3961358960653615413",
        "provider_name": "Instagram",
        "provider_url": "https://www.instagram.com",
        "type": "rich",
        "width": 658,
        "height": null,
        "html": "<blockquote class=\"instagram-media\" data-instgrm-captioned data-instgrm-permalink=\"https://www.instagram.com/p/Db5kvyNkcE1/?utm_source=ig_embed&amp;utm_campaign=loading\" data-instgrm-version=\"14\" style=\" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);\"><div style=\"padding:16px;\"> <a href=\"https://www.instagram.com/p/Db5kvyNkcE1/?utm_source=ig_embed&amp;utm_campaign=loading\" style=\" background:#FFFFFF; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%;\" target=\"_blank\">View this post on Instagram</a></div></blockquote>\n<script async src=\"//www.instagram.com/embed.js\"></script>",
        "thumbnail_url": "https://scontent.cdninstagram.com/v/t51.82787-15/772534945_18671067484024487_6177514029198978514_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=108&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0FST1VTRUxfSVRFTS5iZXN0X2ltYWdlX3VybGdlbi5DMyJ9&_nc_ohc=NBXGZarcohwQ7kNvwH_0y8L&_nc_oc=Adq9pm20AbOTT8sKzW2SVi_ZcrtwFYKS2LY3x_a8qTCLjVfTgUSbtjIvWAK6kwXst4Y&_nc_zt=23&_nc_ht=scontent.cdninstagram.com&_nc_gid=iYTPxds-s2WEfEVCLsnGYA&_nc_ss=72689&oh=00_AQIQAtuJFOsmUKe4UoBv2OGTdCLC3C_YgUQc005mKEhcpw&oe=6AA86FE6",
        "thumbnail_width": 640,
        "thumbnail_height": 640,
        "post_url": "https://www.instagram.com/p/Db5kvyNkcE1/",
        "shortcode": "Db5kvyNkcE1",
        "post_type": "carousel",
        "is_video": false,
        "post_downloadable_url": "",
        "carousel_images": [
          "https://instagram.fidr4-3.fna.fbcdn.net/v/t51.82787-15/772534945_18671067484024487_6177514029198978514_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=108&ig_cache_key=Mzk2MTM1NjYyNjY2MTEzNDg2OQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=NBXGZarcohwQ7kNvwFPqQzv&_nc_oc=AdoRgdV9eDNJFoxAobKzWnW1VnrBoUT9V-pdkJZU8zNaM1_7j8js7rliqLBPBH7LgoY&_nc_zt=23&_nc_ht=instagram.fidr4-3.fna&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKQz-D5cPDpG_Q0B6m9Fu7OAhcfO5LK_Fa5Fm23rFvAQg&oe=6AA86FE6",
          "https://instagram.fidr4-3.fna.fbcdn.net/v/t51.82787-15/772696796_18671067454024487_753699861125152003_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=108&ig_cache_key=Mzk2MTM1NjYyNzc1OTk4MzEwNg%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=FecoXug7UMYQ7kNvwEjFK2Z&_nc_oc=AdoWCK1yGQUcpjSUSwS3Vxh6Lznpptv_SrHmYhfRaS4MCToBEZN0Oe13aBCmOKVs0RI&_nc_zt=23&_nc_ht=instagram.fidr4-3.fna&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQIh7p4g8mU0KTjtTwQdcZqIxetQ9nfVSEn4ss4e6SJrdQ&oe=6AA83C9A",
          "https://instagram.fidr4-2.fna.fbcdn.net/v/t51.82787-15/770976098_18671067481024487_6348348350284292182_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=100&ig_cache_key=Mzk2MTM1NjYyNzUyNTE0ODE4NA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=e0qia3NjrPkQ7kNvwHBaWsH&_nc_oc=AdqckILhoct4008NaKsWKLfBW-xSp9Yz5y4tWTntHbmfvj-shQV8BFK8ZcYyzttYKB4&_nc_zt=23&_nc_ht=instagram.fidr4-2.fna&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKq1ihNjkirQ8zBVwwMiJ_gzO_K1SBIWJsKLqszN3GU9A&oe=6AA86A44",
          "https://instagram.fidr4-2.fna.fbcdn.net/v/t51.82787-15/772178168_18671067463024487_5632631314323680885_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=101&ig_cache_key=Mzk2MTM1NjYyODE3OTM4MTMyMA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=u340ejdiJJ4Q7kNvwELO4nL&_nc_oc=Adoxyr8O5QsHUplkIEVp5HNTlxVdW60oMD1LcoFR2fL9PfMLDA5mz7VZEI8PJYk1qWg&_nc_zt=23&_nc_ht=instagram.fidr4-2.fna&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKBYHMJfE_H-T_43608BCzd6OaXiSb5D9Fvf4m2U3eJgg&oe=6AA85A3E"
        ],
        "carousel_media_count": 4,
        "reactions": "142.4K",
        "like_count": 142354,
        "comments": "1.6K",
        "comment_count": 1578,
        "views": "",
        "views_count": null,
        "shares": "",
        "shares_count": null,
        "reposts": "",
        "reposts_count": null,
        "is_repost": false,
        "hashtags": [],
        "mentions": [
          "espn",
          "nbaonnbc",
          "nbaonprime",
          "peacock",
          "primevideo",
          "ticketmaster"
        ],
        "upload_time": "2026-08-11T12:20:09Z",
        "carousel_items": [
          {
            "id": "POLARIS_3961356626661134869",
            "type": "image",
            "display_url": "https://instagram.fidr4-3.fna.fbcdn.net/v/t51.82787-15/772534945_18671067484024487_6177514029198978514_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=108&ig_cache_key=Mzk2MTM1NjYyNjY2MTEzNDg2OQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=NBXGZarcohwQ7kNvwFPqQzv&_nc_oc=AdoRgdV9eDNJFoxAobKzWnW1VnrBoUT9V-pdkJZU8zNaM1_7j8js7rliqLBPBH7LgoY&_nc_zt=23&_nc_ht=instagram.fidr4-3.fna&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKQz-D5cPDpG_Q0B6m9Fu7OAhcfO5LK_Fa5Fm23rFvAQg&oe=6AA86FE6",
            "video_url": ""
          },
          {
            "id": "POLARIS_3961356627759983106",
            "type": "image",
            "display_url": "https://instagram.fidr4-3.fna.fbcdn.net/v/t51.82787-15/772696796_18671067454024487_753699861125152003_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=108&ig_cache_key=Mzk2MTM1NjYyNzc1OTk4MzEwNg%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=FecoXug7UMYQ7kNvwEjFK2Z&_nc_oc=AdoWCK1yGQUcpjSUSwS3Vxh6Lznpptv_SrHmYhfRaS4MCToBEZN0Oe13aBCmOKVs0RI&_nc_zt=23&_nc_ht=instagram.fidr4-3.fna&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQIh7p4g8mU0KTjtTwQdcZqIxetQ9nfVSEn4ss4e6SJrdQ&oe=6AA83C9A",
            "video_url": ""
          },
          {
            "id": "POLARIS_3961356627525148184",
            "type": "image",
            "display_url": "https://instagram.fidr4-2.fna.fbcdn.net/v/t51.82787-15/770976098_18671067481024487_6348348350284292182_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=100&ig_cache_key=Mzk2MTM1NjYyNzUyNTE0ODE4NA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=e0qia3NjrPkQ7kNvwHBaWsH&_nc_oc=AdqckILhoct4008NaKsWKLfBW-xSp9Yz5y4tWTntHbmfvj-shQV8BFK8ZcYyzttYKB4&_nc_zt=23&_nc_ht=instagram.fidr4-2.fna&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKq1ihNjkirQ8zBVwwMiJ_gzO_K1SBIWJsKLqszN3GU9A&oe=6AA86A44",
            "video_url": ""
          },
          {
            "id": "POLARIS_3961356628179381320",
            "type": "image",
            "display_url": "https://instagram.fidr4-2.fna.fbcdn.net/v/t51.82787-15/772178168_18671067463024487_5632631314323680885_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=101&ig_cache_key=Mzk2MTM1NjYyODE3OTM4MTMyMA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTA4MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=u340ejdiJJ4Q7kNvwELO4nL&_nc_oc=Adoxyr8O5QsHUplkIEVp5HNTlxVdW60oMD1LcoFR2fL9PfMLDA5mz7VZEI8PJYk1qWg&_nc_zt=23&_nc_ht=instagram.fidr4-2.fna&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKBYHMJfE_H-T_43608BCzd6OaXiSb5D9Fvf4m2U3eJgg&oe=6AA85A3E",
            "video_url": ""
          }
        ],
        "tagged_users": [
          {
            "username": "espn",
            "full_name": "ESPN",
            "is_verified": true,
            "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.2885-19/68840121_1392487614222244_1856158000587210752_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4zNjAuQzMifQ%3D%3D&_nc_ohc=rE8lYTlKKp0Q7kNvwEx6_RD&_nc_oc=AdronUyH9McvR3P4ErhUDpJ3VV05Aje9-i241biscjp8j3_O7zVxiKpUzgOxrbuM1EY&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_ss=72a8c&oh=00_AQLGqaqHoVAQy5DY4hojKmbRreo44Ccp_7nOCV5L7XnsbQ&oe=6AA84EF2"
          },
          {
            "username": "ticketmaster",
            "full_name": "Ticketmaster",
            "is_verified": true,
            "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.2885-19/450543128_1709090833172057_8212264604561817233_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=100&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=r73d17f1ab4Q7kNvwH6axsr&_nc_oc=Adon51_nLE3as0hQC2uAyITjga2MPU0RtrESyWMmD_vkkZPPldWvXL8xQ3fNLvNidFk&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_ss=72a8c&oh=00_AQJr2Kbbcopi0M8ISIkgttwmMxSnKCAn_YY1lN44e8-SwA&oe=6AA846E6"
          },
          {
            "username": "primevideo",
            "full_name": "Prime Video",
            "is_verified": true,
            "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/744955838_18615632461006155_1636221367101270633_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy44MjUuQzMifQ%3D%3D&_nc_ohc=u6AUpmpSShwQ7kNvwG9fTLN&_nc_oc=AdqnwLykxCxlS_odz6fmK05Nx29npH9daMulhw5P22hdbUL_OBgMokRzY8hVpvDv98w&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQJ9rfWLvq0Ws2Stx7MV6eS_nUDM_Q2ZEYpNiXr4k3sjMg&oe=6AA83AC4"
          },
          {
            "username": "peacock",
            "full_name": "Peacock",
            "is_verified": true,
            "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/696939425_18123908794658013_350009141926452738_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy44MDAuQzMifQ%3D%3D&_nc_ohc=LWAIyz5NGCUQ7kNvwGobdkR&_nc_oc=Adows_ICwGRyT_WgaTTma_mvuYeI8QvBN7xrSZJxsYYblG23ecvx7gAkUKNsg26QVjk&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQJinScov0RwNft7lLeqNuT08VGLm_Y3Pw9zSUrQns-Gdg&oe=6AA841F3"
          },
          {
            "username": "nbaonprime",
            "full_name": "NBA on Prime",
            "is_verified": true,
            "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/515160168_17902249557205761_1892209768475039295_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=cJmMudzCwmAQ7kNvwEEJA3F&_nc_oc=Adr8soVOknfpa8mjJDvXd8KcRYoosu3T-aiRTwcS5toEP32gZ3tte1iAKG5lsNj1cfI&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKv7oaF6UKXkmlOzOPM25Jos7ovCLxr0dxzfQ5VkvLqvQ&oe=6AA8680A"
          },
          {
            "username": "nbaonnbc",
            "full_name": "NBA on NBC and Peacock",
            "is_verified": true,
            "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.75761-19/497277294_17861777763403642_3803830330848199633_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=2LJenMrxhsYQ7kNvwEuEmnZ&_nc_oc=AdpOAMmZWTQd39anmm2Aoa85OTi1NZMqGqOHFMRWjyVqnZVxpRmOhA3v44JTY5cySYo&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQLdTUsQgRSxPezLGZ9Nsu-e6meKM0dxGJfKVxou4pnDbw&oe=6AA84EC1"
          }
        ],
        "latest_comments": [
          {
            "id": "18103529471617802",
            "text": "The coolest t-shirts are here:  https://www.teepublic.com/user/the-shopping",
            "owner_username": "designshop124",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/801580879_18114452767808970_5027643003798797467_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=110&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=rj5Cf3Jh9eQQ7kNvwFDtybn&_nc_oc=AdocRI18cVbkeYYwhWo6imvugIexkQ_M4DAqz85jSkvNuTytEGFbuD9lrAPIdkHcAD4&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKccYAp1WtdfrFelw77Gtiaqog8aFBjsUyTDxaQyyCZGQ&oe=6AA8464B",
            "created_at": "2026-09-10T09:42:46Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18023348612880371",
            "text": "Good games in October 21",
            "owner_username": "xset_adri3n",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/765796098_18077111618415241_5477841398594130384_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=109&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=9BtTFF6HvNkQ7kNvwGBZNz9&_nc_oc=AdrxnN_uAdy8eH6K-HD4AnDuymvVRoYywNdtXjMYQq4dwpRQ5BfjCdI1cek8W5kdJ7Q&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQJIdD_DJeyw6yrIuPjLsE3fhyXkqb1Ci8z5ScBGPMzM3Q&oe=6AA84FC5",
            "created_at": "2026-09-10T02:14:19Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18127892311747720",
            "text": "@zhandos.mubarak",
            "owner_username": "thedebt.movie",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/771757332_18088213478180996_8355216314873171692_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=105&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=gSh53NWAmo0Q7kNvwHDf1dH&_nc_oc=AdqyLytjYJ3gREVY2w7-JsimfyJy4cG8D74Uptee3yy-yowj-katjJcRKVRFM6qNgQM&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKIsvLOS_GCtqqwdi0uQQpxo4frdS5gbcvEx30qxaFBlg&oe=6AA83B1E",
            "created_at": "2026-09-09T20:57:35Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18473662489117974",
            "text": "❤️",
            "owner_username": "wickid_holcomb_",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.2885-19/453485177_774055258135128_8969279858039245054_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=100&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy43NTAuQzMifQ%3D%3D&_nc_ohc=aQsdBKOuxrAQ7kNvwHsFm7H&_nc_oc=AdpNS1iE5lL3fPa1J9YKuyF1vj4fJdsrd37xsuaszg5nr1lK8Ren_uFIKnx8wXu0P9c&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_ss=72a8c&oh=00_AQIWEFaSIa-0zdHx50ar64WmSwoeakGtq7Bk9YDn6q4f3Q&oe=6AA856EF",
            "created_at": "2026-09-09T14:56:01Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "17860463376692095",
            "text": "FU NBA. . Imagine telling your players they’re not allowed to tweet free Palestine. Zionist 🐷’s",
            "owner_username": "kimau8990",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.89012-19/573323465_1219825463302212_7278921664109726296_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy5DMyJ9&_nc_ohc=NLtPsY_lasQQ7kNvwF8PXC8&_nc_oc=AdoxoLHI88YM0tsPweUXaymgKW1OJuxsVxIspxE3C-wyhXqzpGs3d8fCT-UmcXum2ZA&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQJuZ_A8cvmeXxAKbgZx2WU8rn4y27fNVwt7ACfuWIsW2A&oe=6AA86122",
            "created_at": "2026-09-09T08:59:33Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18410285866084027",
            "text": "crazy we got the 3pm slot",
            "owner_username": "coachxquel",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/793091525_18620120668006821_5929642042258792260_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=100&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=5zyvH5rIxIwQ7kNvwEC58R3&_nc_oc=Ado6S2RNPoPv55iDCYgQRjgBsQa2qzB1pN01GHZscgBwPDd8wUmg9GkGgUPxTHQKGqA&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQLpkrbKvbUyCFqiJ77XX5Y9ubvH9Tc8BJcb5YXEH7D0qw&oe=6AA860A4",
            "created_at": "2026-09-08T21:15:49Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "17983573977117139",
            "text": "Rip",
            "owner_username": "_mrisha_",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.2885-19/298949512_406784164879886_4236857307085136206_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=106&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy43NTAuQzMifQ%3D%3D&_nc_ohc=pa2gS1_Ck1kQ7kNvwEBoxKl&_nc_oc=Ado7qKt96ZzF56Hf3h7q-mLByz816wI4ivYHG6mwP9WCmWd9mEihDaPzqCOl9smyW-I&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_ss=72a8c&oh=00_AQKrGnUHpO-5SaYD6iZj-VHi-5jMXzycmuELbzH7XEqccA&oe=6AA84106",
            "created_at": "2026-09-08T06:27:24Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18072553130737809",
            "text": "🔥🔥🔥",
            "owner_username": "basketballatfifty",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/799910229_18094574225222639_2677297568771918175_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=110&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=R5xHnmbi7uoQ7kNvwGIHsuw&_nc_oc=Adq_baGF_MS_X_rJpO3r4lCM3e_CzEZwqhBAkXPVBHoQxkMqBZ1LP_iDOUItlWFjQFY&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQKErd3r8unnJGGVvE91uNHc6qu1J8IhQ-a1WxlzUB2nsA&oe=6AA84CE1",
            "created_at": "2026-09-08T05:12:36Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18349725847220584",
            "text": "SEND me this POST",
            "owner_username": "universals.media",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/671728743_17937841293217620_6986041955719277210_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=108&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=f0O-q6yeOVUQ7kNvwFgLcLT&_nc_oc=AdrZaOLRm4qVKYdXbiVYbkrwxRPZJUuQvzA_S17ul6bBVWM9iBJRHO9KkIHJVHCAWoc&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQIU6e5aE0OoARHraLaqBx2h9B0GJr0i1EDZCqv4p1khFA&oe=6AA851BC",
            "created_at": "2026-09-07T20:17:40Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18478910095110149",
            "text": "It's not what you know, it's what you can show",
            "owner_username": "hoytusaecho",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.89012-19/573323465_1219825463302212_7278921664109726296_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy5DMyJ9&_nc_ohc=NLtPsY_lasQQ7kNvwF8PXC8&_nc_oc=AdoxoLHI88YM0tsPweUXaymgKW1OJuxsVxIspxE3C-wyhXqzpGs3d8fCT-UmcXum2ZA&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQJuZ_A8cvmeXxAKbgZx2WU8rn4y27fNVwt7ACfuWIsW2A&oe=6AA86122",
            "created_at": "2026-09-07T19:44:21Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18119779474904637",
            "text": "OKC, OKC, OKC",
            "owner_username": "ilikeducks2347",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/787599063_18098926013260173_4166128140007804674_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=106&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=AeIoEdFVPkkQ7kNvwF_j0sf&_nc_oc=AdozMqaec49BSr8Qn7Q-BMKqCAVeSByCvNeEWhgqFM8d4MMvHQKQSPtvUVBb1fKWrH4&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQIPVCn_Go_3jsyMhgzttIv3hz7qQOyDdzh71eOh--Ryug&oe=6AA850C4",
            "created_at": "2026-09-07T18:45:02Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "17877258084691353",
            "text": "A Red Bus",
            "owner_username": "hoytusaecho",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.89012-19/573323465_1219825463302212_7278921664109726296_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy5DMyJ9&_nc_ohc=NLtPsY_lasQQ7kNvwF8PXC8&_nc_oc=AdoxoLHI88YM0tsPweUXaymgKW1OJuxsVxIspxE3C-wyhXqzpGs3d8fCT-UmcXum2ZA&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQJuZ_A8cvmeXxAKbgZx2WU8rn4y27fNVwt7ACfuWIsW2A&oe=6AA86122",
            "created_at": "2026-09-07T16:11:20Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18147832342545064",
            "text": "The Sunshine State",
            "owner_username": "hoytusaecho",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.89012-19/573323465_1219825463302212_7278921664109726296_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy5DMyJ9&_nc_ohc=NLtPsY_lasQQ7kNvwF8PXC8&_nc_oc=AdoxoLHI88YM0tsPweUXaymgKW1OJuxsVxIspxE3C-wyhXqzpGs3d8fCT-UmcXum2ZA&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQJuZ_A8cvmeXxAKbgZx2WU8rn4y27fNVwt7ACfuWIsW2A&oe=6AA86122",
            "created_at": "2026-09-07T15:37:37Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "18066227498506462",
            "text": "The Bus Doctor, bus beginning with the 2nd letter and having 3 letters.",
            "owner_username": "hoytusaecho",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.89012-19/573323465_1219825463302212_7278921664109726296_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy5DMyJ9&_nc_ohc=NLtPsY_lasQQ7kNvwF8PXC8&_nc_oc=AdoxoLHI88YM0tsPweUXaymgKW1OJuxsVxIspxE3C-wyhXqzpGs3d8fCT-UmcXum2ZA&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQJuZ_A8cvmeXxAKbgZx2WU8rn4y27fNVwt7ACfuWIsW2A&oe=6AA86122",
            "created_at": "2026-09-07T15:17:54Z",
            "like_count": 0,
            "child_comment_count": 0
          },
          {
            "id": "17941183290347485",
            "text": "Wolf Trap, Performing Arts (9/3)",
            "owner_username": "hoytusaecho",
            "owner_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.89012-19/573323465_1219825463302212_7278921664109726296_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy5DMyJ9&_nc_ohc=NLtPsY_lasQQ7kNvwF8PXC8&_nc_oc=AdoxoLHI88YM0tsPweUXaymgKW1OJuxsVxIspxE3C-wyhXqzpGs3d8fCT-UmcXum2ZA&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=_w25f_heFwTnM6kAjxTzWw&_nc_ss=72a8c&oh=00_AQJuZ_A8cvmeXxAKbgZx2WU8rn4y27fNVwt7ACfuWIsW2A&oe=6AA86122",
            "created_at": "2026-09-07T14:40:14Z",
            "like_count": 0,
            "child_comment_count": 0
          }
]
```

#### 📖 Output Field Documentation

**🔹 Profile Metadata**
| Field | Description |
|-------|-------------|
| `username` | Instagram username |
| `full_name` | Display name on profile |
| `biography_clean` | Profile bio/description (cleaned) |
| `followers_count` | Total followers (integer) |
| `following_count` | Total following (integer) |
| `posts_count` | Total posts count (integer) |
| `profile_pic_url_hq` | High-resolution profile picture URL |
| `is_verified` | Boolean indicating verified status |
| `page_title` | Full page title with username |

**🔹 Post Data**
| Field | Description |
|-------|-------------|
| `posts num` | Sequential post number (1-∞) |
| `post_url` | Direct Instagram post URL |
| `shortcode` | Unique post shortcode identifier |
| `post_downloadable_url` | Direct media download URL (if video) |
| `title` | Post caption/description |
| `author_name` | Content creator username |
| `author_id` | Instagram author ID |
| `media_id` | Unique media identifier |
| `thumbnail_url` | High-quality cover image |
| `reactions` | Like/reaction count (formatted) |
| `comments` | Comment count (formatted) |
| `views` | View count (for videos/reels) |
| `upload_time` | ISO 8601 timestamp of upload |
| `type` | Content type (rich/video/image) |

***

### 🎨 Key Features of This Instagram Post Scraper

#### 📊 Engagement Analytics

- **Reaction Metrics** - Like and engagement data formatted with K/M/B
- **Comment Analysis** - Track audience interaction
- **Cross-Profile Comparison** - Analyze performance across multiple creators
- **Temporal Analysis** - Track upload patterns and timing
- **View Counts** - For video content with formatted metrics

#### 🎬 Media Quality

- **Direct CDN Access** - Highest quality Instagram delivers
- **No Compression** - Preserves original video/image quality
- **Thumbnail Extraction** - High-resolution cover images
- **Media Type Detection** - Auto-identifies image vs. video vs. reel
- **Multi-Format Support** - Handles all Instagram post types

#### 🔍 Profile Intelligence

- **Follower Insights** - Growth metrics and audience size
- **Verification Status** - Authenticity detection
- **Rich Bio Data** - Complete profile information
- **Post Count Analysis** - Content volume tracking

#### 🌐 Proxy & Security

- **Built-in Proxy Support** - Apify proxy rotation for reliability
- **Session Management** - Cookie persistence for consistent scraping
- **Rate Limiting** - Smart request throttling
- **Headless Mode** - Efficient resource usage

***

### 💡 Use Cases for Instagram Post Scraper

- **📱 Social Media Managers** - Archive client content
- **📊 Competitor Analysis** - Track engagement and content strategies
- **🎬 Content Curators** - Gather trending posts for repurposing
- **🔬 Researchers** - Study viral content patterns and engagement
- **📈 Marketing Analysts** - Benchmark performance metrics
- **🤖 AI Trainers** - Build datasets for image/video understanding models
- **📚 Educators** - Create case studies from successful content
- **💰 Influencer Marketing** - Analyze potential partnerships
- **🖼️ Digital Archivists** - Preserve cultural and historical content

***

### ✨ Why Choose Our Instagram Post Scraper?

- **⚡ Blazing Fast** - Concurrent scraping with optimized browser automation
- **🎯 100% Accurate** - Preserves all metadata without alteration
- **🔄 Regular Updates** - Adapts to Instagram platform changes automatically
- **📦 Complete Data** - Everything from profile info to media URLs
- **🛡️ Production Ready** - Battle-tested with thousands of profiles
- **💰 Cost Efficient** - Optimized to minimize compute time and resources
- **🔒 Privacy Focused** - No personal data stored or shared

***

### ⚠️ Limitations

- Only works with public Instagram profiles (non-private content)
- Some profiles may have rate limiting or access restrictions
- Extremely high concurrency (15+) may trigger Instagram security
- Requires valid profile URLs or usernames
- Stories content requires separate scraping solution

***

### 📧 Need Custom Features for Your Instagram Post Scraper?

Want **higher concurrency limits**, **specific metadata fields**, **custom output formats**, **enhanced filtering**, **advanced analytics**, or **targeted hashtag scraping**?

✉️ Email **<codenest2.0@gmail.com>** for tailored enterprise solutions!

***

# Actor input Schema

## `profileUrls` (type: `array`):

Enter one or more Instagram profile URLs or usernames to scrape. Example: nba or https://www.instagram.com/nba/

## `postUrls` (type: `array`):

Enter one or more specific Instagram post or reel URLs to scrape directly. Example: https://www.instagram.com/p/DdRhA8klE_5/ or https://www.instagram.com/reel/DW1jJbtCMB8/

## `maxReels` (type: `integer`):

Maximum number of posts/reels to scrape per profile in chronological order (newest first). Default is 50.

## `includeDetailedEngagement` (type: `boolean`):

Toggle ON to include full latest comments, tagged users, and granular carousel items for each post. Toggle OFF to exclude them. NOTE: Enabling this option incurs an extra charge ('detailed-engagement-scraped' event). Default is false.

## `maxTotalChargeUsd` (type: `number`):

Optional spending limit in USD for Pay-Per-Event pricing (e.g. 5.00 for $5.00 USD).

## `headless` (type: `boolean`):

Run Playwright browser in headless mode (no visible window). Default is true.

## `outputFile` (type: `string`):

Name of the output JSON file. Default is reels_data.json.

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

Select proxies to be used by the scraper.

## `sessionId` (type: `string`):

Optional: Your Instagram sessionid cookie value. Highly recommended to bypass login prompts.

## Actor input object example

```json
{
  "profileUrls": [],
  "postUrls": [
    "https://www.instagram.com/p/DdRhA8klE_5/?utm_source=ig_web_copy_link&stkn=NTc4MTIwNjQ2YQ==",
    "https://www.instagram.com/reel/DW1jJbtCMB8/?utm_source=ig_web_copy_link&stkn=NTc4MTIwNjQ2YQ=="
  ],
  "maxReels": 50,
  "includeDetailedEngagement": false,
  "headless": true,
  "outputFile": "reels_data.json",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "sessionId": ""
}
```

# Actor output Schema

## `posts` (type: `string`):

Tabular view of scraped Instagram posts and reels with profile metadata, media links, and engagement metrics.

## `allResults` (type: `string`):

Complete dataset containing full post metadata, high-resolution carousel photos, direct MP4 video downloads, metrics, and comments.

## `outputRecord` (type: `string`):

Consolidated JSON array of all scraped posts stored in the default Key-Value Store.

# 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 = {
    "postUrls": [
        "https://www.instagram.com/p/DdRhA8klE_5/?utm_source=ig_web_copy_link&stkn=NTc4MTIwNjQ2YQ==",
        "https://www.instagram.com/reel/DW1jJbtCMB8/?utm_source=ig_web_copy_link&stkn=NTc4MTIwNjQ2YQ=="
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codenest/instagram-post-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 = { "postUrls": [
        "https://www.instagram.com/p/DdRhA8klE_5/?utm_source=ig_web_copy_link&stkn=NTc4MTIwNjQ2YQ==",
        "https://www.instagram.com/reel/DW1jJbtCMB8/?utm_source=ig_web_copy_link&stkn=NTc4MTIwNjQ2YQ==",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("codenest/instagram-post-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 '{
  "postUrls": [
    "https://www.instagram.com/p/DdRhA8klE_5/?utm_source=ig_web_copy_link&stkn=NTc4MTIwNjQ2YQ==",
    "https://www.instagram.com/reel/DW1jJbtCMB8/?utm_source=ig_web_copy_link&stkn=NTc4MTIwNjQ2YQ=="
  ]
}' |
apify call codenest/instagram-post-scraper --silent --output-dataset

```

## MCP server setup

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