# YouTube Community Posts Scraper (`xtracto/youtube-community-posts`) Actor

Scrape the community posts (Posts tab) of any YouTube channel: text, images, polls, attached videos, links, likes, comment count and date. No login or API key.

- **URL**: https://apify.com/xtracto/youtube-community-posts.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 98.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 posts

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

## YouTube Community Posts Scraper

Scrape the community posts (the **Posts** tab) of any YouTube channel. Each row is one post with its text, links, hashtags, full-size images, poll choices and total votes, attached video, likes, comment count and date. No YouTube account, no API key. The YouTube Data API does not offer community posts at all.

### Why use this actor

- **Every post type:** text, single image, image carousel, poll, attached video or playlist, and reposts (with the original post included).
- **Exact like counts** where YouTube publishes them (for example `271158` instead of "271K"), plus the comment count.
- **Full-size image links**, not the small square crops shown in the feed.
- **Links in the text resolved**: you get the real destination, not YouTube's redirect link.
- **Many channels in one run**: handles, channel URLs or `UC…` ids, read in parallel.
- **Pay only for posts.** Channels that do not exist or have no posts are listed in the run status and never charged.

### Use cases

- Track what creators and brands announce to their audience: launches, merch drops, sponsors and polls.
- Collect poll questions and results for audience research.
- Monitor competitor channels and measure engagement (likes and comments per post).
- Archive a channel's community posts before they are deleted.

### Input

```json
{
  "channels": ["@MrBeast", "https://www.youtube.com/@mkbhd"],
  "maxPostsPerChannel": 20,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

| Field | Type | Description |
|---|---|---|
| `channels` | array of strings | Handles (`@MrBeast`), channel URLs (`https://www.youtube.com/@mkbhd`, `https://www.youtube.com/channel/UC…`) or channel ids (`UC…`). |
| `maxPostsPerChannel` | integer | Newest posts first. `0` = every post the channel has published. Default `50`. |
| `proxyConfiguration` | object | Apify Proxy settings. The default automatic proxy is enough. |

### Output

One row per post, newest first. Real rows from a run on 14 Nov 2026:

```json
{
  "channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
  "channelName": "MrBeast",
  "channelHandle": "@MrBeast",
  "channelUrl": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA",
  "postId": "UgkxIkDHJ9iW7XmjtMbke3Ud7rEiV5jSHDnR",
  "postUrl": "https://www.youtube.com/post/UgkxIkDHJ9iW7XmjtMbke3Ud7rEiV5jSHDnR",
  "postType": "images",
  "text": "Hunger Games In Real Life drops on Saturday!\nWe designed custom suits that detect when they’re hit by magnetic foam weapons 👀",
  "links": [],
  "hashtags": [],
  "images": [
    "https://yt3.ggpht.com/-nihmRU8RGnrkkYNC73Y_eRRp03ReHeIdKSE8oqRy-HOu0dfZ-7Y5ND61lI9CS3Thlec0shis6WGXQ=s2048",
    "https://yt3.ggpht.com/g2LFXicy-wjSH-5pvMPnOnp0YHZXO0VaOzf8Y9yws0OFoH2yQjx_1abszLqWNv6f7BoJ3VnXmB6S=s2048"
  ],
  "poll": null,
  "attachedVideo": null,
  "likes": 271158,
  "likesText": "271K",
  "commentCount": 5400,
  "commentCountText": "5.4K",
  "publishedTimeText": "4 days ago",
  "publishedAtApprox": "2026-11-10T22:13:12+00:00",
  "isEdited": false,
  "authorName": "MrBeast",
  "authorChannelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
  "_input": "@MrBeast",
  "_source": "S1-posts-tab",
  "_scrapedAt": "2026-11-14T22:13:12+00:00"
}
```

A poll from the same run:

```json
{
  "postType": "poll",
  "text": "Would you rather stop aging for 100 years or receive 1 billion dollars right now?",
  "poll": {
    "choices": ["100 Years Of No Aging", "1 Billion Dollars"],
    "totalVotes": 1800000,
    "totalVotesText": "1.8M votes"
  },
  "likes": 109152,
  "commentCount": 10000,
  "publishedTimeText": "3 months ago"
}
```

| Field | Type | Description |
|---|---|---|
| `channelId`, `channelName`, `channelHandle`, `channelUrl` | string | The channel the post was read from. |
| `postId`, `postUrl` | string | Post id and link. |
| `postType` | string | `text`, `image`, `images`, `poll`, `video`, `playlist` or `repost`. |
| `text` | string | Full post text. |
| `links` | array | Destinations of the links in the text. |
| `hashtags` | array | Hashtags in the text. |
| `images` | array | Full-size image links. |
| `poll` | object or null | `choices`, `totalVotes`, `totalVotesText`. Per-choice percentages are only shown to signed-in voters, so they are not included. |
| `attachedVideo` | object or null | `videoId`, `title`, `url`, `lengthText`, `viewCountText` (or the playlist id, title and url). |
| `likes` | integer | Exact like count when YouTube publishes it, otherwise the rounded count ("271K" → 271000). |
| `commentCount` | integer | Comment count as shown by YouTube (rounded for large numbers). |
| `publishedTimeText` | string | Date as YouTube shows it, e.g. "3 weeks ago". |
| `publishedAtApprox` | string (ISO date) | Date computed from `publishedTimeText`; precise to the unit shown (day, week, month, year). |
| `isEdited` | boolean | `true` when the post was edited. |
| `sharedPost` | object | For reposts only: the original post in the same shape. |
| `_input`, `_source`, `_scrapedAt` | string | Your input value, the method that answered, and when the row was collected. |

### Notes and limits

- YouTube shows only relative dates for posts, so `publishedAtApprox` is an estimate (exact to the day for recent posts, to the month or year for older ones).
- Posts for channel members only are not visible without a membership and are skipped.
- About 10 posts are read per request; a channel with 1,000 posts takes about two minutes.

# Actor input Schema

## `channels` (type: `array`):

Channel handles (`@MrBeast`), channel URLs (`https://www.youtube.com/@mkbhd`, `/channel/UC…`) or channel ids (`UC…`).

## `maxPostsPerChannel` (type: `integer`):

Newest posts first. `0` = every post the channel has published.

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

Apify Proxy settings. The default automatic proxy is enough.

## Actor input object example

```json
{
  "channels": [
    "@MrBeast",
    "https://www.youtube.com/@mkbhd"
  ],
  "maxPostsPerChannel": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "channels": [
        "@MrBeast",
        "https://www.youtube.com/@mkbhd"
    ],
    "maxPostsPerChannel": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/youtube-community-posts").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 = {
    "channels": [
        "@MrBeast",
        "https://www.youtube.com/@mkbhd",
    ],
    "maxPostsPerChannel": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/youtube-community-posts").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 '{
  "channels": [
    "@MrBeast",
    "https://www.youtube.com/@mkbhd"
  ],
  "maxPostsPerChannel": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call xtracto/youtube-community-posts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/youtube-community-posts"
        }
    }
}
```

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/Dd7ZCxgvbh6eH6IP5/builds/Ik0DSUThJK2grbiSK/openapi.json
