# Instagram Tagged Posts (`igview-owner/instagram-tagged-posts`) Actor

Scrape all public posts where any Instagram user or brand is tagged. Extract photos, videos, carousels, captions, like/comment counts, and author profile IDs. Fast cursor pagination, no login required, and ready-to-use CSV/Excel/JSON export.

- **URL**: https://apify.com/igview-owner/instagram-tagged-posts.md
- **Developed by:** [Sachin Kumar Yadav](https://apify.com/igview-owner) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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 Tagged Posts Scraper

Scrape and export complete **Instagram Tagged Posts** for any public Instagram user. Extract post details, shortcodes, captions, like counts, comment counts, author/owner profiles, media types, thumbnails, and high-resolution media URLs with automated cursor pagination and customizable limits.

This actor is built for:

- Tracking User-Generated Content (UGC) and customer shoutouts
- Brand monitoring and hashtag/mention intelligence
- Influencer campaign verification and partnership tracking
- Competitor audience engagement and social proof analysis
- Collecting creative assets and visual references

***

### Table of Contents

- [Features](#features)
- [Use Cases](#use-cases)
- [Quick Start](#quick-start)
- [Input Parameters](#input-parameters)
- [Output](#output)
- [Output Fields](#output-fields)
- [Dataset Views](#dataset-views)
- [FAQ](#faq)
- [SEO Keywords](#seo-keywords)

***

### Features

| Feature | Description |
|---------|-------------|
| Complete Tagged Posts Extraction | Fetch all public posts where a target Instagram user has been tagged |
| Multi-Media Support | Supports images, carousels, and videos with preview URLs, dimensions, and thumbnails |
| Automatic Cursor Pagination | Traverses multiple pages using cursor tokens (`pageInfo.maxId`) |
| Configurable Results Limit | Scrape a specific number of tagged posts or set 0 for unlimited records |
| Author & Creator Identification | Extracts the post author's username and unique user ID |
| Engagement Metrics | Captures like counts, comment counts, and full post captions |
| High Performance Batching | Records are stored and flushed in batches of 25 for maximum speed and memory efficiency |
| Reliable Key Rotation | Automatic key cycling, exponential backoff, and retry logic to avoid rate limits |

***

### Use Cases

| Use Case | What You Can Do | Why It Helps |
|----------|-----------------|--------------|
| UGC & Brand Monitoring | Track posts where customers tag your brand | Discover organic testimonials, product photos, and customer sentiment |
| Influencer Tracking | Monitor sponsored posts and influencer shoutouts | Audit campaign deliverables, proof of work, and creator engagement |
| Competitor Intelligence | See who tags your competitors and why | Identify active creators, dissatisfied customers, and co-marketing partnerships |
| Audience Sentiment Analysis | Analyze captions and comments on tagged posts | Understand how the community talks about a brand or creator |
| Visual Media Scraping | Collect high-resolution preview images and carousel items | Gather creative inspiration and media archives for mood boards |
| Community Engagement | Find brand advocates and superfans | Build relations and reward users promoting your profile |

***

### Quick Start

#### 1. Basic Run (Default 20 Posts)

To scrape the most recent 20 posts where a user is tagged:

```json
{
  "username": "charlidamelio",
  "resultsLimit": 20
}
```

#### 2. Unlimited Scraping (All Tagged Posts)

To fetch all available tagged posts for an account without restrictions, set `resultsLimit` to `0`:

```json
{
  "username": "charlidamelio",
  "resultsLimit": 0
}
```

#### 3. Tips for Best Results

- **Public profiles only**: Tagged posts can only be fetched for public accounts. Private accounts are restricted by Instagram.
- **No `@` needed**: Prefixed `@` symbols in usernames are automatically cleaned.
- **Video preview links**: Instagram returns preview images and thumbnails for video listings.
- **Export formats**: Results can be downloaded from Apify Console as JSON, CSV, Excel, XML, or HTML table formats.

***

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|:--------:|---------|-------------|
| `username` | String | Yes | `"charlidamelio"` | Target Instagram username whose tagged posts will be scraped. |
| `resultsLimit` | Integer | No | `20` | Maximum number of tagged posts to scrape. Set to `0` for unlimited (fetches all pages). |

***

### Output

Each record in the dataset represents **one public post where the target user was tagged**.

#### Example Output Record

```json
{
  "inputUsername": "charlidamelio",
  "id": "4031557885499233090",
  "type": "carousel",
  "shortcode": "Dfy-Ilom1NC",
  "permalink": "https://www.instagram.com/p/Dfy-Ilom1NC/",
  "caption": "Shhh I’m tryna manifest a @borndreamerbycd come back.. 🌟 @charlidamelio #charlidamelio #borndreamerbycd",
  "likeCount": 4,
  "commentCount": 1,
  "ownerUsername": "cdluvsss",
  "ownerId": "46804560762",
  "thumbnailUrl": "https://instagram.fcra1-1.fna.fbcdn.net/v/t51.82787-15/...",
  "displayUrl": "https://instagram.fcra1-1.fna.fbcdn.net/v/t51.82787-15/...",
  "mediaCount": 9,
  "media": [
    {
      "type": "image",
      "url": "https://instagram.fcra1-1.fna.fbcdn.net/v/t51.82787-15/...",
      "thumbnailUrl": "https://instagram.fcra1-1.fna.fbcdn.net/v/t51.82787-15/...",
      "width": 3024,
      "height": 4032
    }
  ]
}
```

***

### Output Fields

| Category | Field Name | Data Type | Description |
|----------|------------|-----------|-------------|
| Source | `inputUsername` | String | Username of the queried target profile |
| Post Identifier | `id` | String | Unique numerical Instagram post ID |
| Post Identifier | `shortcode` | String | Instagram alphanumeric post shortcode |
| Post Identifier | `permalink` | String | Direct web URL to the Instagram post |
| Classification | `type` | String | Post format: `image`, `video`, or `carousel` |
| Author | `ownerUsername` | String | Instagram handle of the user who published the post |
| Author | `ownerId` | String | Numerical Instagram user ID of the author |
| Content | `caption` | String | Full text caption of the post including hashtags and mentions |
| Engagement | `likeCount` | Integer | Total count of likes on the post |
| Engagement | `commentCount` | Integer | Total count of comments on the post |
| Media | `thumbnailUrl` | String | Direct CDN URL for the post thumbnail preview |
| Media | `displayUrl` | String | High-resolution image CDN URL |
| Media | `mediaCount` | Integer | Number of items in carousel (1 for single photo/video) |
| Media | `media` | Array | Structured list of all media elements with dimensions and URLs |

***

### Dataset Views

This actor includes a pre-configured tabular overview for rapid data inspection in Apify:

| View Name | Fields Displayed | Purpose |
|-----------|------------------|---------|
| Tagged Posts Overview | Preview, Target User, Posted By, Type, Likes, Comments, Caption, Instagram Link, Shortcode | Clean tabular view with instant image previews and clickable post links |

***

### FAQ

#### Can I scrape tagged posts for private accounts?

No. Instagram strictly limits access to private accounts. Only public accounts and publicly visible tagged posts can be retrieved.

#### How does pagination work?

Instagram serves tagged posts in batches. This actor captures cursor tokens (`pageInfo.maxId`) and continuously queries next pages until your `resultsLimit` threshold is reached or no further posts exist.

#### Does it download the video MP4 files?

For video posts, Instagram's tagged feed provides the video thumbnail and preview image. To download the high-res MP4 file, you can pass the extracted `shortcode` into an Instagram Post Downloader.

#### How are rate limits handled?

The scraper leverages smart key rotation across multiple API keys, request delays between pages, and exponential backoff retry mechanisms to provide seamless, uninterrupted runs.

***

### SEO Keywords

Instagram Tagged Posts Scraper, Scrape Instagram Tagged Photos, Instagram UGC Scraper, Instagram Mentions Scraper, Brand Mentions Instagram, Instagram Carousel Scraper, Instagram Post API, Export Instagram Tagged Posts to Excel, Instagram Influencer Tracking Tool.

### Related Actors

- [Instagram Story Scraper](https://apify.com/igview-owner/instagram-story-viewer) - Extract Instagram Story data
- [Instagram Following Scraper](https://apify.com/igview-owner/instagram-following-scraper) - Extract Instagram Following data
- [Instagram Followers Scraper](https://apify.com/igview-owner/instagram-followers-scraper) - Extract Instagram Followers data
- [Instagram Highlights Scraper](https://apify.com/igview-owner/instagram-highlights-stories-viewer) - Extract Instagram Highlights And Stories data
- [Instagram Post Scraper](https://apify.com/igview-owner/instagram-post-viewer) - Extract Instagram Post data
- [Instagram Reels downloader](https://apify.com/igview-owner/instagram-video-downloader) - Extract Instagram Reel data

### **Get Started Now**

**Ready to download Instagram Tagged Posts?**

1. Click ["Try for free"](https://apify.com?fpr=ykgg9c) to test the actor
2. Enter an Instagram Tagged Post Username
3. Get comprehensive media data instantly

**If this actor helps your workflow, please give it a star!**

***

*Built with ❤️ by Sachin Kumar Yadav using Apify Platform*

# Actor input Schema

## `username` (type: `string`):

Enter an Instagram username to scrape posts where they are tagged. Do not include '@' symbol - it will be removed automatically.

## `resultsLimit` (type: `integer`):

Maximum number of tagged posts to scrape. Set 0 for unlimited (all available tagged posts). Default is 20.

## Actor input object example

```json
{
  "username": "charlidamelio",
  "resultsLimit": 20
}
```

# Actor output Schema

## `overview` (type: `string`):

Open the dataset view with an overview of scraped Instagram tagged posts including post links, owner usernames, likes, and previews.

# 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": "charlidamelio"
};

// Run the Actor and wait for it to finish
const run = await client.actor("igview-owner/instagram-tagged-posts").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": "charlidamelio" }

# Run the Actor and wait for it to finish
run = client.actor("igview-owner/instagram-tagged-posts").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 '{
  "username": "charlidamelio"
}' |
apify call igview-owner/instagram-tagged-posts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,igview-owner/instagram-tagged-posts"
        }
    }
}
```

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/ECtwLTtYh6emkbqqa/builds/xCp4e4Z2pVhDJj2tf/openapi.json
