# Instagram Post Details Scraper: Posts and Reels by URL (`rowfinch/instagram-post-details-scraper`) Actor

Get the details of Instagram posts and reels from their URLs or shortcodes: caption, likes, comments, plays, shares, saves, author, media and music. Same field names as Apify's Instagram Scraper and the most used post scraper.

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

## Pricing

from $1.75 / 1,000 posts

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/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 Details Scraper

Get the details of Instagram posts and reels from their links or shortcodes: caption, likes, comments, plays, shares, saves, the author, the media and the music used.

### What you get for each post

- **Post**: link, type (photo, video or carousel), caption, hashtags and mentions, timing.
- **Engagement**: likes, comments, plays, views, shares, reposts and saves.
- **People**: the author, the accounts tagged in the post and any sponsors or collaborators.
- **Media**: image and video links, carousel slides and the music used.

The field names match Apify's Instagram Scraper and the most used Instagram post scraper, so switching needs no code changes.

### What it's for

- **Engagement checks**: compare likes, plays and saves across the posts of a campaign.
- **Content research**: collect the captions, hashtags and music of posts you're studying.
- **Reporting**: pull the numbers of a list of posts into a sheet or dashboard.
- **Feeding AI agents**: clean JSON, CSV or Excel, or straight from the API.

### Input

| Field | What it does |
|---|---|
| `postUrls` | Post or reel links, shortcodes or media IDs, one per line |
| `postCode` | A single link or code, for older inputs. Added to the list |

Coming from Apify's Instagram Scraper? Its `directUrls` input works here too.

```json
{
  "postUrls": [
    "https://www.instagram.com/p/DVEGQskiMcy/",
    "https://www.instagram.com/reel/DehZj9wggt0/",
    "DVEGQskiMcy"
  ]
}
```

Each post is read once, however many ways it's given. Links to `/p/`, `/reel/`, `/reels/` and `/tv/` all work, with or without a username in front.

### Output

One row per post:

```json
{
  "inputUrl": "https://www.instagram.com/reel/DehZj9wggt0/",
  "id": "3369450800358839406",
  "type": "Video",
  "shortCode": "DehZj9wggt0",
  "url": "https://www.instagram.com/p/DehZj9wggt0/",
  "caption": "A caption of the post.",
  "hashtags": ["nature"],
  "mentions": ["natgeo"],
  "timestamp": "2026-10-15T19:00:02.000Z",
  "likesCount": 50356,
  "commentsCount": 365,
  "videoPlayCount": 1268609,
  "sharesCount": 3897,
  "savesCount": 2592,
  "displayUrl": "https://scontent.example/reel.jpg",
  "productType": "clips",
  "ownerUsername": "example_creator",
  "ownerFullName": "Example Creator",
  "code": "DehZj9wggt0",
  "like_count": 50356,
  "comment_count": 365,
  "media_type": 2,
  "is_video": true,
  "product_type": "clips",
  "taken_at": 1792090802,
  "thumbnail_url": "https://scontent.example/reel.jpg",
  "mediaId": "3369450800358839406",
  "play_count": 1268609,
  "share_count": 3897,
  "save_count": 2592,
  "repost_count": 888
}
```

The first fields are the same as Apify's Instagram Scraper. The snake_case fields after them carry the same values under the names the most used post scraper uses.

Carousels (`"type": "Sidecar"`) also list each slide in `childPosts` and its image in `images`. `likesCount` is `null` when the author hides likes, and the field is left out of the snake_case set.

A link that can't be read gets a row with the reason, free of charge:

```json
{ "input": "https://www.instagram.com/natgeo/", "error": "Use a post URL or shortcode" }
```

### Price

Prices per 1,000 posts depend on your Apify plan:

| Apify plan | Posts |
|---|---|
| Free | $2.30 |
| Starter | **$1.95** |
| Scale | $1.85 |
| Business | $1.75 |
| Platinum | $1.75 |
| Diamond | $1.75 |

For example, details of 1,000 post links cost $1.95 on Starter.

- Invalid links and posts that can't be read: free
- A run stops at the maximum cost you set for it.

### Free plan

On Apify's free plan a run returns up to 25 posts. Any paid plan removes the limit.

### FAQ

**Which links work?**
Post and reel links (`/p/`, `/reel/`, `/reels/`, `/tv/`), a bare shortcode such as `DVEGQskiMcy`, or a numeric media ID. Share links (`instagram.com/share/...`) need opening in a browser first, to get the address they lead to.

**Does it work with private accounts?**
No. Only posts from public accounts can be read.

**Why does a post come back as "Not found"?**
It was deleted, the link is wrong, or it isn't a post. The error row says so, and the row costs nothing.

**Is it legal?**
It reads only what Instagram shows publicly for each post. Use the data for a legitimate purpose, and honor deletion requests.

# Actor input Schema

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

One per line: a post or reel link, a shortcode or a media ID.

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

A single link or code, for older inputs. Added to the list above.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.instagram.com/p/DVEGQskiMcy/"
  ]
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "postUrls": [
        "https://www.instagram.com/p/DVEGQskiMcy/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfinch/instagram-post-details-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/DVEGQskiMcy/"] }

# Run the Actor and wait for it to finish
run = client.actor("rowfinch/instagram-post-details-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/DVEGQskiMcy/"
  ]
}' |
apify call rowfinch/instagram-post-details-scraper --silent --output-dataset

```

## MCP server setup

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