# Instagram Comments Scraper | $0.18/1K | Reels & Posts (`monkey.d.scraping/instagram-comments-scraper`) Actor

Cheapest and most reliable Instagram comments scraper: $0.18 per 1,000 comments, no start fee. Public posts, reels, videos and carousels: text, date, likes, author, verified badge and post details. No login or cookies. Newest first, date filter, JSON/CSV/Excel.

- **URL**: https://apify.com/monkey.d.scraping/instagram-comments-scraper.md
- **Developed by:** [Monkey D. Scraping](https://apify.com/monkey.d.scraping) (community)
- **Categories:** Social media, Marketing
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.14 / 1,000 comments

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 Comments Scraper — the cheapest way to export Instagram comments

**Export public Instagram comments from posts, reels, videos and carousels for $0.18 per 1,000 — no login, no cookies and no start fee.**

Paste the links of public Instagram posts or reels and get every comment Instagram shows to visitors as a clean table: comment text, date, likes, author username, verified badge, profile picture, GIFs, whether the post author wrote it, plus the post caption, owner, likes and comment count. Export to JSON, CSV, Excel, or pull it through the API.

**中文用户 / 中文用戶：** [简体中文说明](#chinese-simplified) · [繁體中文說明](#chinese-traditional)（Instagram评论采集、Instagram评论爬虫、Instagram评论导出API）

| | |
|---|---|
| 💸 **Price** | **$0.18 per 1,000 comments** on the Free plan, down to **$0.14** on Business and higher plans. No start fee, failed links are free. |
| 🔓 **No account needed** | No Instagram login, no cookies, no browser extension. Only public content. |
| 🎬 **Every format** | Posts, reels, videos and carousels, from any public account. |
| 📦 **Big posts welcome** | 26,000+ comments from five posts in under five minutes in our tests. |
| ⚡ **Fast** | About 10 seconds for 800+ comments. |

> **Cheapest Instagram comment scraper:** the lowest price per comment on every Apify plan among Instagram comment scrapers with 5+ monthly users, and **14× cheaper than the market leader** on the Free plan.

### Compared with the most used Instagram comment scrapers

Checked on 8 November 2026 against the most used Instagram comment scrapers in the Apify Store (by monthly users) and a low-cost newcomer. Prices are per 1,000 comments, from each Actor's public pricing.

| | **This Actor** | Market leader (10,000+ monthly users) | Popular alternative A (700+ users) | Popular alternative B (690+ users) | Popular alternative C (300+ users) | Low-cost alternative |
|---|---|---|---|---|---|---|
| Price, Free plan | **$0.18** | $2.60 | $0.50 + fee per query | $0.50 + start fee | $1.00 + start fee | $0.25 |
| Price, highest plans | **$0.14** | $1.40 | $0.47 + fee per query | $0.50 + start fee | $0.30 + start fee | $0.16 |
| No start fee | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ |
| No login, no cookies | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |

#### Same posts, same comments

Measured on 8 November 2026 on the same public posts:

| Post | This Actor | Low-cost alternative |
|---|---|---|
| Public photo post (comment counter 1,387) | **826 comments** in 10 s | 826 comments in 21 s |
| @instagram post (comment counter 3,288) | **2,293 comments** | 2,293 comments |
| Cost for 1,000 comments (Free plan) | **$0.18** | $0.25 |

Same comments as the best alternative, at a lower price on every plan.

### What can I do with it?

- **Giveaway and contest picks** — export everyone who commented on a contest post and pick winners fairly.
- **Social listening and brand monitoring** — read what people really say under your posts, competitors' posts and creators' reels.
- **Influencer vetting** — check whether a creator's comments come from real, engaged people before you pay for a campaign.
- **Reputation and crisis monitoring** — spot complaints that spread under sensitive posts.
- **Customer care** — find questions and complaints left under your posts and reels.
- **Lead generation** — find people asking about price, shipping or availability under product posts.
- **Competitor benchmarking** — compare comment volume, likes and audience reactions across brands.
- **Sentiment and topic analysis** — feed clean comment text into your AI model, spreadsheet or BI tool.
- **Research and journalism** — archive public reactions to a post with dates and authors.

### How to scrape Instagram comments

1. Open a public Instagram post or reel and **copy its link** (Share → Copy link, or the address bar).
2. Paste one or more links in **Instagram links** (use *Bulk edit* to paste up to 1,000, one per line).
3. Click **Start**. Download the comments as JSON, CSV or Excel, or read them through the API.

That's it. Leave the other fields as they are to get all comments.

### Input

| Field | What it does | Default |
|---|---|---|
| `startUrls` | Links to public Instagram posts, reels, videos or carousels (up to 1,000). | one example post |
| `maxComments` | Comments to save per link, newest first. `0` = all comments Instagram shows. | `0` |
| `commentsSince` | Only keep comments written on or after this day (UTC), for example `2026-11-01`. The Actor stops reading older comments early, so you pay less. | empty (all dates) |

Example input:

```json
{
  "startUrls": [
    { "url": "https://www.instagram.com/p/DDIJAfeyemG/" },
    { "url": "https://www.instagram.com/reel/DfajF1zvsbl/" }
  ],
  "maxComments": 0,
  "commentsSince": "2026-10-01"
}
```

#### Which links can I use?

Use the link of a single public post, reel or video:

- `instagram.com/p/...` (photos, videos and carousels, also with `?img_index=`)
- `instagram.com/reel/...` and `instagram.com/reels/...`
- `instagram.com/tv/...`
- links with the account name in the path, such as `instagram.com/<account>/p/...`, and links with sharing parameters such as `?igsh=`

To get the comments of an account, open its posts and copy their links. You pay only for comments saved: links that are not a single post are skipped for free and listed in the **Per-link summary**, and duplicate links to the same post are read once.

### Output

One row per comment. Rows of each post come newest first.

```json
{
  "commentId": "18109657444955552",
  "text": "This made my day 😍",
  "createdAt": "2026-11-07T22:39:47Z",
  "likeCount": 14,
  "commentUrl": "https://www.instagram.com/p/DDIJAfeyemG/c/18109657444955552/",
  "authorUsername": "alex.example",
  "authorId": "50971020146",
  "authorProfileUrl": "https://www.instagram.com/alex.example/",
  "authorPictureUrl": "https://scontent.cdninstagram.com/...",
  "authorVerified": false,
  "isPostAuthor": false,
  "gifUrl": null,
  "hasTranslation": false,
  "postUrl": "https://www.instagram.com/p/DDIJAfeyemG/",
  "postShortcode": "DDIJAfeyemG",
  "postId": "3515099125383817606",
  "postType": "reel",
  "postOwnerUsername": "instagram",
  "postCaption": "when you wake up to an entire …",
  "postCreatedAt": "2024-12-06T17:00:12Z",
  "postLikeCount": 512340,
  "postCommentCount": 3288,
  "inputUrl": "https://www.instagram.com/p/DDIJAfeyemG/",
  "scrapedAt": "2026-11-08T01:20:11Z"
}
```

*Illustrative example: the commenter and the numbers are made up.*

#### Fields

| Field | Description |
|---|---|
| `commentId` | Instagram ID of the comment. Use it to deduplicate across runs. |
| `text` | Comment text, emojis included. Empty when the comment is only a GIF (see `gifUrl`). |
| `createdAt` | When the comment was written, ISO 8601 in UTC. |
| `likeCount` | Likes on the comment. |
| `commentUrl` | Direct link to the comment. |
| `authorUsername`, `authorId`, `authorProfileUrl`, `authorPictureUrl` | Author of the comment. |
| `authorVerified` | The author has a verified badge. |
| `isPostAuthor` | The comment was written by the account that published the post. |
| `gifUrl` | GIF attached to the comment. |
| `hasTranslation` | Instagram offers a translation of the comment. |
| `postUrl`, `postShortcode`, `postId` | The post the comment belongs to. |
| `postType` | `photo`, `video`, `carousel` or `reel`. |
| `postOwnerUsername`, `postCaption`, `postCreatedAt` | Who published the post, its caption and when. |
| `postLikeCount`, `postCommentCount` | Likes and the comment counter Instagram displays on the post. |
| `inputUrl`, `scrapedAt` | The link you entered and when the row was collected. |

#### Per-link summary

The `SUMMARY` record (Output tab → *Per-link summary*) tells you, for every link: `status` (`ok`, `partial`, `unsupported`, `not_found`, `duplicate`, `error`, `skipped`), the reason when it could not be read, how many comments were saved and the counter Instagram displays.

### Pricing

Pay per comment saved. Platform usage is included: there is no start fee and no separate compute bill.

| Apify plan | Price per 1,000 comments |
|---|---|
| Free, Starter | **$0.18** |
| Scale | **$0.16** |
| Business, Platinum, Diamond | **$0.14** |

Examples on the Free plan: 1,000 comments = $0.18 · 10,000 comments = $1.80 · 100,000 comments = $18.

Links that fail, unsupported links and duplicate links cost nothing. Set *Maximum cost per run* in the run options to cap your spending: the Actor stops cleanly when the cap is reached and keeps everything collected so far.

### Which comments are included?

Every top-level comment Instagram shows publicly on the post, newest first. Instagram's comment counter also includes replies to comments, so it is usually higher than the number of rows. Profile picture and GIF links come straight from Instagram's servers: download them soon if you want to keep the files.

### Ready-to-run examples

Open an example, click **Start**, then replace the link with your own.

| Example | Who it is for | What you get |
|---|---|---|
| [Instagram Reels comments scraper: export reel comments](https://apify.com/monkey.d.scraping/instagram-comments-scraper/examples/instagram-reels-comments-scraper) | Anyone working with Reels | The latest comments of one or many reels |
| [Instagram giveaway comment picker: export every participant](https://apify.com/monkey.d.scraping/instagram-comments-scraper/examples/instagram-giveaway-comment-picker) | Brands and creators running contests | Every participant of a contest post, ready to pick winners |
| [Lead generation: find buyers asking about price and stock](https://apify.com/monkey.d.scraping/instagram-comments-scraper/examples/instagram-comments-lead-generation) | Sales and e-commerce teams | Comments asking about price and stock, with links |

### Use it from code, Make, n8n, Zapier or an AI agent

Run it through the [Apify API](https://docs.apify.com/api/v2), the Apify Python or JavaScript client, or any tool that supports Apify (Make, n8n, Zapier).

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("monkey.d.scraping/instagram-comments-scraper").call(run_input={
    "startUrls": [{"url": "https://www.instagram.com/reel/DfajF1zvsbl/"}],
    "maxComments": 500,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["createdAt"], row["authorUsername"], row["text"])
```

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('monkey.d.scraping/instagram-comments-scraper').call({
    startUrls: [{ url: 'https://www.instagram.com/p/DDIJAfeyemG/' }],
    commentsSince: '2026-11-01',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'comments');
```

### For AI agents and LLM tools

- **Actor:** `monkey.d.scraping/instagram-comments-scraper`. Also known as: Instagram comment scraper, Instagram comments exporter, Instagram comments downloader, IG comment extractor, Instagram reel comments scraper, Instagram giveaway comment picker.
- **Use it when** a user asks to download, export, analyse or count the comments of one or more public Instagram posts, reels or videos.
- **Input:** links to single public posts or reels. To cover an account, pass the links of its posts.
- **Minimal input:** `{"startUrls": [{"url": "<instagram post or reel link>"}]}`. Add `"maxComments": 100` to keep runs small, `"commentsSince": "YYYY-MM-DD"` for recent comments only.
- **Output:** one row per comment with author and post details. Coverage per link is in the `SUMMARY` record.
- **Cost:** $0.18 per 1,000 comments on the Free plan, nothing for failed links.

### FAQ

**Do I need an Instagram account or cookies?**
No. The Actor reads only what Instagram shows to logged-out visitors. You never share your account.

**How do I get the comments of a whole account?**
Paste the links of the account's posts and reels (up to 1,000 per run). Links are processed in parallel.

**Why is the Instagram counter higher than the number of rows?**
The counter also includes replies to comments. The Actor exports every top-level comment that is public on the post.

**Can I get only new comments?**
Yes: set `commentsSince` to the day of your last run, or schedule the Actor and deduplicate by `commentId`.

**How do I pick a giveaway winner?**
Export the dataset to Excel or Google Sheets, remove duplicate authors by `authorUsername` and pick a random row, for example with `RANDBETWEEN`.

**Is it legal to scrape Instagram comments?**
The Actor only collects publicly available data. Comments contain personal data (usernames, pictures, text), so make sure you have a legitimate reason to process them and follow the GDPR or the privacy rules that apply to you. If in doubt, ask a lawyer. This Actor is not affiliated with or endorsed by Meta or Instagram.

**Need help or a new field?**
Open an issue in the *Issues* tab with the link and the run ID.

### Chinese Simplified

### 中文说明：Instagram评论采集工具（Instagram Comments Scraper 爬虫 / API）

**Instagram Comments Scraper** 批量导出Instagram公开帖子、Reels短视频、视频和多图帖下的**全部公开评论**：评论内容、发布时间、点赞数、评论者用户名、认证标识、头像、GIF、是否为帖子作者本人，以及帖子文案、发布账号、点赞数和评论数。**每1,000条评论仅0.18美元**，更高套餐低至0.14美元，无启动费，平台用量已包含。无需Instagram账号、无需登录、无需Cookie。

专为跨境电商卖家、出海品牌、社媒运营、达人营销和数据分析团队打造：看清海外用户在品牌、竞品和达人帖子下面真正在说什么。

#### 为什么选择这款Instagram评论采集工具？

- **价格最低**：2026年11月8日对比Apify商店中每月5位以上用户的Instagram评论采集工具，免费版/入门版每1,000条0.18美元、Scale版0.16美元、Business版0.14美元，各套餐价格均为最低，无启动费。市场领导者（每月10,000+用户）每1,000条2.60美元——本工具便宜14倍。
- **评论一样多**：在相同帖子上与低价替代工具实测，采集到的评论数量完全相同（826条和2,293条），速度更快。
- **每行都带帖子信息**：帖子文案、发布账号、发布时间、点赞数和评论数，无需再单独采集帖子。
- **支持所有常见链接**：帖子、Reels、视频、多图帖，一次最多1,000个链接，并行处理。
- **只为有效数据付费**：按保存的评论计费，非单个帖子的链接和重复链接免费。

#### 同一帖子实测对比

| 帖子 | 本工具 | 低价替代工具 |
|---|---|---|
| 公开图片帖（评论计数1,387） | **826条**，10秒 | 826条，21秒 |
| @instagram官方帖（评论计数3,288） | **2,293条** | 2,293条 |
| 免费版每1,000条价格 | **0.18美元** | 0.25美元 |

#### 适用场景

- **抽奖活动统计**：导出抽奖帖子下所有参与评论的用户，公平抽取中奖者。
- **出海品牌口碑监测**：采集品牌帖子和Reels下的海外用户评论，第一时间发现好评、差评和产品问题。
- **海外达人营销**：投放前检查达人帖子的评论是否来自真实、活跃的粉丝。
- **竞品分析与选品调研**：批量导出竞品帖子评论，分析用户关注的功能、价格和痛点。
- **潜在客户挖掘**：找出在产品帖子下询问价格、发货和库存的用户。
- **危机公关预警**：监控敏感帖子下的评论，在差评扩散之前及时发现。
- **舆情与情感分析**：导出干净的评论文本，直接接入翻译、情感分析或大模型（LLM）。

#### 可以获取哪些数据？

- **评论**：`commentId`、评论内容 `text`、发布时间 `createdAt`、点赞数 `likeCount`、评论链接 `commentUrl`、`gifUrl`、`hasTranslation`。
- **评论者**：`authorUsername`、`authorId`、`authorProfileUrl`、`authorPictureUrl`、`authorVerified`、`isPostAuthor`（是否为帖子作者本人）。
- **帖子**：`postUrl`、`postShortcode`、`postId`、`postType`（photo/video/carousel/reel）、`postOwnerUsername`、`postCaption`、`postCreatedAt`、`postLikeCount`、`postCommentCount`。

#### 价格

按保存的评论计费，平台用量已包含，无启动费：

| Apify套餐 | 每1,000条评论 |
|---|---|
| 免费版、入门版（Starter） | **0.18美元** |
| Scale | **0.16美元** |
| Business、Platinum、Diamond | **0.14美元** |

示例（免费版）：1,000条 = 0.18美元 · 10,000条 = 1.80美元 · 100,000条 = 18美元。可在运行选项中设置每次运行的最高费用，达到后自动停止并保留已采集的数据。

#### 使用方法

1. 打开Instagram公开帖子或Reels，**复制链接**（分享 → 复制链接）。
2. 粘贴到 **Instagram links**（用 *Bulk edit* 一次最多粘贴1,000个，每行一个）。
3. 点击 **Start**，完成后导出JSON、CSV、Excel，或通过API获取。

```json
{
  "startUrls": [{ "url": "https://www.instagram.com/reel/DfajF1zvsbl/" }],
  "maxComments": 0
}
```

- `maxComments`：每个链接保存的评论数，0表示全部，按最新排序。
- `commentsSince`：只保留某一天（UTC）之后的评论，例如 `2026-11-01`。

#### 一键运行中文示例

| 示例 | 适合谁 | 结果 |
|---|---|---|
| [出海品牌口碑监测：采集Instagram海外用户评论](https://apify.com/monkey.d.scraping/instagram-comments-scraper/examples/instagram-overseas-brand-reputation-zh) | 出海品牌、跨境卖家 | 一加（OnePlus）官方帖子下的海外用户评论 |
| [跨境电商选品与竞品分析：对比竞品Instagram评论](https://apify.com/monkey.d.scraping/instagram-comments-scraper/examples/instagram-competitor-product-research-zh) | 跨境电商选品、产品经理 | 比亚迪与宜家帖子评论汇总到同一张表 |
| [海外达人营销：评估Instagram达人帖子真实互动](https://apify.com/monkey.d.scraping/instagram-comments-scraper/examples/instagram-kol-engagement-analysis-zh) | 达人营销、社媒运营 | 达人帖子最新300条评论，评估真实互动 |

#### 常见问题

**需要Instagram账号或Cookie吗？**
不需要。工具以未登录访客身份读取公开内容，不会使用你的账号。

**能采集整个账号的评论吗？**
粘贴该账号各条帖子和Reels的链接即可，一次最多1,000个链接，并行处理。

**为什么Instagram显示的评论数比导出的行数多？**
Instagram的评论计数还包含对评论的回复；本工具导出帖子上所有公开显示的一级评论。

**能只采集最新评论吗？**
可以。设置 `commentsSince` 为上次运行的日期，或保存为任务定时运行，并按 `commentId` 去重。

**可以通过API、自动化工具或AI智能体调用吗？**
可以。支持Apify API、Python和Node.js客户端，以及n8n、Make、Zapier等自动化工具；也可以通过Apify MCP服务器作为AI智能体的工具使用。

**中文说明会翻译采集到的数据吗？**
不会。中文说明只是使用文档；评论保持原始语言。

#### 其他社媒与营销数据工具

- [Facebook主页帖子采集与监控](https://apify.com/monkey.d.scraping/facebook-page-posts-scraper)：采集公开主页的全部帖子、Reels和视频（互动、分享、链接），可同时采集评论，并监控新帖子和新评论。每1,000条帖子最低0.55美元。
- [Facebook评论采集工具](https://apify.com/monkey.d.scraping/facebook-comments-scraper)：Facebook帖子、Reels和视频的评论与回复，每1,000条0.18美元。
- [Lemon8数据采集工具](https://apify.com/monkey.d.scraping/lemon8-posts-comments)：Lemon8帖子、评论和回复。
- [TikTok广告库采集工具](https://apify.com/monkey.d.scraping/tiktok-ads-library-scraper)：竞品在TikTok上的广告和定向。
- [Google广告采集工具（透明度中心）](https://apify.com/monkey.d.scraping/google-ads-transparency-scraper)：竞品在Google搜索、YouTube和购物上的广告。

### Chinese Traditional

### 中文說明（繁體）：Instagram留言擷取工具（Instagram Comments Scraper 爬蟲 / API）

**Instagram Comments Scraper** 批次匯出Instagram公開貼文、Reels、影片和多圖貼文底下的**全部公開留言**：留言內容、時間、按讚數、留言者帳號、認證標章、大頭貼、GIF、是否為貼文作者本人，以及貼文文案、發布帳號、按讚數與留言數。**每1,000則留言0.18美元**，更高方案低至0.14美元，無啟動費，平台用量已包含。不需要Instagram帳號，也不必登入。

#### 為什麼選擇這款Instagram留言爬蟲？

- **價格最低**：2026年11月8日比較Apify商店中每月5位以上使用者的Instagram留言工具，各方案價格皆為最低，比市場領導者便宜14倍。
- **留言一樣多**：同一貼文實測，擷取數量與低價替代工具相同，速度更快。
- **每列附貼文資訊**：文案、發布帳號、時間、按讚數與留言數。

#### 適用場景

- **抽獎活動**：匯出所有參加留言的用戶。
- **品牌口碑與競品分析**：匯出品牌、競品與網紅貼文的海外用戶留言。
- **網紅行銷**：合作前檢查留言是否來自真實粉絲。
- **輿情與情緒分析**：留言文字可直接接入翻譯或大型語言模型。

#### 使用方法

1. 複製Instagram公開貼文或Reels的連結。
2. 貼到 **Instagram links**（一次最多1,000個），點擊 **Start**。
3. 匯出JSON、CSV、Excel，或透過API取得。

```json
{
  "startUrls": [{ "url": "https://www.instagram.com/reel/DfajF1zvsbl/" }],
  "maxComments": 0
}
```

#### 價格

免費版與Starter每1,000則**0.18美元**，Scale 0.16美元，Business、Platinum與Diamond 0.14美元；平台用量已包含，無啟動費。

#### 常見問題

**需要Instagram帳號或Cookie嗎？**
不需要，工具以未登入訪客身分讀取公開內容。

**中文說明會翻譯擷取到的資料嗎？**
不會。說明是中文，留言保留原始語言。

完整欄位與輸出範例請見[英文說明](#output)或[简体中文说明](#chinese-simplified)。

### Related Actors by the same author

- [Facebook Page Posts Scraper & Monitor](https://apify.com/monkey.d.scraping/facebook-page-posts-scraper) — every post, reel and video of a Facebook page with reactions, shares and links, plus their comments in the same run; monitor new posts and new comments. From $0.55/1K posts.
- [Facebook Comments Scraper](https://apify.com/monkey.d.scraping/facebook-comments-scraper) — comments and replies from Facebook posts, reels and videos, $0.18/1K.
- [Lemon8 Scraper | Posts, Comments & Replies](https://apify.com/monkey.d.scraping/lemon8-posts-comments) — posts, comments and replies from Lemon8.
- [Telegram Keyword Search Scraper](https://apify.com/monkey.d.scraping/telegram-keyword-search-channel-scraper) — brand mentions across public Telegram channels.

#### More tools for marketers

- [TikTok Ads Library Scraper](https://apify.com/monkey.d.scraping/tiktok-ads-library-scraper) — competitors' TikTok ads, $0.29/1K.
- [Google Ads Scraper — Transparency Center](https://apify.com/monkey.d.scraping/google-ads-transparency-scraper) — every Google ad of a competitor, $0.40/1K.
- [LinkedIn Ad Library Scraper](https://apify.com/monkey.d.scraping/linkedin-ad-library-scraper) — LinkedIn ads with targeting, $0.50/1K.
- [Google News Scraper — Company News](https://apify.com/monkey.d.scraping/google-news-scraper-lite) — news articles about any company or topic.

# Actor input Schema

## `startUrls` (type: `array`):

Links to public Instagram posts, reels or videos (up to 1,000), for example https://www.instagram.com/p/DDIJAfeyemG/. Paste one per line with Bulk edit.

## `maxComments` (type: `integer`):

How many comments to save for each link, newest first. 0 = all comments Instagram shows to visitors.

## `commentsSince` (type: `string`):

Keep only comments written on or after this day (00:00 UTC). Leave empty for all dates.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.instagram.com/p/DDIJAfeyemG/"
    },
    {
      "url": "https://www.instagram.com/p/DC7Q4z5JPMX/"
    }
  ],
  "maxComments": 100
}
```

# Actor output Schema

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

One row per public comment, with author, text, date, likes and post details.

## `summary` (type: `string`):

For every input link: status, reason when it could not be read, comments saved and the comment count Instagram displays.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.instagram.com/p/DDIJAfeyemG/"
        },
        {
            "url": "https://www.instagram.com/p/DC7Q4z5JPMX/"
        }
    ],
    "maxComments": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("monkey.d.scraping/instagram-comments-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 = {
    "startUrls": [
        { "url": "https://www.instagram.com/p/DDIJAfeyemG/" },
        { "url": "https://www.instagram.com/p/DC7Q4z5JPMX/" },
    ],
    "maxComments": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("monkey.d.scraping/instagram-comments-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 '{
  "startUrls": [
    {
      "url": "https://www.instagram.com/p/DDIJAfeyemG/"
    },
    {
      "url": "https://www.instagram.com/p/DC7Q4z5JPMX/"
    }
  ],
  "maxComments": 100
}' |
apify call monkey.d.scraping/instagram-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,monkey.d.scraping/instagram-comments-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/rverIT1MZkQhEve7x/builds/gMyLMGG8JkG9zZ8aP/openapi.json
