# Instagram Post & Reel Scraper by URL (No Login) (`tagadanar/instagram-post-scraper`) Actor

Full details of any public Instagram post or reel from its link: caption, hashtags, mentions, owner, likes, comments count, posting time, audio, every carousel image and video URL, size, duration and the latest comments. No login, no cookies. $1.50 per 1,000 posts + $0.001/run.

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

## Pricing

from $1.05 / 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 & Reel Scraper by URL (No Login)

Paste Instagram post, reel or tv links (or bare shortcodes) and get one clean row per post: caption, hashtags,
mentions, owner, likes, comments count, posting time, location, audio, every carousel image and video URL,
dimensions, duration and the latest comments shown on the page. No login, no cookies, no proxy setup.

**$1.50 per 1,000 posts** (less on higher Apify plans) **+ $0.001 per run.** Links that are deleted, private
or invalid are named in the dataset and are **not charged**.

### What you get per post

| field | example | notes |
|---|---|---|
| `status` | `ok` | `ok` for a delivered post; see "Posts that can't be delivered" |
| `shortcode`, `url`, `inputUrl` | `DeTUk4sDSp-`, `https://www.instagram.com/reel/DeTUk4sDSp-/` | `inputUrl` is the line you sent |
| `type` | `photo` / `carousel` / `reel` / `video` | |
| `caption`, `hashtags`, `mentions`, `captionEdited` | | hashtags and @mentions parsed from the caption |
| `ownerUsername`, `ownerFullName`, `ownerId`, `ownerIsVerified`, `ownerProfilePicUrl` | | |
| `likeCount`, `likesHidden`, `commentCount` | `292`, `false`, `24` | `likeCount` is `null` when the owner hid likes |
| `takenAt`, `takenAtTimestamp` | `2026-05-04T21:05:19.000Z` | |
| `locationName`, `locationId`, `locationLat`, `locationLng` | | `null` when the post has no location tag |
| `audioType`, `audioTitle`, `audioArtist`, `audioId`, `isOriginalAudio`, `hasAudio` | `original-audio`, `Original audio`, `nasa`, `28589819277311219`, `true`, `true` | reels: licensed music or the creator's original audio |
| `displayUrl`, `imageUrls` | | the cover image; every image of a carousel |
| `videoUrl`, `videoUrls` | | the playable MP4 (reels/videos; every video slide of a carousel) |
| `width`, `height`, `durationSeconds` | `720`, `1280`, `51.15` | duration from the video manifest |
| `carouselCount`, `carouselItems` | `6` | per slide: shortcode, type, imageUrl, videoUrl, width, height, taggedUsers |
| `coauthors`, `taggedUsers` | | collab co-authors; accounts tagged in the media |
| `accessibilityCaption`, `mediaId`, `scrapedAt` | | |
| `latestComments` | | the comments Instagram shows a logged-out visitor (about a dozen, newest first): id, text, ownerUsername, ownerIsVerified, likeCount, createdAt. Turn off with `includeComments: false`. |
| `ownerLatestPosts` | | optional (`includeOwnerLatestPosts: true`): the owner's latest posts listed on the same page (up to 12: shortcode, url, type, caption). Feed those links back in for their full rows. |

Image and video URLs are Instagram's signed CDN links with a built-in expiry (the `oe=` parameter, a few days
out): download the files soon after the run.

**Not included:** view / play counts, shares and saves. Instagram does not show them to a logged-out visitor,
and this actor never logs in.

### Input

```json
{
  "postUrls": [
    "https://www.instagram.com/p/BsOGulcndj-/",
    "https://www.instagram.com/reel/DeTUk4sDSp-/",
    "DfIY71Lku89"
  ],
  "includeComments": true,
  "includeOwnerLatestPosts": false
}
```

Accepted: `/p/`, `/reel/`, `/reels/`, `/tv/` links (with or without `?igsh=` tracking parameters, with or without
a username before `/p/`), `instagr.am` links and bare shortcodes. Up to 2,000 posts per run; duplicates are
counted once. Profile, story, highlight and hashtag links are not supported (they are login-walled).

