# Social Media Comments Export & Reply (`bundle.social/social-media-comments`) Actor

Export comments from your Instagram, TikTok, YouTube, Facebook, LinkedIn and Threads posts, then reply, like, hide or delete them in bulk. CSV, Excel, JSON.

- **URL**: https://apify.com/bundle.social/social-media-comments.md
- **Developed by:** [bundle social](https://apify.com/bundle.social) (community)
- **Categories:** Social media, Automation, Marketing
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

### What does Social Media Comments Export & Reply do?

**Social Media Comments Export & Reply** collects the comments on your own social media posts into one dataset and lets you answer them in bulk. It works with **Instagram, Facebook, TikTok, YouTube, LinkedIn, Threads, Reddit, Bluesky, Mastodon and X (Twitter)** through the [bundle.social](https://bundle.social) API.

- **Export comments** from your recent posts on every platform at once: author, text, likes, replies, publish time and a link to the post. Download as CSV, Excel or JSON.
- **Reply to comments** in bulk. Each reply goes out on the platform the comment came from.
- **Moderate comments:** like, hide, unhide or delete them, where the platform allows it.

Because it works through your connected accounts instead of scraping, it can also act on the comments it finds.

### Use cases

- **Community management at scale.** Export yesterday's comments from every brand account, triage them in a sheet, and send the answers back in one run.
- **AI comment replies.** Feed the export to an LLM, let it draft replies, review them, and pass them to **Reply and moderate** mode. Works well with the [Apify MCP server](https://mcp.apify.com) for AI agents.
- **Social listening on your own posts.** Run sentiment analysis or keyword alerts on the comments of your campaigns.
- **Spam cleanup.** Find spam in the export and hide or delete it across platforms.
- **Agencies.** Leave **Team IDs** empty to cover every client team in one run.

### How to export comments from Instagram, TikTok, YouTube and more

1. Create a [bundle.social](https://bundle.social) account and connect your social accounts.
2. In bundle.social, open **Organization > API Keys** and create an API key.
3. Paste the key into **bundle.social API key**, keep **Mode** on **Export comments** and click **Start**.

By default the Actor reads the 20 newest posts per team from the last 14 days, fetches their latest comments from the platforms, and exports them.

### How to reply to comments in bulk

Switch **Mode** to **Reply and moderate** and list the comments to answer, using `commentId` values from an export:

```json
{
  "apiKey": "YOUR_BUNDLE_SOCIAL_API_KEY",
  "mode": "MANAGE",
  "replies": [
    { "commentId": "c0a8f3e2-5b1d-4c7a-9f10-2a6b7c8d9e01", "text": "Thanks so much, glad you like it!" },
    { "commentId": "6f1e2d3c-4b5a-4978-8a6b-5c4d3e2f1a0b", "text": "Good question, it ships next week." }
  ],
  "actions": [
    { "commentId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", "action": "HIDE" },
    { "commentId": "c0a8f3e2-5b1d-4c7a-9f10-2a6b7c8d9e01", "action": "LIKE" }
  ]
}
```

### Export input example

```json
{
  "apiKey": "YOUR_BUNDLE_SOCIAL_API_KEY",
  "mode": "EXPORT",
  "platforms": ["INSTAGRAM", "TIKTOK", "YOUTUBE"],
  "since": "7 days",
  "maxPosts": 50
}
```

To read specific posts, pass their bundle.social IDs in **Post IDs**.

### Output example

```json
{
  "record": "COMMENT",
  "teamName": "Acme Coffee",
  "platform": "INSTAGRAM",
  "postId": "dedea852-2ce0-4ff8-9fef-5a5e7c158b12",
  "postPermalink": "https://www.instagram.com/p/C1a2b3c4d5e/",
  "commentId": "c0a8f3e2-5b1d-4c7a-9f10-2a6b7c8d9e01",
  "authorName": "jane.doe",
  "text": "Love the new roast!",
  "likesCount": 3,
  "repliesCount": 0,
  "hidden": false,
  "publishedAt": "2026-11-07T18:22:05.000Z"
}
```

### How much does it cost?

The Actor is free and uses little Apify compute. You need a [bundle.social](https://bundle.social/pricing) account; how many comments are fetched per post depends on your plan. Fetching replies from X (Twitter) uses paid bundle.social credits, so X is only included when you select it.

### FAQ

**Which posts are covered?**
Posts published through bundle.social. Comments on posts published natively in the platform apps are not part of this Actor yet.

**Can I export comments from someone else's posts?**
No. This Actor works with posts on accounts you have connected. For public posts of other accounts, use a scraper from Apify Store.

**Why do some actions fail?**
Platforms differ: for example, not every platform lets a page hide or like comments through its API. The error for each action is in the dataset.

**Will my reply show up immediately?**
Replies are queued and published right away; the `status` column shows where each reply is.

### Related Actors

- [Social Media Post Scheduler & Auto Poster](https://apify.com/bundle.social/social-media-post-scheduler): publish to 15 platforms.
- [Social Media Analytics Export](https://apify.com/bundle.social/social-media-analytics-export): followers, reach and engagement per account and post.
- [Google Business Reviews Export & Reply](https://apify.com/bundle.social/google-business-reviews): manage reviews of your locations.

### Support

Questions or a feature request? Open an issue on the **Issues** tab or write to contact@bundle.global.

# Changelog

This Actor's version history is a separate document: https://apify.com/bundle.social/social-media-comments/changelog.md

# Actor input Schema

## `apiKey` (type: `string`):

Your bundle.social API key. Sign in at https://bundle.social/dashboard, open Organization > API Keys and create a key. The key is stored encrypted.

## `mode` (type: `string`):

EXPORT reads comments into the dataset. MANAGE sends the replies and moderation actions listed below.

## `teamIds` (type: `array`):

bundle.social teams to work with. Leave empty for every team in your organization.

## `platforms` (type: `array`):

Platforms to read comments from. Leave empty for every supported platform except X, where fetching replies uses paid bundle.social credits.

## `since` (type: `string`):

A date such as 2026-10-01, or a period back from now such as 14 days or 4 weeks.

## `maxPosts` (type: `integer`):

The newest published posts to read comments from, per team.

## `postIds` (type: `array`):

Read only these bundle.social posts instead of the newest ones. Overrides Posts published since and Max posts.

## `refresh` (type: `boolean`):

Pull the latest comments from each platform before exporting. Turn off to export only what bundle.social already has, which is faster.

## `waitTimeoutSecs` (type: `integer`):

How long to wait for the platforms to return new comments before exporting.

## `replies` (type: `array`):

Replies to post, for example \[{"commentId": "...", "text": "Thanks!"}]. Add teamId per item if you have several teams. The reply goes out on the platform the comment came from.

## `actions` (type: `array`):

Actions on comments, for example \[{"commentId": "...", "action": "HIDE"}]. Actions: HIDE, UNHIDE, LIKE, UNLIKE, DELETE, APPROVE, REJECT. Availability depends on the platform.

## Actor input object example

```json
{
  "mode": "EXPORT",
  "since": "14 days",
  "maxPosts": 20,
  "refresh": true,
  "waitTimeoutSecs": 600,
  "replies": [],
  "actions": []
}
```

# Actor output Schema

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

Comments on your posts with author, text, likes, replies and the comment ID used for replies.

## `operations` (type: `string`):

Result of each reply or moderation action: OK flag, reply ID and error.

# 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 = {
    "replies": [],
    "actions": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("bundle.social/social-media-comments").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 = {
    "replies": [],
    "actions": [],
}

# Run the Actor and wait for it to finish
run = client.actor("bundle.social/social-media-comments").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 '{
  "replies": [],
  "actions": []
}' |
apify call bundle.social/social-media-comments --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bundle.social/social-media-comments"
        }
    }
}
```

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/nHx1cWXZDic0hMVU0/builds/oeXyccd2PFENnjFVf/openapi.json
