# Instagram Reel & Post Analytics by URL · All Metrics (`patient_discovery/instagram-reel-analytics-by-url`) Actor

Get all engagement metrics from any Instagram post or Reel URL — views, likes, comments, shares, saves, and reposts in one place. 128 fields per result including audio metadata, creator profiles, and content flags. Bulk URLs supported. No login. JSON/CSV/Excel.

- **URL**: https://apify.com/patient\_discovery/instagram-reel-analytics-by-url.md
- **Developed by:** [Surge Street](https://apify.com/patient_discovery) (community)
- **Categories:** Social media
- **Stats:** 12 total users, 9 monthly users, 70.9% runs succeeded, NaN 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Instagram Reel & Post Analytics by URL · All Metrics

Paste any Instagram post or Reel URL and get back every engagement metric in one structured result — views, likes, comments, shares, saves, and reposts. No more switching between posts manually or getting partial data. Works for images, carousels, Reels, and videos. No login required.

### The Problem This Solves

Most Instagram analytics tools either require an account login, only return 2–3 metrics, or don't include `saves`, `shares`, or `reposts` at all. Finding all six core engagement metrics from a specific URL in one API call is surprisingly hard.

This actor solves that. Paste a URL, get 128 structured fields back — all six engagement metrics plus audio metadata, content flags, creator profile, and more.

### The Six Metrics You Actually Need

| Metric | Field | Notes |
|---|---|---|
| **Views** | `metrics.play_count` + `metrics.ig_play_count` | Two view count variants for Reels |
| **Likes** | `metrics.like_count` | |
| **Comments** | `metrics.comment_count` | |
| **Shares** | `metrics.share_count` | Times sent via DM |
| **Saves** | `metrics.save_count` | Times added to collections |
| **Reposts** | `metrics.repost_count` | Instagram's repost feature (added 2025) |

**Note on reposts:** Instagram's repost count was added in summer 2025. Most scrapers still don't return it. This actor does.

### Full Output — 128 Fields

#### Engagement (all 6 metrics)
````

metrics.play\_count · metrics.ig\_play\_count · metrics.like\_count
metrics.comment\_count · metrics.share\_count · metrics.save\_count · metrics.repost\_count

```

#### Content data
```

caption.text · caption.hashtags\[] · caption.mentions\[]
is\_video · media\_format · media\_name
video\_url · video\_duration · thumbnail\_url
image\_versions.items\[] · code · id · taken\_at\_date

```

#### Content flags
```

is\_paid\_partnership · is\_pinned · comments\_disabled
like\_and\_view\_counts\_disabled · is\_reuse\_allowed

```

#### Audio / music (for Reels)
```

clips\_metadata.audio\_canonical\_id · clips\_metadata.audio\_type
video\_subtitles\_locale · has\_audio · number\_of\_qualities

```

#### Creator profile
```

user.username · user.full\_name · user.is\_verified
user.id · user.account\_type · user.is\_private

```

#### Collaboration & sponsorship
```

tagged\_users\[] · coauthor\_producers\[] · sponsor\_tags\[]

````

### How It Works

**Step 1.** Enter one or more Instagram post or Reel URLs. Accepts any format — `instagram.com/p/ABC123/` or `instagram.com/reel/ABC123/`.

**Step 2.** Click "Start."

**Step 3.** Download your dataset as JSON, CSV, or Excel.

---

### Use Cases

**Campaign performance tracking.** Running an influencer campaign? Paste all the deliverable URLs at the end of the campaign and get every metric in one spreadsheet — views, likes, shares, saves, reposts per post. No manual checking, no incomplete data.

**Content benchmarking.** Build your own content performance database. Scrape URLs from your posts and competitor posts on a regular schedule. Track how saves and shares change over time — these are the two metrics that best predict algorithmic reach.

**Sponsored content audit.** The `is_paid_partnership` flag tells you which posts are branded deals. Scrape a creator's recent posts, filter by `is_paid_partnership: true`, and analyze how their sponsored content performs against organic content.

**Viral content research.** Found a Reel performing unusually well? Pull all 128 fields to understand every variable: audio track used (`clips_metadata.audio_canonical_id`), post time, caption structure, collaborators, hashtag count. Reverse-engineer what made it work.

**Bulk analytics pipeline.** Feed post URLs from a spreadsheet, run the actor, get structured metrics back. Pipe into Google Sheets, Notion, or a custom dashboard via the Apify API or Make/Zapier integration.

---

### Sample Output

```json
{
  "metrics": {
    "like_count": 4099,
    "comment_count": 12923,
    "play_count": 355123,
    "ig_play_count": 355123,
    "share_count": 10919,
    "save_count": 11085,
    "repost_count": 154
  },
  "caption": {
    "text": "I gained 50,000 followers in 17 days using Claude AI.\n\nNo paid ads. No collabs. Just 3 skills.",
    "hashtags": ["#claudeai", "#aitools", "#instagramgrowth"],
    "mentions": []
  },
  "media_name": "reel",
  "is_video": true,
  "video_url": "https://scontent.cdninstagram.com/...",
  "video_duration": 41.35,
  "taken_at_date": "2026-04-29T10:18:41+00:00",
  "is_paid_partnership": false,
  "is_pinned": false,
  "clips_metadata": {
    "audio_canonical_id": "18537152875064470",
    "audio_type": "licensed_music"
  },
  "user": {
    "username": "manthanjethwani",
    "full_name": "Manthan Jethwani",
    "is_verified": true
  }
}
````

***

### FAQ

**What URL formats does it accept?**
Standard post URLs (`instagram.com/p/ABC123/`), Reel URLs (`instagram.com/reel/ABC123/`), and raw shortcodes (`ABC123`).

**Why are saves and shares hard to find in other scrapers?**
Instagram doesn't expose saves and shares in the same basic API response as likes and comments. They require a separate metrics call. Most scrapers skip this step. This actor makes both calls and merges the data.

**What does `repost_count` mean?**
Instagram introduced native reposting in 2025 — users can share other people's posts directly to their own profile grid. `repost_count` tracks how many times a post has been reposted. It's a strong virality signal not yet available in most scrapers.

**Can I track the same post over time?**
Yes. Run the actor on the same URL at different intervals. Compare metric snapshots to track how a post performs over days or weeks.

**Does this work for images and carousels too?**
Yes. Any public Instagram URL — photos, carousels, Reels, videos. The `media_format` and `media_name` fields tell you the type of content.

**Is login or cookies required?**
No. This actor accesses publicly available post data without any authentication.

***

### 🧩 Other Instagram Actors

| Actor | What it does | Link |
|---|---|---|
| Instagram Reels Search | Search Reels by keyword — trending content | [Try it →](https://apify.com/patient_discovery/instagram-search-reels) |
| Instagram Profile Reels | All Reels from any profile | [Try it →](https://apify.com/patient_discovery/instagram-profile-reels) |
| Instagram Post Comments | Extract comments with engagement signals | [Try it →](https://apify.com/patient_discovery/instagram-comments) |
| Instagram Post Likes | Who liked any post | [Try it →](https://apify.com/patient_discovery/instagram-likes) |

***

### 💬 Support

Found a bug or want a feature? Open an issue on the **Issues tab**. Responses within 24 hours.

# Actor input Schema

## `postCode` (type: `string`):

One Instagram post/Reel URL or shortcode (e.g. ABC123). Leave empty if you only use Post URLs (bulk) below.

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

Multiple Instagram post or Reel URLs or shortcodes — one result row set per URL.

## Actor input object example

```json
{}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("patient_discovery/instagram-reel-analytics-by-url").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("patient_discovery/instagram-reel-analytics-by-url").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call patient_discovery/instagram-reel-analytics-by-url --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=patient_discovery/instagram-reel-analytics-by-url",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Instagram Reel & Post Analytics by URL · All Metrics",
        "description": "Get all engagement metrics from any Instagram post or Reel URL — views, likes, comments, shares, saves, and reposts in one place. 128 fields per result including audio metadata, creator profiles, and content flags. Bulk URLs supported. No login. JSON/CSV/Excel.",
        "version": "1.0",
        "x-build-id": "Cg5jXOePAbEr8YYUm"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/patient_discovery~instagram-reel-analytics-by-url/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-patient_discovery-instagram-reel-analytics-by-url",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/patient_discovery~instagram-reel-analytics-by-url/runs": {
            "post": {
                "operationId": "runs-sync-patient_discovery-instagram-reel-analytics-by-url",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/patient_discovery~instagram-reel-analytics-by-url/run-sync": {
            "post": {
                "operationId": "run-sync-patient_discovery-instagram-reel-analytics-by-url",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "postCode": {
                        "title": "Post URL or shortcode (single)",
                        "type": "string",
                        "description": "One Instagram post/Reel URL or shortcode (e.g. ABC123). Leave empty if you only use Post URLs (bulk) below."
                    },
                    "postUrls": {
                        "title": "Post URLs (bulk)",
                        "type": "array",
                        "description": "Multiple Instagram post or Reel URLs or shortcodes — one result row set per URL.",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