### Posts that can't be delivered (free rows)

Every link you send ends with a named outcome. The ones that are not delivered get a free row with a `status`
and a `reason`:

- `not_found_or_private`: Instagram has no public post there (deleted, private account, wrong link), confirmed
  by Instagram's own embed endpoint ("No Media Match").
- `restricted`: age- or sensitivity-restricted posts that Instagram shows to logged-in viewers only.
- `refused`: Instagram refused the page on every route tried; retry later.
- `not_started`: the run time ran out before this link (raise the timeout or split the list).
- `invalid_input`: not a post, reel or tv link.

The run's status message sums it up, for example
`DELIVERED: 3 of 4 post(s) delivered. 1 do not exist or are not public (…) (CxYzZzZzZzZ)`.
A run where every link is proven gone succeeds with 0 charged posts; a run where Instagram refused everything
fails with the reason, so it never looks like an empty success.

### Pricing

Pay per event, all-in (platform usage included):

| event | price |
|---|---|
| post (one delivered row) | $1.50 / 1,000 (Bronze $1.35, Silver $1.20, Gold $1.05) |
| actor start | $0.001 per run |

Not-found, private, restricted, refused and invalid links are free. Comments and the owner's latest posts come
from the same page and cost nothing extra.

### How it works

The actor loads each post's public page the way a browser does and reads the data Instagram embeds in it. It
tries a direct connection first and Apify's datacenter proxy on a refusal; it never uses paid residential
proxies, and there is no proxy setting to configure. Three posts are fetched in parallel.

### FAQ

**Do I need an Instagram account or cookies?** No. Only public posts are read, logged out.

**Can I get view counts for reels?** No: Instagram does not show them to logged-out visitors. Likes and comment
counts are included (unless the owner hid likes).

**Can I scrape a whole profile?** Not here: profile pages are login-walled. Use `includeOwnerLatestPosts` to get
the owner's latest post links from any post, then feed them back in.

**Why is a link marked `not_found_or_private`?** Instagram itself says the post is not public: deleted, from a
private account, or a typo in the link. Those rows are free.

### Changelog

See CHANGELOG.md.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/instagram-post-scraper/changelog.md

# Actor input Schema

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

Instagram post, reel or tv links (https://www.instagram.com/p/…, /reel/…, /tv/…, with or without tracking parameters) or bare shortcodes. One row per post. Up to 2,000 per run; duplicates are counted once.

## `includeComments` (type: `boolean`):

Adds `latestComments`: the comments Instagram shows a logged-out visitor on the post page (usually about a dozen), with author, text, likes and time. No extra charge.

## `includeOwnerLatestPosts` (type: `boolean`):

Adds `ownerLatestPosts`: the owner's latest posts listed on the same page (up to 12: link, type and caption, no counts). Feed those links back in to get their full details. No extra charge.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.instagram.com/p/BsOGulcndj-/",
    "https://www.instagram.com/reel/DeTUk4sDSp-/",
    "https://www.instagram.com/p/DfIY71Lku89/"
  ],
  "includeComments": true,
  "includeOwnerLatestPosts": false
}
```

# Actor output Schema

## `dataset` (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/BsOGulcndj-/",
        "https://www.instagram.com/reel/DeTUk4sDSp-/",
        "https://www.instagram.com/p/DfIY71Lku89/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/instagram-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/BsOGulcndj-/",
        "https://www.instagram.com/reel/DeTUk4sDSp-/",
        "https://www.instagram.com/p/DfIY71Lku89/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tagadanar/instagram-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/BsOGulcndj-/",
    "https://www.instagram.com/reel/DeTUk4sDSp-/",
    "https://www.instagram.com/p/DfIY71Lku89/"
  ]
}' |
apify call tagadanar/instagram-post-scraper --silent --output-dataset

```

## MCP server setup

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