# Instagram User Profile Posts Scraper (`louisdeconinck/instagram-profile-posts-scraper`) Actor

Scrape complete post data from any public Instagram user profile including captions, likes, comments, tagged users, locations, and engagement metrics. Perfect for social media analysis, influencer research, and content monitoring.

- **URL**: https://apify.com/louisdeconinck/instagram-profile-posts-scraper.md
- **Developed by:** [Louis Deconinck](https://apify.com/louisdeconinck) (community)
- **Categories:** Social media, Automation, Lead generation
- **Stats:** 901 total users, 5 monthly users, 100.0% runs succeeded, 15 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$1.90 / 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 all posts from any public Instagram profile. Get detailed information about each post including captions, likes, comments, tagged users, locations, and more.

### 🎯 Use Cases

- **Social Media Analysis:** Track and analyze Instagram content strategies
- **Influencer Research:** Gather data about influencer posts and engagement
- **Content Monitoring:** Keep track of branded content and partnerships
- **Location Analysis:** Study posts from specific locations
- **Engagement Tracking:** Monitor post performance and user engagement

### ✨ Features

- **Complete Post Data:** Captures all essential post information including media URLs, captions, and engagement metrics
- **Tagged Users:** Extracts information about users tagged in posts
- **Location Data:** Includes detailed location information when available
- **Engagement Metrics:** Provides likes and comments counts
- **Post Metadata:** Includes information about partnerships, affiliates, and post settings

### 📤 Output

- `id`: Unique identifier of the post
- `username`: Username of the post owner
- `shortcode`: Instagram shortcode for the post
- `caption`: Post caption text
- `timestamp`: Post creation timestamp
- `likes`: Number of likes
- `comments`: Number of comments
- `mediaType`: Type of media (image/video)
- `displayUrl`: URL of the post media
- `thumbnailUrl`: URL of the post thumbnail
- `dimensions_width`: Width of the media
- `dimensions_height`: Height of the media
- `taggedUsers`: Array of users tagged in the post, containing:
  - `fullName`: The full name of the tagged user.
  - `profilePicUrl`: The URL of the tagged user's profile picture.
  - `username`: The username of the tagged user.
- `isAffiliate`: Whether the post is marked as affiliate content
- `isPaidPartnership`: Whether the post is a paid partnership
- `commentsDisabled`: Whether comments are disabled
- `locationId`: ID of the tagged location
- `locationHasPublicPage`: Whether the location has a public page
- `locationName`: Name of the tagged location
- `locationSlug`: URL slug of the location
- `pinned`: Whether the post is pinned to the profile

**Example Output:**

```json
{
	"id": "3564593839739881831",
	"username": "zuck",
	"shortcode": "DF3-zYSPcln",
	"caption": "the only appropriate hoodie @krisjenner",
	"timestamp": 1739152720,
	"likes": 180360,
	"comments": 3761,
	"mediaType": "image",
	"displayUrl": "https://instagram.fala6-1.fna.fbcdn.net/v/t51.29350-15/476775973_1704197313842259_3023337751564134801_n.heic?stp=dst-jpg_e35_p1080x1080_tt6&_nc_ht=instagram.fala6-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2AFEDNhQrdpVpLgquMUD6IiH3fGAlEPHxwMjtyJD6Cr-m72i0t1XxY7Jm9AkpJs8Ch4&_nc_ohc=GDa9HUhfCnsQ7kNvgG0mebx&_nc_gid=74d6879ec005433da7d79a0dece2527c&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_AYDKlfDr-Cx1gxeh7oe_5hFv7a4yYQ3ObxzVMCbgqjzEUA&oe=67AFDE18&_nc_sid=8b3546",
	"thumbnailUrl": "https://instagram.fala6-1.fna.fbcdn.net/v/t51.29350-15/476775973_1704197313842259_3023337751564134801_n.heic?stp=c0.180.1440.1440a_dst-jpg_e35_s640x640_sh0.08_tt6&_nc_ht=instagram.fala6-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2AFEDNhQrdpVpLgquMUD6IiH3fGAlEPHxwMjtyJD6Cr-m72i0t1XxY7Jm9AkpJs8Ch4&_nc_ohc=GDa9HUhfCnsQ7kNvgG0mebx&_nc_gid=74d6879ec005433da7d79a0dece2527c&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_AYBGynCdvHDo0KG1LxhuInKDAJX5Ub5QKLSI6t_tPtFGiw&oe=67AFDE18&_nc_sid=8b3546",
	"dimensions_width": 1080,
	"dimensions_height": 1350,
	"taggedUsers": [
		{
			"fullName": "Kris Jenner",
			"profilePicUrl": "https://instagram.fala6-1.fna.fbcdn.net/v/t51.2885-19/65501483_2046174542354674_2702833089855356928_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=instagram.fala6-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2AFEDNhQrdpVpLgquMUD6IiH3fGAlEPHxwMjtyJD6Cr-m72i0t1XxY7Jm9AkpJs8Ch4&_nc_ohc=11_JOtcsou4Q7kNvgEJo8rX&_nc_gid=74d6879ec005433da7d79a0dece2527c&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_AYDi_QQIO87oDfw3c11btF7IOz4SvmJ9nc_ENcCfgKipbQ&oe=67AFE2A7&_nc_sid=8b3546",
			"username": "krisjenner"
		}
	],
	"commentsDisabled": false,
	"pinned": false
}
```

### 📥 Input

- `profiles`: Array of Instagram profile URLs or usernames to scrape
- `maxPostsPerProfile`: Max number of posts to scrape per profle. Optional parameter, leave empty to fetch all posts. (minimum: 24)

**Example Input:**

```json
{
    "profiles": [
        "https://www.instagram.com/meta",
        "zuck"
    ]
}
```

### 🚀 Usage

To use this Instagram Profile Posts Scraper:

1. **Get started**: Click on the "Try for free" button to [make an Apify account](https://apify.com?fpr=7p4wu) and log in.
2. **Add input:** Enter the Instagram profile URLs or usernames you want to scrape.
3. **Run the actor:** Click on the "Start" button to begin scraping.
4. **Monitor execution:** The actor will fetch all posts from the specified profiles.
5. **Retrieve the output:** Download the results in JSON or CSV format, or use the API to integrate with your applications.

### 🔌 Integrations

**Make.com Integration:** Automate your Instagram data collection by connecting this scraper to [Make](https://www.make.com/en/register?pc=louisdeconinck). Create workflows to:

- Send post data to Google Sheets
- Monitor new posts and get notifications
- Analyze engagement metrics automatically
- Archive media files

**Gmail Integration:** Use [Google Workspace](https://referworkspace.app.goo.gl/wUpc) to:

- Get email notifications about new posts
- Send reports of post performance
- Alert team members about specific post types

### 🌟 Start for Free

Ready to start scraping Instagram posts? [Try the Actor for free](https://apify.com?fpr=7p4wu) and get:

- Scalable and reliable data collection
- Regular updates to maintain compatibility
- Technical support when you need it
- Flexible output formats

### 🔍 More Scraping Solutions

Check out my other scrapers on [my Apify profile](https://apify.com/louisdeconinck?fpr=7p4wu) for:

- Other social media platforms
- E-commerce websites
- Business directories
- And more!

### 🛠️ Custom Scraper Development

Need a custom Instagram scraping solution? I can help! Contact me for:

- Custom data fields
- Specific filtering requirements
- Integration with your systems
- Specialized reporting needs

# Actor input Schema

## `profiles` (type: `array`):

List of Instagram profile URLs or usernames to scrape

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

Maximum number of posts to scrape per profile. Optional parameter, leave empty to fetch all posts. Minimum: 24

## Actor input object example

```json
{
  "profiles": [
    "zuck"
  ]
}
```

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,louisdeconinck/instagram-profile-posts-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/AcNwIshebiFYCogQN/builds/dtuZdVnxxo9z00ba4/openapi.json
