# Instagram Post Details: Likes, Views & Music by URL (`accountable_eel/ig-post-details-lookup`) Actor

Instagram post details without login, for n8n, Make or the API: paste post or reel URLs and get one row per post - likes, comments, views, caption, hashtags, duration, music and artist, account and verified badge. Re-run on a schedule to track engagement. Misses are free.

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

## Pricing

from $1.50 / 1,000 instagram post returneds

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 Lookup: likes, views and music for any post URL

**Paste Instagram post or reel URLs and get one row each: likes, comments, views, caption, hashtags, duration, music, account.**

### Who uses this

- **Agencies and creators' tools** re-checking the engagement of a list of posts and reels for a client report.
- **Brand and competitor monitors** watching how a campaign post performs after it goes live.
- **Analysts** filling a Google Sheet, Airtable or n8n flow with post stats instead of opening one Instagram tab per link.

### Try it in 30 seconds

The input box already has three real public posts in it: a reel, a carousel and a photo. Click **Start** and you get one row per post, like the rows below. No login, no cookies, no app, and no files are downloaded.

### Example output

Real rows from a recent run:

| shortcode | mediaType | ownerUsername | likes | comments | views | durationSec | musicTitle |
|---|---|---|---|---|---|---|---|
| DdG4RIxIPyf | reel | natgeo | 80,315 | 588 | 883,637 | 72.61 | Original audio |
| DdcjXAeFyr8 | carousel | natgeo | 543,999 | 1,284 | | | |
| BsOGulcndj- | photo | world_record_egg | 60,253,853 | 3,767,838 | | | |

Every row also carries the caption, the hashtags, the music artist for reels, whether the account is verified, a cover image link and the time of the check.

### What you get

You give this actor a list of Instagram post or reel URLs (or bare shortcodes). For each one it
returns a single row of metadata:

- `likes`, `comments` and, for videos and reels, `views` and `durationSec`
- `caption` and `hashtags` (the tags found in the caption, without the `#`)
- `musicTitle` and `musicArtist` for reels with a music or audio track
- `ownerUsername` and `ownerVerified`
- `mediaType` (`photo`, `carousel`, `reel` or `video`), `url`, `thumbnailUrl` and `checkedAt`

