# Instagram Single Post Scraper (`socialdataapi/instagram-single-post-scraper`) Actor

Instagram Single Post Scraper scrapes full data for specific Instagram posts, reels and carousels by URL, shortcode or media ID: caption, likes, comments, video views and duration, carousel images, tagged users, collaborators, music and paid partnership. Export JSON, CSV or Excel, or use the API.

- **URL**: https://apify.com/socialdataapi/instagram-single-post-scraper.md
- **Developed by:** [Social Data API](https://apify.com/socialdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 0 monthly users, 94.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 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 Single Post Scraper — Likes, Comments, Views and Media

Instagram Single Post Scraper extracts full data for the exact Instagram posts, reels and carousels you list: caption, like and comment counts, latest comments, video views and length, video, image and carousel URLs, tagged users, collaborators, music and the paid-partnership flag. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a social listening pipeline. **No Instagram account or cookies needed.** Start with one post link, then track every campaign post you care about in one run.

![Instagram Single Post Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/y-instagram-single-post-hero.webp)

***

### What data can I extract with Instagram Single Post Scraper?

Using this Instagram Post API, you will be able to extract the following Instagram post data:

| 🔗 Post URL and shortcode | 📝 Caption | ❤️ Like count | 💬 Comment count |
|---|---|---|---|
| 🗨️ Latest comments (up to 10-15) | 🥇 First comment | 👀 Video views (videos) | ⏱️ Video length (videos) |
| 🎬 Video URL | 🎧 Audio track URL (videos) | 🖼️ Main image URL | 🎠 Carousel slides with images |
| #️⃣ Hashtags | @ Mentions | 🏷️ Tagged users | 🤝 Collaborators |
| 🎵 Music: song, artist, audio ID | 💼 Paid partnership flag | 📍 Location (if available) | 👤 Author name, username and ID |
| 📅 Publish date | 📐 Width and height | ♿ Alt text | 🚫 Comments turned off |

***

### How to use Instagram Single Post Scraper

Marketers, analysts and AI-agent builders get one clean JSON row per post, for as many posts as they list in one run.

**Copy to your AI assistant:**

```text
`socialdataapi/instagram-single-post-scraper` is an Apify Actor (Apify Actor ID: socialdataapi/instagram-single-post-scraper, https://apify.com/socialdataapi/instagram-single-post-scraper) that returns full data for specific Instagram posts, reels and carousels as structured JSON: caption, like count, comment count, latest comments, video views and length, image, video and carousel URLs, tagged users, collaborators, music info and the paid-partnership flag. Use it whenever someone needs Instagram post data without cookies, a login, or a browser - tracking campaign and influencer posts, checking sponsored content, collecting comments for sentiment analysis. Run it with curl: curl -X POST "https://api.apify.com/v2/actors/socialdataapi~instagram-single-post-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"postUrls":["https://www.instagram.com/p/DXHKcyvEWfr/"],"dataDetailLevel":"detailedData","commentsPerPost":10}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("socialdataapi/instagram-single-post-scraper").call(run_input={"postUrls": ["https://www.instagram.com/p/DXHKcyvEWfr/"]}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: postUrls (array of strings, post/reel/IGTV URLs, bare shortcodes or numeric media IDs, required), dataDetailLevel (string, "detailedData" | "basicData", default "detailedData"), commentsPerPost (integer, latest comments per post, 0 = none, default 10), includeMusicData (boolean, music info and audio URL on videos, default true), proxyConfiguration (object, optional starting proxy, default none). Each stored post row is billed as one row_result event; posts that cannot be loaded are skipped and not billed. Instagram shows visitors only the latest 10-15 comments of a post, so a higher comments number returns what is available. Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/actors/socialdataapi~instagram-single-post-scraper/builds/default
```

#### Instagram Single Post Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at this actor and it can read Instagram posts on its own: captions, counts, comments, media links and music for any post URL. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/instagram-single-post-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Instagram Single Post Scraper](https://apify.com/socialdataapi/instagram-single-post-scraper) in the Apify Store.
3. Paste the Instagram post, reel or IGTV URLs (or shortcodes or media IDs).
4. Click **Start** (or send your API request).
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Instagram Single Post Scraper to bulk

Put every post you need into the **Post URLs** list: links, shortcodes and media IDs can be mixed, duplicates are skipped, and each post becomes one row. The actor loads 5 posts at a time and saves each one as soon as it is ready. For daily tracking, save your list as an Apify task and schedule it, or call the API from your own code with a new list each time. Every stored post is billed as one `row_result` event.

***

### ✨ Features

Instagram Single Post Scraper fetches clean, structured posts from Instagram by link. It's ideal for campaign reporting, influencer audits, sponsored-content checks and comment collection for AI analysis.

It extracts, per post:

- **Like and comment counts** – the engagement numbers shown on the post.
- **Video views and length** – view count and duration in seconds for videos and reels.
- **Latest comments** – text, author, likes, reply count and date of each comment shown to visitors.
- **Media links** – main image, video file, audio track and every carousel slide image.
- **Tagged users and collaborators** – username, full name, user ID and verified badge of each.
- **Music** – song name, artist, audio ID and whether the reel uses original audio.
- **Paid partnership** – whether the post is marked as a paid partnership.

⚡ Choose **Basic data** to skip comments, alt text, music and the partnership flag when you only need counts and media.

***

### Use cases 💡

- **Social media manager** — report likes, comments and views for every campaign post.
- **Influencer marketer** — verify paid-partnership labels and collaborators on sponsored posts.
- **Brand analyst** — collect latest comments per post for sentiment tracking.
- **Content researcher** — pull video length, music and hashtags of top-performing reels.
- **AI-agent builder** — feed post captions and comments into a RAG pipeline as context.

Building an AI agent? [Connect Instagram Single Post Scraper over MCP](#mcp-integration-for-ai-agents) and let it call the actor on its own.

***

### Why choose this actor?

1. **Many posts, row by row, fast.** A recorded run returned 100 posts from 29 accounts in 43 seconds (about 0.43 s per post), and 20 posts in 8 seconds.
2. **The full picture behind each post.** A recorded reel came back with 117,924 likes, 1,632 comments, 1,962,153 video views, a 73.3-second length, 5 tagged accounts, 5 collaborators and its original-audio ID.
3. **Five ways to enter a post, one Actor.** Post links, reel links, IGTV links, bare shortcodes and numeric media IDs all work, with a detail level, a comments-per-post number and a music switch.

***

### ⬇️ Input

![Instagram Single Post Scraper input form with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/y-instagram-single-post-input.webp)

The actor takes a list of Instagram posts in **Post URLs** (required): post, reel or IGTV links, bare shortcodes or numeric media IDs. Every other field is optional.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `postUrls` | Yes | array | Post, reel or IGTV links, bare shortcodes or numeric media IDs; one row per post. Duplicates and profile links are skipped. | `["https://www.instagram.com/p/DXHKcyvEWfr/"]` |
| `dataDetailLevel` | No | string | `detailedData` (default) adds latest comments, first comment, alt text, music, audio URL and paid-partnership flag; `basicData` skips them and is faster. | `"detailedData"` |
| `commentsPerPost` | No | integer | Latest comments to include per post (detailed data only). Default 10, 0 = no comments. Instagram shows visitors only the latest 10-15 comments. | `10` |
| `includeMusicData` | No | boolean | Adds music info and the audio track URL to videos and reels (detailed data only). Default `true`. | `true` |
| `proxyConfiguration` | No | object | Optional proxy to start with. Default: direct connection; the actor switches to a proxy by itself when blocked. | `{"useApifyProxy": false}` |

Accepted post formats:

- `https://www.instagram.com/p/DXHKcyvEWfr/`
- `https://www.instagram.com/reel/DNvmHS0Yh50/`
- `https://www.instagram.com/tv/DfLpjWZm1h0`
- `DLNsnpUTdVS` (shortcode)
- `3875111963462821867` (media ID)

#### Free plan limits

Users on the Apify free plan can fetch up to 20 posts per run (all post URLs together) and 200 posts per month. When the limit is reached the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
  "postUrls": [
    "https://www.instagram.com/p/DXHKcyvEWfr/",
    "https://www.instagram.com/reel/DNvmHS0Yh50/",
    "DLNsnpUTdVS"
  ],
  "dataDetailLevel": "detailedData",
  "commentsPerPost": 10,
  "includeMusicData": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

***

### ⬆️ Output

![Instagram Single Post Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/y-instagram-single-post-output.webp)

Every post is one typed, normalized JSON item with the same schema on every run; carousels carry their slides inside the row. Export the results as JSON (default), CSV or Excel, or open the Overview, Details, Media, Carousel slides, Author, Comments and Music views in the Output tab.

#### Example output

```json
{
  "inputUrl": "https://www.instagram.com/p/DXHKcyvEWfr/",
  "id": "3875111963462821867",
  "type": "Video",
  "shortCode": "DXHKcyvEWfr",
  "caption": "One trip to Italy is never enough. @StanleyTucci returns for a second season of #TucciinItaly ...",
  "hashtags": ["TucciinItaly", "TucciInItaly"],
  "mentions": ["StanleyTucci", "natgeotv"],
  "url": "https://www.instagram.com/p/DXHKcyvEWfr/",
  "commentsCount": 1632,
  "dimensionsHeight": 1280,
  "dimensionsWidth": 720,
  "originalHeight": 1280,
  "originalWidth": 720,
  "displayUrl": "https://instagram.fdac3-1.fna.fbcdn.net/v/t51.82787-15/670930329_n.jpg",
  "images": [],
  "likesCount": 117924,
  "timestamp": "2026-04-14T13:00:04.000Z",
  "childPosts": [],
  "productType": "clips",
  "ownerFullName": "National Geographic",
  "ownerUsername": "natgeo",
  "ownerId": "787132",
  "isCommentsDisabled": false,
  "firstComment": "Dolci????",
  "latestComments": [
    {
      "id": "18555356065078132",
      "text": "Dolci????",
      "ownerUsername": "schaefers_landhaus",
      "ownerProfilePicUrl": "https://scontent.cdninstagram.com/v/t51.82787-19/888990319_n.jpg",
      "timestamp": "2026-08-11T08:32:38.000Z",
      "repliesCount": 0,
      "replies": [],
      "likesCount": 0,
      "owner": {
        "id": "16341176409",
        "is_verified": false,
        "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/888990319_n.jpg",
        "username": "schaefers_landhaus"
      }
    }
  ],
  "alt": "Video by National Geographic on April 14, 2026.",
  "videoUrl": "https://instagram.fdac3-2.fna.fbcdn.net/o1/v/t2/f2/m86/AQPolsNwI7Po5uzIZ7bU.mp4",
  "videoViewCount": 1962153,
  "videoDuration": 73.322,
  "audioUrl": "https://instagram.fdac2-1.fna.fbcdn.net/o1/v/t2/f2/m78/AQOnrPbPXQLP7tfFidMP.mp4",
  "taggedUsers": [
    {
      "full_name": "National Geographic TV",
      "id": "18091046",
      "is_verified": true,
      "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/682751368_n.jpg",
      "username": "natgeotv"
    }
  ],
  "musicInfo": {
    "artist_name": "natgeo",
    "song_name": "Original audio",
    "uses_original_audio": true,
    "should_mute_audio": false,
    "should_mute_audio_reason": "",
    "audio_id": "26540995838853931"
  },
  "coauthorProducers": [
    {
      "full_name": "Hulu",
      "id": "191074609",
      "is_verified": true,
      "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/883559077_n.jpg",
      "username": "hulu"
    }
  ],
  "isPaidPartnership": false
}
```

***

### How does it work?

Instagram Single Post Scraper reads public Instagram post pages — the same data any visitor sees without logging in — so no Instagram account, cookies or browser setup is needed on your side. You send post links, shortcodes or media IDs; the actor turns each one into its post, loads 5 posts at a time and saves each post the moment it is ready. If a request fails, it retries, and if Instagram blocks the requests it switches to a proxy by itself. Posts that are private, deleted or not available are skipped with a clear message in the log and the run status. Every post is mapped to the same normalized JSON schema, so your code keeps working when Instagram changes the look of its pages.

***

### How do you integrate Instagram Single Post Scraper into your stack?

It works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools.

#### Using Instagram Single Post Scraper with the Apify API

```python
import requests

resp = requests.post(
    "https://api.apify.com/v2/actors/socialdataapi~instagram-single-post-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"postUrls": ["https://www.instagram.com/p/DXHKcyvEWfr/", "DLNsnpUTdVS"], "commentsPerPost": 10},
)
for post in resp.json():
    print(post["url"], post["likesCount"], post["commentsCount"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Add the actor to your agent with one command:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/instagram-single-post-scraper"
```

This registers Instagram Single Post Scraper as a tool your agent can call directly. It works in Claude Code, Cursor, Windsurf and any other MCP client: ask for a post's captions, counts or comments and the agent runs the actor and reads the JSON it returns.

#### No-code tools (n8n, Make, LangChain)

- **n8n** — use the Apify node with "Run an Actor" and pick `socialdataapi/instagram-single-post-scraper`, or point the HTTP Request node at the run-sync endpoint with your token.
- **Make** — add the Apify app's "Run an Actor" module, then "Get Dataset Items" to map the posts into your sheet or CRM.
- **LangChain** — install `langchain-apify` and use `ApifyActorsTool("socialdataapi/instagram-single-post-scraper")` as a tool in your agent.

***

### Is it legal to scrape Instagram data?

Scraping publicly available Instagram data is generally legal when you collect only what any visitor can see. Instagram Single Post Scraper returns only public post data — what any user sees without logging in. Under GDPR, scraping public data is generally permissible, but storing and using it, especially names and comments of real people, must comply with your local data-protection law. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Instagram Single Post Scraper return?

It returns the caption, like count, comment count, latest comments and video views for every post, plus media links, tagged users, collaborators, music and more. See [the data fields section](#what-data-can-i-extract-with-instagram-single-post-scraper) for the full list.

#### Does Instagram Single Post Scraper require an Instagram account or login?

No. Only public post data is extracted, and no credentials are needed.

#### How fast does Instagram Single Post Scraper run?

A recorded run saved 100 posts in 43 seconds and another saved 20 posts in 8 seconds. Data is live, read at run time, not cached.

#### What happens if a post is private or doesn't exist?

It is skipped: no row is saved and nothing is billed for it, the log shows "could not be loaded" for that post, and the run's status message counts how many were skipped. Entries that are not post links (for example a profile link or plain text) and duplicates are skipped before the run starts.

#### Can I scrape multiple Instagram posts at once?

Yes. Add as many links, shortcodes or media IDs as you need to **Post URLs**; each post becomes one row, 5 are loaded at a time.

#### Does Instagram Single Post Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Instagram Single Post Scraper is available as an MCP tool. Register it in Claude Code, Cursor or Windsurf with `claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/instagram-single-post-scraper"`. Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Instagram Single Post Scraper return data in a format LLMs can use directly?

Yes. Every post is typed, normalized JSON with consistent field names. No HTML parsing, no selectors: pass it straight to an LLM, index it into a vector store, or feed it to an agent tool — no transformation step.

#### What happens when Instagram changes its layout or updates its anti-bot system?

This actor is maintained and updated. When Instagram changes, the actor is updated — your calls keep returning the same JSON schema with no changes on your end.

#### Can I use Instagram Single Post Scraper without managing proxies or browser infrastructure?

Yes. Retries and the switch to a proxy when Instagram blocks a request run on the actor's side. You send one request and get structured JSON back. No proxy accounts, no headless browser setup, no maintenance.

#### Which Instagram post fields work best for AI training data and RAG indexing?

For RAG: the caption, hashtags, alt text and comment texts. For training data: the like count, comment count, video views, video length and the paid-partnership flag. All fields are typed primitives — strings, integers, booleans — no normalization needed.

***

### Your feedback

Found a bug or missing a field? Let us know in the actor's Issues tab. Every report is read, and fixes ship as updates to this actor.

# Actor input Schema

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

Instagram post, reel or IGTV links (https://www.instagram.com/p/..., /reel/..., /tv/...), bare shortcodes (DLNsnpUTdVS) or numeric media IDs. Add as many as you like; each post gives one row. Duplicates are skipped, and profile links are skipped because they are not posts.

## `dataDetailLevel` (type: `string`):

Detailed data adds the latest comments, the first comment, alt text, music info, the audio URL and the paid-partnership flag. Basic data skips them and is faster.

## `commentsPerPost` (type: `integer`):

How many of the latest comments to include per post (detailed data only). Instagram shows visitors only the latest 10-15 comments of a post, so a higher number returns what is available. 0 = no comments.

## `includeMusicData` (type: `boolean`):

Add music info (song, artist, audio ID) and the audio track URL to videos and reels (detailed data only).

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

Optional proxy to start with. If Instagram blocks the requests, the actor switches to a residential proxy automatically.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.instagram.com/p/DXHKcyvEWfr/",
    "https://www.instagram.com/p/DLNsnpUTdVS/"
  ],
  "dataDetailLevel": "detailedData",
  "commentsPerPost": 10,
  "includeMusicData": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `details` (type: `string`):

No description

## `media` (type: `string`):

No description

## `carousel` (type: `string`):

No description

## `author` (type: `string`):

No description

## `comments` (type: `string`):

No description

## `music` (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/DXHKcyvEWfr/",
        "https://www.instagram.com/p/DLNsnpUTdVS/"
    ],
    "commentsPerPost": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialdataapi/instagram-single-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/DXHKcyvEWfr/",
        "https://www.instagram.com/p/DLNsnpUTdVS/",
    ],
    "commentsPerPost": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("socialdataapi/instagram-single-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/DXHKcyvEWfr/",
    "https://www.instagram.com/p/DLNsnpUTdVS/"
  ],
  "commentsPerPost": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call socialdataapi/instagram-single-post-scraper --silent --output-dataset

```

## MCP server setup

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