It reads the numbers Instagram prints on the post's public embed page at request time, with no login.
Use it when you want the numbers, not the media. If you need the video or image files themselves,
use [Instagram Media Downloader](https://apify.com/accountable_eel/ig-media-downloader).

### Track engagement on a list of posts

Three steps to a table that shows which posts are still growing:

1. **Put your posts in the list.** One URL per line, any mix of photos, carousels and reels.
2. **Turn on `deltaMode`** and give the list a name in `deltaName`. The first run stores each post's
   likes, comments and views as a baseline; the change columns are empty on that run.
3. **Run it on a daily or weekly schedule** (Apify: Schedules > Create, or trigger it from n8n or Make).
   From the second run on, `likesDelta`, `commentsDelta`, `viewsDelta` and their `...Pct` columns show
   how far each post has moved, and `changed` says whether it moved past your threshold.

```json
{
  "posts": [
    "https://www.instagram.com/reel/DdG4RIxIPyf/",
    "https://www.instagram.com/p/DdcjXAeFyr8/"
  ],
  "deltaMode": true,
  "alertOnChangeOnly": true,
  "minChangePercent": 10,
  "deltaName": "client-campaign-posts"
}
```

- `minChangePercent` (default 10): a post counts as changed when likes, comments or views moved by at
  least this many percent against its baseline. The baseline only moves when a post changed, so a post
  that grows 2% a day is still reported once it has grown past the threshold.
- `alertOnChangeOnly`: a post that did not move is left out of the results and not charged.
- The memory lives in a named key-value store, `ig-post-details-lookup-delta`, in your account.

### Get an alert when a post moves

Add a Discord or Slack webhook, a Telegram bot link or any URL in `notifyUrl` (needs `deltaMode`). After
a post's row is billed, a post that moved past the threshold is sent as one message listing the old and
new numbers. Messages are free, a failed message never fails the run (the row's `notifyErrors` says why),
and the link is stored encrypted and never written to the results.

### Example runs

Three inputs to copy:

**Instagram post details by URL**

```json
{ "posts": ["https://www.instagram.com/reel/DdG4RIxIPyf/", "https://www.instagram.com/p/DdcjXAeFyr8/", "https://www.instagram.com/p/BsOGulcndj-/"] }
```

**Instagram reel views and likes export**

```json
{ "posts": ["https://www.instagram.com/reel/DdG4RIxIPyf/", "https://www.instagram.com/reel/DdcI4o0Prsz/"], "columns": ["shortcode", "url", "ownerUsername", "views", "likes", "comments", "durationSec", "musicTitle", "musicArtist"] }
```

**Instagram engagement tracker for posts**

```json
{ "posts": ["https://www.instagram.com/reel/DdG4RIxIPyf/", "https://www.instagram.com/p/DdcjXAeFyr8/"], "deltaMode": true, "alertOnChangeOnly": true, "deltaName": "my-posts" }
```

### Limits

- **Embed data only.** The numbers are the ones Instagram shows on a post's embed page, as it shows them: a photo post's like count can be a few likes behind the app.
- **No posting date.** The embed page does not carry when a post was published, so there is no date column.
- **Photo posts show a comment count only when Instagram prints it** ("View all N comments"); otherwise `comments` is empty. Reels and carousels always carry it.
- **No comment text, no tagged accounts, no location, no files.** This actor returns metadata for the posts you list, nothing about who liked or commented.
- **Public posts only.** A deleted post, or one the embed cannot show, comes back as `NOT_FOUND` and costs nothing. A request Instagram challenges comes back as `BLOCKED` and costs nothing.
- The cover image link is a temporary Instagram CDN link and stops working after a while.

### Pricing

Pay-per-event. A flat per-run fee covers session/proxy warmup; you're billed
per item only when data is actually found and returned — see
`.actor/pay_per_event.json` for exact prices. A miss is never charged.

You pay per post found. A post that does not exist, is blocked or is withheld by change tracking costs nothing.

### How to use

1. **In the Apify Console.** Open the actor page and click **Start** — the `posts` field is already pre-filled with a working example. Results land in the run's dataset as soon as each item is found.
2. **Via the API.** Call it directly with a POST request — no Console needed once you have an API token:
   ```bash
   curl "https://api.apify.com/v2/acts/accountable_eel~ig-post-details-lookup/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
     -X POST \
     -H "Content-Type: application/json" \
     -d '{"posts":["https://www.instagram.com/reel/DdG4RIxIPyf/","https://www.instagram.com/p/DdcjXAeFyr8/","https://www.instagram.com/p/BsOGulcndj-/"]}'
   ```
3. **On a schedule.** Save this actor as an Apify **Task** with the input you want, then add a **Schedule** (hourly, daily, weekly) so it runs on its own — no server of your own required.

### Input

```json
{
  "posts": [
    "https://www.instagram.com/reel/DdG4RIxIPyf/",
    "https://www.instagram.com/p/DdcjXAeFyr8/",
    "https://www.instagram.com/p/BsOGulcndj-/"
  ]
}
```

One Instagram post or reel URL (or bare shortcode) per line. Public posts only. Accepted formats: https://www.instagram.com/p/DdEo7DPG8x2/, https://www.instagram.com/reel/DdG4RIxIPyf/, DdcI4o0Prsz.

### Output

One row per post. Rows with `"found": false` are never charged.

### Sample output

| query | found | status | shortcode | url | mediaType | caption | hashtags | likes | comments | views | durationSec | musicTitle | musicArtist | ownerUsername | ownerVerified | thumbnailUrl | checkedAt | likesDelta | likesDeltaPct | commentsDelta | commentsDeltaPct | viewsDelta | viewsDeltaPct | changed | previousSnapshotAt | daysSincePrevious | scrapedAt |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| https://www.instagram.com/reel/DdG4RIxIPyf/ | true | OK | <shortcode> | <post url> | \<type (photo, carousel, reel, video)> | <caption> | <hashtags> | <likes> | <comments> | \<views (video and reels)> | \<duration (seconds)> | <music or audio title> | <music artist> | <account> | \<account verified?> | <cover image> | <checked at> | <likes change> | \<likes change %> | <comments change> | \<comments change %> | <views change> | \<views change %> | \<moved past threshold?> | \<compared with (date)> | <days since that> | 1970-01-01T00:00:00.000Z |

### Use it from Clay, n8n, Make, or an AI agent

This actor runs synchronously over plain HTTP — call it directly from a script, a workflow tool, or an AI agent, no Apify Console needed once you have an API token.

```bash
curl "https://api.apify.com/v2/acts/accountable_eel~ig-post-details-lookup/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"posts":["https://www.instagram.com/reel/DdG4RIxIPyf/","https://www.instagram.com/p/DdcjXAeFyr8/","https://www.instagram.com/p/BsOGulcndj-/"]}'
```

**n8n.** Add an HTTP Request node: Method `POST`, URL `https://api.apify.com/v2/acts/accountable_eel~ig-post-details-lookup/run-sync-get-dataset-items?token=<YOUR_TOKEN>`, Body Content Type `JSON`, JSON Body `{"posts":["https://www.instagram.com/reel/DdG4RIxIPyf/","https://www.instagram.com/p/DdcjXAeFyr8/","https://www.instagram.com/p/BsOGulcndj-/"]}` (swap in an expression from an earlier node for a real value).

**Clay.** Add an "HTTP API" column: Method `POST`, URL `https://api.apify.com/v2/acts/accountable_eel~ig-post-details-lookup/run-sync-get-dataset-items?token=<YOUR_TOKEN>`, Body `{"posts":["{{post}}"]}`, mapping the row's post into the `posts` array.

**MCP.** In Claude, Cursor, or any MCP client with the Apify MCP server, ask for "Instagram Post Details: Likes, Views, Music by URL" — the agent will find and run this actor.

### Tips

- Paste post URLs straight from the browser; a `?utm_source=` tail or a reel link is fine.
- Set `columns` to the few fields your sheet needs; the others are left out of each row.
- `hashtags` is a list in the JSON and a comma-separated cell in CSV or Excel exports.
- Keep "Max concurrency" low on a very long list; steady beats fast on a target that can throttle.

### vs. alternatives

| | What you get | Trade-off |
|---|---|---|
| **This actor** | One row per post URL: counts, caption, hashtags, duration, music, account, with change tracking and alerts | Embed data only: no posting date, no comment text |
| **Instagram Media Downloader** (`ig-media-downloader`) | The video and image files, plus the same counts | Priced per downloaded file and per MB, which is more than you need for numbers |
| **Instagram Profile Scraper** (`ig-profile-scraper`) | The latest posts and reels of a profile | Starts from a username, not from a list of post URLs |
| Doing it yourself | The same data | Parsing Instagram's embed markup, handling the photo and video formats, and re-testing when it changes |

### FAQ

**Why is a row `found: false`?**
`NOT_FOUND`: the post was deleted or the embed cannot show it. `BLOCKED`: Instagram challenged the request, try again later. `BAD_FORMAT`: the line is not a post or reel URL. `PARSE_CHANGED`: Instagram sent the page but its layout changed. None of these are billed.

**Do I need to log in or give cookies?**
No. The actor reads public embed pages and never asks for a login or session.

**Is it live?**
Yes. Every run fetches each post's embed page fresh, so the counts are current at the time of the run.

**Why is `views` empty on a photo?**
Only videos and reels have views.

**Does it need a proxy?**
No setup. It uses Apify's default datacenter proxy out of the box.

**Is this GDPR-relevant?**
It returns public post metadata and the public username of the account that posted it. It does not return comments, commenters or tagged people.

**Can an AI agent call it?**
Yes. Ask an MCP client with the Apify MCP server for "Instagram Post Details" and it will find and run this actor.

Used it? You can leave a rating or review on the actor's [Reviews tab](https://apify.com/accountable_eel/ig-post-details-lookup).

### Related actors

- [Instagram Media Downloader](https://apify.com/accountable_eel/ig-media-downloader): the video and image files of the same posts.
- [Instagram Profile Scraper](https://apify.com/accountable_eel/ig-profile-scraper): the latest posts and reels of a profile, to get the URLs to feed in here.
- [TikTok Profile Lookup](https://apify.com/accountable_eel/tiktok-profile-lookup): the same change tracking, for TikTok creators.

# Actor input Schema

## `posts` (type: `array`):

One Instagram post or reel URL (or bare shortcode) per line. Public posts only. Accepted formats: https://www.instagram.com/p/DdEo7DPG8x2/, https://www.instagram.com/reel/DdG4RIxIPyf/, DdcI4o0Prsz. You're only charged for the ones we actually find — a miss costs nothing.

## `deltaMode` (type: `boolean`):

Turns this actor into an engagement tracker. Each run compares a post's likes, comments and views with the numbers stored for that post, and fills in the change columns. Every post is still looked up and billed once, exactly as with this off. The first run has nothing to compare against, so every change column comes back empty and that run becomes the baseline. The baseline only moves when a count has moved by at least the threshold below, so slow growth adds up instead of resetting each day.

## `alertOnChangeOnly` (type: `boolean`):

When on, a post whose likes, comments and views all moved by less than the threshold since its baseline is left out of the results and not charged, so a scheduled run only bills the posts that actually moved. Needs the checkbox above.

## `minChangePercent` (type: `integer`):

A post counts as changed when likes, comments or views moved by at least this many percent against its baseline (a count that was 0 and is not any more always counts). 10 by default. 0 reports any change.

## `deltaName` (type: `string`):

Leave empty and we derive one from your post list, so two schedules watching different posts keep separate memories. Editing the list then starts a fresh watchlist that re-baselines once; type your own name to keep one memory across list edits. Naming a watchlist with 'Track changes' off still fills every change column (but never drops a row), so you can filter it yourself in Sheets, n8n or Make.

## `notifyUrl` (type: `string`):

Optional. Needs 'Track changes' above. After a post's row is billed, a post whose likes, comments or views moved past the threshold since its baseline is posted here as one message listing what moved. Discord or Slack: paste the channel's webhook URL. Telegram: https://api.telegram.org/bot<token>/sendMessage?chat_id=<chat id>. Any other URL receives JSON. The first run only stores a baseline, so it sends nothing. Messages are free, and a message that fails never fails the run (the row's notifyErrors says why). Stored encrypted, never logged or written to the results.

## `notifyFormat` (type: `string`):

Leave on "Detect from the link": discord.com links get Discord messages, hooks.slack.com Slack, api.telegram.org Telegram, anything else JSON. Pick one only to override that.

## `maxNotificationsPerRun` (type: `integer`):

Up to 100. Above this, one "+N more" message says how many more posts changed (all of them are in the run's dataset), so a big watchlist never floods the channel. 0 sends only that one summary message.

## `testRun` (type: `boolean`):

Turn this on to test your input on a small sample before running the full list. Turn it off to process everything.

## `onlyFound` (type: `boolean`):

Only keep rows where something was actually found. Misses are always free, whether or not you show them here.

## `includeKeywords` (type: `array`):

Optional. Only keep results that mention at least one of these words (e.g. a job title, a city, a product name). Leave empty to keep everything.

## `excludeKeywords` (type: `array`):

Optional. Drop any result that mentions one of these words. Leave empty to skip nothing.

## `maxResults` (type: `integer`):

Optional. Stop the run once this many results have been found — useful for a quick, cheap sample. Leave blank for no limit.

## `columns` (type: `array`):

Choose which pieces of information to include in each result row. All are included by default.

## `maxConcurrency` (type: `integer`):

Parallel requests. Keep conservative — this target has no browser fallback, so getting blocked costs more than slow-and-steady.

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

Apify Proxy config. Residential recommended for anti-bot-sensitive targets.

## Actor input object example

```json
{
  "posts": [
    "https://www.instagram.com/reel/DdG4RIxIPyf/",
    "https://www.instagram.com/p/DdcjXAeFyr8/",
    "https://www.instagram.com/p/BsOGulcndj-/"
  ],
  "deltaMode": false,
  "alertOnChangeOnly": false,
  "minChangePercent": 10,
  "deltaName": "",
  "notifyFormat": "auto",
  "maxNotificationsPerRun": 20,
  "testRun": false,
  "onlyFound": false,
  "includeKeywords": [],
  "excludeKeywords": [],
  "columns": [
    "shortcode",
    "url",
    "mediaType",
    "caption",
    "hashtags",
    "likes",
    "comments",
    "views",
    "durationSec",
    "musicTitle",
    "musicArtist",
    "ownerUsername",
    "ownerVerified",
    "thumbnailUrl",
    "checkedAt",
    "likesDelta",
    "likesDeltaPct",
    "commentsDelta",
    "commentsDeltaPct",
    "viewsDelta",
    "viewsDeltaPct",
    "changed",
    "previousSnapshotAt",
    "daysSincePrevious"
  ],
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "posts": [
        "https://www.instagram.com/reel/DdG4RIxIPyf/",
        "https://www.instagram.com/p/DdcjXAeFyr8/",
        "https://www.instagram.com/p/BsOGulcndj-/"
    ],
    "includeKeywords": [],
    "excludeKeywords": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("accountable_eel/ig-post-details-lookup").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 = {
    "posts": [
        "https://www.instagram.com/reel/DdG4RIxIPyf/",
        "https://www.instagram.com/p/DdcjXAeFyr8/",
        "https://www.instagram.com/p/BsOGulcndj-/",
    ],
    "includeKeywords": [],
    "excludeKeywords": [],
}

# Run the Actor and wait for it to finish
run = client.actor("accountable_eel/ig-post-details-lookup").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 '{
  "posts": [
    "https://www.instagram.com/reel/DdG4RIxIPyf/",
    "https://www.instagram.com/p/DdcjXAeFyr8/",
    "https://www.instagram.com/p/BsOGulcndj-/"
  ],
  "includeKeywords": [],
  "excludeKeywords": []
}' |
apify call accountable_eel/ig-post-details-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,accountable_eel/ig-post-details-lookup"
        }
    }
}
```

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/P30WNeXPUZNIMrgaX/builds/sI6TTGARm31au0NyU/openapi.json
