# YouTube Live Chat Scraper (`neuro-scraper/youtube-live-chat-scraper`) Actor

YouTube Live Chat Scraper SD - YouTube Live Chat Scraper is a video data tool that extracts YouTube live chat messages from live streams and stream replays: messages, authors, badges, Super Chats with amounts and currency, memberships and moderation events, with timestamps, no login.

- **URL**: https://apify.com/neuro-scraper/youtube-live-chat-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Videos, Social media, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

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 Live Chat Scraper

The YouTube Live Chat Scraper collects public YouTube Live chat data and returns it as a clean dataset you can download as JSON, CSV or Excel, or read through the Apify API. No login, no cookies and no code: give the YouTube Live Chat Scraper your input, start it and get structured YouTube Live data for research, monitoring, analytics or lead generation. You pay only for the results you receive.

> ⭐ **Featured by Neuro Scraper: [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** - scrape Facebook Reels from any page, profile or reel link with exact views and plays, every reaction type (Like, Love, Care, Haha, Wow, Sad, Angry), comments, shares, captions, music and video links. No login and no cookies. [Try the Facebook Reels Scraper →](https://apify.com/neuro-scraper/facebook-reels-scraper)

> **Also from neuro-scraper:** the [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export public Facebook Reels with views, reactions, comments, captions and video links in one click.

**YouTube Live Chat Scraper** extracts the live chat of YouTube live streams while they are live, and the full chat replay of ended streams: every message with its author, channel id, badges (owner, moderator, verified, member), time and position in the video, plus Super Chats and Super Stickers with amount and currency, memberships, gifted memberships and moderation events. The YouTube Live Chat Scraper runs on Apify, needs no account, no login and no browser extension, and it delivers clean rows you can download as JSON, CSV, Excel or HTML, or pull through the Apify API. It is built for streamers and their managers, esports and event organisers, brand teams that sponsor live shows, researchers studying online communities, and anyone who needs a live chat log as a spreadsheet.

#### What the YouTube Live Chat Scraper does

- Live streams: collects new chat messages for as long as you choose (live capture time), at the pace YouTube itself sends them.
- Replays: reads the chat of an ended stream from the start (or from any second you choose) to the end, page after page (250 of 250 messages over 6 pages in our test).
- Channels: finds a channel's stream that is live now and its recent stream replays automatically, with a lookback in days.
- Message types: normal messages, Super Chats and Super Stickers (amount, numeric value, currency, colour), new members, milestones, gifted memberships, and deleted or removed messages.
- Every message: id, text, emoji parts, author name, @handle, channel id and photo, badges, owner / moderator / verified / member flags, membership level, exact time and offset in the video (e.g. 10:07).
- Filters by message type, replay start and end second, and a per-video message limit.

Every row the YouTube Live Chat Scraper returns has the same columns in the same order, numbers are real numbers and dates are ISO 8601 in UTC, so the YouTube Live Chat Scraper output drops straight into a spreadsheet, a database, Google Sheets or a BI dashboard.

#### Why use the YouTube Live Chat Scraper?

Doing this by hand means opening YouTube item by item, copying values and fixing formats. The YouTube Live Chat Scraper does it for you at scale and on a schedule: paste your input, press Start, and the YouTube Live Chat Scraper returns structured data in minutes. Because the YouTube Live Chat Scraper follows YouTube's own "next page" for every list, a limit of 500 really gives up to 500 results (or everything YouTube shows, when that is less). The YouTube Live Chat Scraper also reports in its log and final status message which inputs failed and why, so nothing is lost silently.

- Stream analytics: run the YouTube Live Chat Scraper on every stream and measure chat activity, peaks and top chatters.
- Super Chat accounting: export every paid message with amount and currency.
- Moderation review: export deleted messages and the moderators' actions.
- Community research: study what viewers talk about during launches, matches and premieres.
- Highlights: find the seconds of a replay where the chat exploded and cut clips there.

#### How to use the YouTube Live Chat Scraper

1. Open the YouTube Live Chat Scraper in Apify Console and click **Try for free** (an Apify account is free to create).
2. Fill in the input - the YouTube Live Chat Scraper starts with a working example, so a first run costs only a few cents.
3. Set the limits you need and keep the default residential proxy.
4. Click **Start**. Rows appear in the dataset while the YouTube Live Chat Scraper runs.
5. Export the YouTube Live Chat Scraper results as JSON, CSV, Excel, XML or HTML, or connect them to Make, Zapier, n8n, Google Sheets or your own code.

#### Input of the YouTube Live Chat Scraper

| Field | Type | Default | What it does |
|---|---|---|---|
| `videoUrls` | array | - | YouTube live streams (live now) or ended streams with a chat replay, as URLs or video ids, one per line. |
| `channelRefs` | array | \["@LofiGirl"] | Channels as @handle or channel URL: their live stream (if live now) and recent stream replays are found automatically. |
| `channelDiscoveryMode` | string | "current_live_then_replays" | For channels: which streams to read. |
| `videosPerChannel` | integer | 1 | For channels: how many streams to read (live now first, then the newest replays). |
| `lookbackDays` | integer | 0 | For channels: skip replays older than this many days. 0 = no limit. |
| `mode` | string | "auto" | Auto reads the live chat of a stream that is live now and the chat replay of an ended stream. |
| `maxMessagesPerVideo` | integer | 200 | How many chat events to return per stream. Replays are read page after page from the start; live chats are read as they arrive. |
| `maxTimePerVideoSecs` | integer | 60 | Live streams only: how long to keep collecting new messages. |
| `startOffsetSecs` | integer | 0 | Replays only: start reading at this second of the stream. |
| `endOffsetSecs` | integer | 0 | Replays only: stop at this second of the stream. |
| `includeNormalMessages` | boolean | true | Include ordinary chat messages. |
| `includeSuperChats` | boolean | true | Include paid messages and stickers with amount and currency. |
| `includeMembershipEvents` | boolean | true | Include new members, milestones and gifted memberships. |
| `includeModerationEvents` | boolean | false | Include deleted / removed messages (as YouTube shows them in the chat). |
| `maxTotalItems` | integer | 0 | Stops the whole run after this many dataset rows. |
| `proxyConfiguration` | object | {"useApifyProxy": true, "apifyProxyGroups": \["RESIDENTIAL"], "apifyProxyCountry": "US"} | Residential proxies in the United States (the default) give the most reliable results: visitors from some countries (e.g. the EU) first get a consent page. |

Example input for the YouTube Live Chat Scraper:

```json
{
  "channelRefs": [
    "@LofiGirl"
  ]
}
```

More ready-to-copy inputs for the YouTube Live Chat Scraper:

The chat replay of one ended stream between minute 10 and minute 30, Super Chats and memberships only (a donation report):

```json
{
  "videoUrls": ["https://www.youtube.com/watch?v=jfKfPfyJRdk"],
  "mode": "replay",
  "startOffsetSecs": 600,
  "endOffsetSecs": 1800,
  "includeNormalMessages": false,
  "includeSuperChats": true,
  "includeMembershipEvents": true,
  "maxMessagesPerVideo": 5000
}
```

Listen to whatever two channels are streaming right now for 5 minutes each, including deleted messages:

```json
{
  "channelRefs": ["@LofiGirl", "@NASA"],
  "channelDiscoveryMode": "current_live_only",
  "mode": "live",
  "maxTimePerVideoSecs": 300,
  "maxMessagesPerVideo": 2000,
  "includeModerationEvents": true
}
```

The last 3 stream replays of a channel from the past 14 days, 500 messages each, at most 1,200 rows in total:

```json
{
  "channelRefs": ["@LofiGirl"],
  "channelDiscoveryMode": "replays_only",
  "videosPerChannel": 3,
  "lookbackDays": 14,
  "maxMessagesPerVideo": 500,
  "maxTotalItems": 1200
}
```

#### Features and how they work in the scraper

The YouTube Live Chat Scraper returns one row per chat event (a message, a Super Chat, a membership event or a moderation event). Every input option is explained below: what it does, how the YouTube Live Chat Scraper applies it, its values and default, an example, a tip and how it combines with other options.

##### `videoUrls` - streams by link or id

**What it does:** lists the live streams or ended streams whose chat you want. **How it works:** give watch, youtu.be or live links, or bare 11-character video ids, one per line; the YouTube Live Chat Scraper opens each stream, sees whether it is live now or a replay, and reads its chat according to `mode`. Videos that were never live, or whose chat is turned off, are reported in the log with the reason and skipped. **Values:** array of strings; empty by default. **Example:** `"videoUrls": ["https://www.youtube.com/watch?v=jfKfPfyJRdk"]`. **Tip:** a replay is available only when the channel kept it - fresh streams may need some minutes after they end. **Combinations:** can be mixed with `channelRefs`; `maxMessagesPerVideo` applies to each stream.

##### `channelRefs` - find streams by channel

**What it does:** finds the streams of each channel for you. **How it works:** give an @handle or channel URL; the YouTube Live Chat Scraper opens the channel's Live tab (newest first), takes the stream that is live now and the most recent ended streams, skips upcoming and scheduled ones, and then reads their chats. A channel without a Live tab is reported in the log. **Values:** array of strings; prefilled with @LofiGirl. **Example:** `"channelRefs": ["@LofiGirl"]`. **Tip:** schedule a channel with `current_live_only` every hour to catch every stream while it is live. **Combinations:** which streams are taken is set by `channelDiscoveryMode`, how many by `videosPerChannel`, how old by `lookbackDays`.

##### `channelDiscoveryMode` - live now, replays or both

**What it does:** decides which streams of a channel are read. **How it works:** `current_live_then_replays` takes the stream that is live now first and fills up with the newest replays; `current_live_only` takes only a stream that is live at the moment of the run (none = no rows for that channel); `replays_only` takes only ended streams. The `discoverySource` and `isDiscoveredLive` columns show how each stream was found. **Values:** the three values above; default `current_live_then_replays`. **Example:** `"channelDiscoveryMode": "replays_only"`. **Tip:** for an archive use `replays_only`; for real-time monitoring use `current_live_only`. **Combinations:** applies only to `channelRefs`, not to `videoUrls`.

##### `videosPerChannel` - streams per channel

**What it does:** sets how many streams of each channel are read. **How it works:** the Live tab is read newest first, the stream that is live now counts first (in the default mode), then replays until the number is reached; the Live tab is followed page after page when more streams are needed. **Values:** integer 1-500; default 1. **Example:** `"videosPerChannel": 5`. **Tip:** every stream can return up to `maxMessagesPerVideo` rows, so 5 streams x 500 messages = up to 2,500 rows per channel. **Combinations:** `lookbackDays` can stop the list earlier; `maxTotalItems` caps the whole run.

##### `lookbackDays` - only recent replays

**What it does:** skips replays older than this many days when streams are found by channel. **How it works:** the YouTube Live Chat Scraper reads the age of each replay ("Streamed 6 days ago") and stops at the first one older than the limit, because the Live tab is newest first. 0 means no age limit. **Values:** integer 0 or more; default 0. **Example:** `"lookbackDays": 7`. **Tip:** with a weekly schedule set 7 so every run covers the streams of the last week. **Combinations:** only for `channelRefs`; a channel with no stream in the window returns no rows.

##### `mode` - live chat, replay or automatic

**What it does:** tells the YouTube Live Chat Scraper which kind of chat to read. **How it works:** `auto` reads the live chat of a stream that is live now and the chat replay of an ended stream; `replay` reads only ended streams and skips live ones with a log line; `live` reads only streams that are live now and skips replays. The `isReplay`, `source` and `streamStatus` columns tell you which one each row came from. **Values:** `auto`, `replay`, `live`; default `auto`. **Example:** `"mode": "live"`. **Tip:** keep `auto` unless you mix many links and want only one kind. **Combinations:** a live chat is read for `maxTimePerVideoSecs`; a replay uses `startOffsetSecs` / `endOffsetSecs`.

##### `maxTimePerVideoSecs` - live capture time

**What it does:** sets how long the YouTube Live Chat Scraper keeps listening to a stream that is live now. **How it works:** new messages are collected as they arrive, waiting the interval YouTube asks for between chat pages, until this time has passed or `maxMessagesPerVideo` is reached; the log says which one stopped the stream. Replays ignore it. **Values:** integer 5-36000 seconds; default 60. **Example:** `"maxTimePerVideoSecs": 600` for 10 minutes. **Tip:** the run time (and platform usage) grows with this value, so start with a few minutes. **Combinations:** with several live streams they are read one after another, each for this time.

##### `startOffsetSecs` - start of a replay window

**What it does:** starts reading a chat replay at this second of the stream. **How it works:** the YouTube Live Chat Scraper asks for the replay from this position and also drops any message before it, so the first row is at or after the offset; `offsetSeconds` and `offsetTimestamp` show where each message appears in the video. **Values:** integer 0 or more seconds; default 0 (from the start). **Example:** `"startOffsetSecs": 3600` to begin at 1:00:00. **Tip:** combine with the replay's chapter times to read only the part of a long stream you care about. **Combinations:** live streams ignore it; use `endOffsetSecs` to close the window.

##### `endOffsetSecs` - end of a replay window

**What it does:** stops reading a chat replay at this second of the stream. **How it works:** as soon as a message later than this position appears the stream is finished, so a window of 600-1800 gives the chat of minutes 10 to 30 only. 0 means read to the end of the replay (or to `maxMessagesPerVideo`). **Values:** integer 0 or more seconds; default 0. **Example:** `"endOffsetSecs": 1800`. **Tip:** it saves time and cost on streams that are many hours long. **Combinations:** must be larger than `startOffsetSecs`; live streams ignore it.

##### `includeNormalMessages` - ordinary chat messages

**What it does:** includes or leaves out ordinary text messages. **How it works:** every chat event has an `eventType`; ordinary messages are `text`. With this option off the YouTube Live Chat Scraper drops them and keeps only the other event types you have turned on. **Values:** true or false; default true. **Example:** `"includeNormalMessages": false`. **Tip:** turn it off together with `includeSuperChats` on to build a donations report quickly. **Combinations:** dropped messages do not count toward `maxMessagesPerVideo`, so the run reads further into the chat to find the events you want.

##### `includeSuperChats` - paid messages and stickers

**What it does:** includes Super Chats and Super Stickers. **How it works:** these events have `eventType` `superChat` or `superSticker` and come with `superChatAmount` (as shown), `superChatAmountValue` (a number), `superChatCurrency`, `superChatColor` and, for stickers, `stickerUrl`. **Values:** true or false; default true. **Example:** `"includeSuperChats": true`. **Tip:** sum `superChatAmountValue` per `superChatCurrency` to get the income of a stream. **Combinations:** works with the other include options; turn off `includeNormalMessages` to keep only paid events.

##### `includeMembershipEvents` - members and gifts

**What it does:** includes new members, membership milestones and gifted memberships. **How it works:** these events have `eventType` `membership`, `membershipGift` or `membershipGiftRedemption`; the member level is written to `membershipLevel`, and `isMember` and `authorBadges` are filled on every message by members. **Values:** true or false; default true. **Example:** `"includeMembershipEvents": false`. **Tip:** keep it on to count how many memberships a stream brought in. **Combinations:** independent of the message filters; all event types share the same columns.

##### `includeModerationEvents` - deleted and removed messages

**What it does:** includes the moderation events YouTube shows in the chat. **How it works:** when a message is deleted or an author's messages are removed, the YouTube Live Chat Scraper adds a row with `eventType` `moderation`, the `moderationAction` (message deleted, message removed, author messages deleted, author removed) and the affected `messageId` / `authorChannelId`. **Values:** true or false; default false. **Example:** `"includeModerationEvents": true`. **Tip:** match `messageId` with earlier rows to see which messages were removed. **Combinations:** works with live chats and replays alike.

##### `maxTotalItems` - limit for the whole run

**What it does:** stops the YouTube Live Chat Scraper after this many rows in total. **How it works:** every saved chat event counts across all streams; when the total is reached the run finishes cleanly and the log says so. 0 means no total limit (each stream is still limited by `maxMessagesPerVideo`). **Values:** integer 0 or more; default 0. **Example:** `"maxTotalItems": 10000`. **Tip:** use it as a cost cap when you read many channels or long replays. **Combinations:** streams from `videoUrls` are read first, then the streams found by `channelRefs`.

##### `messageTypes` - quick choice of event types

**What it does:** picks the kinds of chat events in one setting. **How it works:** `all` (default) leaves the decision to `includeNormalMessages`, `includeSuperChats`, `includeMembershipEvents` and `includeModerationEvents`; `paid` keeps only Super Chats, Super Stickers and membership events; `text` keeps only ordinary messages. Dropped events do not count toward `maxMessagesPerVideo`. **Values:** `all`, `paid`, `text`; default `all`. **Example:** `"messageTypes": "paid"`. **Tip:** `paid` is the quickest way to a donations report. **Combinations:** overrides the include options when it is not `all`.

##### `includeUpcomingLives` - scheduled streams too

**What it does:** also takes a channel's scheduled (upcoming) streams. **How it works:** a scheduled stream often opens its chat before it starts (the waiting room); with this option the YouTube Live Chat Scraper reads that chat like a live chat; a scheduled stream without an open chat is reported in the log. **Values:** true or false; default false. **Example:** `"includeUpcomingLives": true`. **Tip:** combine with `maxTimePerVideoSecs` to listen to the waiting room for a few minutes. **Combinations:** only for `channelRefs` with a mode that includes live streams.

##### `stopWhenStreamEnds` - stop or reconnect when a live chat ends

**What it does:** decides what happens when a live stream's chat ends before `maxTimePerVideoSecs`. **How it works:** with true (default) the YouTube Live Chat Scraper stops that stream at once and moves on; with false it waits 5 seconds and opens the stream again (up to twice), which catches streams that drop and restart. **Values:** true or false; default true. **Example:** `"stopWhenStreamEnds": false`. **Tip:** use false for long events with unstable streams. **Combinations:** only for live streams; replays end when the replay ends.

##### `pollIntervalMs` - how often a live chat is asked for new messages

**What it does:** sets the pause between two chat requests of a live stream. **How it works:** with 0 (default) the YouTube Live Chat Scraper waits the time YouTube itself asks for in every answer (1-10 seconds); a value above 0 replaces it (minimum 500 ms). **Values:** integer 0-60000 milliseconds; default 0. **Example:** `"pollIntervalMs": 2000`. **Tip:** asking more often than YouTube wants does not bring more messages - keep 0 unless you need a fixed rhythm. **Combinations:** only for live streams.

##### `minDelayMs` - minimum pause between requests

**What it does:** sets the minimum time between two requests on one connection. **How it works:** every connection keeps at least this pause (never less than 200 ms), which makes runs gentler on YouTube; replays are read page after page with this spacing. **Values:** integer 0-60000 milliseconds; default 0 (= 200 ms). **Example:** `"minDelayMs": 1000`. **Tip:** raise it only when the log shows refused pages. **Combinations:** applies to every stream and channel.

##### `requestTimeoutSecs` - timeout of one request

**What it does:** sets how long the YouTube Live Chat Scraper waits for one YouTube answer. **How it works:** a request that takes longer is dropped and retried, so a slow answer never blocks a stream. **Values:** integer 5-300 seconds; default 30. **Example:** `"requestTimeoutSecs": 20`. **Tip:** very low values (under 10) can drop slow but valid answers. **Combinations:** independent of the other options.

##### `language` - language of YouTube's texts

**What it does:** sets the language of YouTube's own texts in the rows (for example the membership event texts and timestamps as shown). **How it works:** every page and chat request is made in this language; chat messages themselves are always in the language their authors wrote. **Values:** a language code; default en. **Example:** `"language": "es"`. **Tip:** Super Chat amounts are parsed into `superChatAmountValue` and `superChatCurrency` in any language. **Combinations:** works with `regionCode`.

##### `regionCode` - regional setting

**What it does:** sets the country YouTube uses for the session. **How it works:** the code is sent with every request, so YouTube answers as for a visitor from that country; streams that are blocked in that country then show no chat. Empty = YouTube's default for the proxy location. **Values:** two-letter code, optional. **Example:** `"regionCode": "GB"`. **Tip:** most streams have the same chat everywhere. **Combinations:** independent of the proxy country.

##### `maxConcurrency` - streams read at the same time

**What it does:** sets how many streams the YouTube Live Chat Scraper reads in parallel. **How it works:** every stream gets its own connection and IP address, so several replays or live chats are collected together; with live streams the run time is about `maxTimePerVideoSecs` instead of the sum of all streams. **Values:** integer 1-20; default 5. **Example:** `"maxConcurrency": 10`. **Tip:** keep the default. **Combinations:** changes only the speed, never the rows or the price.

##### `proxyConfiguration` - proxy

**What it does:** chooses the proxy of the YouTube Live Chat Scraper. **How it works:** the default is Apify residential proxies in the United States; visitors from some countries (for example the EU) first see a consent page, which the US default avoids, and every channel gets its own IP session. **Values:** Apify proxy settings; default residential US. **Example:** `"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US"}`. **Tip:** keep the default unless you need another country. **Combinations:** independent of the other options.

#### Output of the scraper

Each dataset row of the YouTube Live Chat Scraper holds the fields below. A field is empty (null) only when YouTube does not publish that value for the item - the table says when that happens.

| Field | Description |
|---|---|
| `videoId` | Video id. |
| `videoTitle` | Video title. |
| `videoUrl` | Video URL. |
| `channelTitle` | Channel name. |
| `channelId` | Channel id. |
| `channelUrl` | Channel URL. |
| `isReplay` | True for replays of ended streams. |
| `streamStatus` | live or ended. |
| `seq` | Message number in this video. |
| `messageId` | Message id. |
| `eventType` | text, superChat, superSticker, membership, membershipGift, membershipGiftRedemption or moderation. |
| `messageText` | Message text (emoji as shortcuts). |
| `messageParts` | Text and emoji parts. |
| `authorName` | Author name. |
| `authorChannelId` | Author channel id. |
| `authorHandle` | Author @handle. |
| `authorPhotoUrl` | Author photo. |
| `authorProfileUrl` | Author channel URL. |
| `authorBadges` | Badges. *Empty when: the author has no badge (only owners, moderators, verified users and members have badges).* |
| `isOwner` | True for the channel owner. |
| `isModerator` | True for moderators. |
| `isVerified` | True for verified authors. |
| `isMember` | True for channel members. |
| `membershipLevel` | Member badge text. *Empty when: the author is not a channel member.* |
| `superChatAmount` | Super Chat amount as shown. *Empty when: the event is not a Super Chat or Super Sticker (paid events are rare: none occurred in the tested replay windows).* |
| `superChatAmountValue` | Amount as a number. *Empty when: the event is not a Super Chat or Super Sticker.* |
| `superChatCurrency` | Currency code. *Empty when: the event is not a Super Chat or Super Sticker.* |
| `superChatColor` | Super Chat colour. *Empty when: the event is not a Super Chat or Super Sticker.* |
| `stickerUrl` | Super Sticker image. *Empty when: the event is not a Super Sticker.* |
| `moderationAction` | What the moderator did. *Empty when: the row is not a moderation event (Include moderation events).* |
| `timestampUsec` | Time in microseconds. |
| `publishedAt` | Time (UTC). |
| `videoOffsetMsec` | Position in the video (ms, replays). *Empty when: live chats (offsets exist only in replays).* |
| `videoOffsetText` | Position in the video (e.g. 10:07). |
| `channelRef` | Channel input that found the stream. *Empty when: the row came from a video URL, not a channel.* |
| `message` | Same as messageText. |
| `messageType` | Same as eventType. |
| `type` | Same as eventType. |
| `timestampText` | Position text as YouTube shows it. |
| `offsetSeconds` | Position in seconds. |
| `offsetTimestamp` | Same as videoOffsetText. |
| `videoOffsetTimeMsec` | Same as videoOffsetMsec. |
| `source` | live or replay. |
| `stage` | chat. |
| `streamStartedAt` | Stream start. |
| `streamEndedAt` | Stream end. *Empty when: the stream is still live.* |
| `language` | Interface language of the session. |
| `regionCode` | Region of the session. |
| `discoveredAt` | When the stream was found. |
| `discoverySource` | video input or channel live tab. |
| `isDiscoveredLive` | True when the stream was live. |
| `isDiscoveredUpcoming` | False (upcoming streams have no chat). |
| `errorType` | Empty for messages. |
| `attempts` | Page loads needed for the video. |
| `runId` | Apify run id. |
| `retrievedAt` | When the message was read. |

Example YouTube Live Chat Scraper row (shortened):

```json
{
  "videoId": "DWcJFNfaw9c",
  "videoTitle": "lofi hip hop radio - beats to sleep/chill to",
  "channelTitle": "Lofi Girl",
  "isReplay": true,
  "seq": 1,
  "eventType": "text",
  "messageText": "hi",
  "authorName": "@pies841",
  "authorChannelId": "UCEI7aECJRtDQzXP3-ufVDAA",
  "publishedAt": "2020-02-25T19:07:57Z",
  "videoOffsetText": "0:00"
}
```

#### Which columns can be empty in the scraper

Measured on our latest test run (40 rows, run xnUahYAnZYhiXdZCb): every column that was empty on more than 10% of the rows, and why. A column is empty only when YouTube or Facebook does not publish the value for that row or the option that fills it is off.

- `authorBadges` (40 of 40 rows empty in the test): the author has no badge (only owners, moderators, verified users and members have badges).
- `membershipLevel` (40 of 40 rows empty in the test): the author is not a channel member.
- `moderationAction` (40 of 40 rows empty in the test): the row is not a moderation event (Include moderation events).
- `stickerUrl` (40 of 40 rows empty in the test): the event is not a Super Sticker.
- `superChatAmount` (40 of 40 rows empty in the test): the event is not a Super Chat or Super Sticker (paid events are rare: none occurred in the tested replay windows).
- `superChatAmountValue` (40 of 40 rows empty in the test): the event is not a Super Chat or Super Sticker.
- `superChatColor` (40 of 40 rows empty in the test): the event is not a Super Chat or Super Sticker.
- `superChatCurrency` (40 of 40 rows empty in the test): the event is not a Super Chat or Super Sticker.

#### The scraper vs. the top 5 YouTube Actors in the Apify Store

We compared the YouTube Live Chat Scraper with the five most used Store Actors of the same kind (Apify Store, November 2026) and built every feature that works without a login. "Top 5" = how many of those five offer the feature.

| Feature | Top 5 | YouTube Live Chat Scraper | Note |
|---|---|---|---|
| Video URLs / ids | 4/4 | Yes |  |
| Channels with live / replay discovery | 2/4 | Yes | channelDiscoveryMode, videosPerChannel, lookbackDays |
| Replay mode + live mode | 2/4 | Yes | mode (auto / replay / live) |
| Max messages per video (paginated) | 4/4 | Yes | 250 of 250 over 6 chat pages |
| Live capture time | 2/4 | Yes | maxTimePerVideoSecs |
| Replay start / end offsets | 1/4 | Yes | startOffsetSecs, endOffsetSecs (measured: start 600 s -> first message at 10:07) |
| Normal / Super Chat / membership / moderation switches | 3/4 | Yes |  |
| Max total items | 2/4 | Yes | maxTotalItems |
| Super Chat amount, value, currency, colour | 3/4 | Yes | parsed from YouTube's amount text; no Super Chat appeared in the tested chats |
| Author badges, member level, owner / moderator / verified flags | 3/4 | Yes |  |
| Top chat vs all messages | 1/4 | No | YouTube refuses the view-switch request logged out (HTTP 400, measured 2026-11-14); the stream's default view is returned |
| Upcoming streams | 1/4 | No | an upcoming stream has no chat yet - skipped (isDiscoveredUpcoming false) |
| Proxy configuration | 2/4 | Yes | residential US by default |

#### How much does the scraper cost?

The YouTube Live Chat Scraper uses pay-per-result pricing: you pay a small fee per dataset row plus the Apify platform usage of the run, and nothing for inputs that return no rows. On the Apify free plan (monthly free credit) you can run the YouTube Live Chat Scraper many times before paying anything. Measured on our test runs: 42 rows cost $0.0002 in platform usage; 250 rows cost $0.0019 in platform usage; 30 rows cost $0.0001 in platform usage; 250 rows cost $0.0001 in platform usage; 30 rows cost $0.0033 in platform usage.

**Price per result:** one result = one dataset row = one chat event. The YouTube Live Chat Scraper costs $1.49 per 1,000 results on the Apify Free plan, $1.39 per 1,000 on Starter, $1.29 per 1,000 on Scale and $1.19 per 1,000 on Business.

**Worked example:** 5,000 chat messages of one replay = 5,000 / 1,000 x $1.49 = **$7.45** on the Free plan; the same stream with only Super Chats and memberships (perhaps 150 rows) = **$0.22**, plus a fraction of a cent of platform usage (measured: 250 messages used $0.0019).

**How to cap the cost:** set `maxMessagesPerVideo` and `maxTotalItems`, read only the part of a replay you need with `startOffsetSecs` / `endOffsetSecs`, and turn off the event types you do not need; in Apify Console you can also set a maximum cost per run, and the YouTube Live Chat Scraper stops when it is reached. Measured limits: chats of members-only and private streams are not visible, streams with chat turned off have no chat, and logged out YouTube serves the stream's default chat view.

#### Use the scraper through the API

Start a run and read the rows - from the Apify API (cURL):

```bash
curl -X POST "https://api.apify.com/v2/acts/neuro-scraper~youtube-live-chat-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"channelRefs": ["@LofiGirl"], "maxMessagesPerVideo": 200}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("neuro-scraper/youtube-live-chat-scraper").call(
    run_input={"channelRefs": ["@LofiGirl"], "maxMessagesPerVideo": 200})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["eventType"], row["authorName"], row["messageText"])
```

Node.js (`npm install apify-client`):

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('neuro-scraper/youtube-live-chat-scraper').call({
    channelRefs: ['@LofiGirl'], maxMessagesPerVideo: 200 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'chat events');
```

#### Tips for the scraper

- For a long replay, use Replay start / end to read only the part you need.
- Schedule the YouTube Live Chat Scraper with a channel and "Live now" to catch every stream.
- Schedule the YouTube Live Chat Scraper (daily or hourly) in Apify Console to build a history and spot changes over time.
- Use the YouTube Live Chat Scraper with webhooks or the Apify API to push new rows into your CRM, Slack or a database automatically.
- Keep the default residential proxy: YouTube limits anonymous visitors per IP address, and the YouTube Live Chat Scraper switches IPs when needed.

#### Limits of the scraper

- Members-only chats and chats of private streams are not visible without an account.
- Logged out, YouTube returns the stream's default chat view; switching between Top chat and Live chat is refused (measured).
- Streams with chat turned off (e.g. NASA's streams in our check) have no chat to read.
- The YouTube Live Chat Scraper reads public data only. It never logs in and cannot see private, deleted or age-restricted content.

#### FAQ about the scraper

**Can the YouTube Live Chat Scraper read a chat after the stream ended?**

Yes - when the channel keeps the chat replay, the YouTube Live Chat Scraper reads it from the beginning, with each message's position in the video.

**How long does the YouTube Live Chat Scraper listen to a live stream?**

As long as "Live capture time" says (60 seconds by default), or until the message limit is reached.

**Why did the YouTube Live Chat Scraper return fewer messages than my maximum?**

A replay can simply have fewer messages, a live stream may be quiet during the capture time, the replay window (`startOffsetSecs` / `endOffsetSecs`) may be short, or the include options dropped event types. The log prints the number of messages per stream and why it stopped (end of replay, capture time reached, limit reached).

**Why is a field empty in the YouTube Live Chat Scraper output?**

Each event type fills its own columns: Super Chat amounts only on paid events, `stickerUrl` only on stickers, `membershipLevel` only for members, `videoOffsetMsec` only on replays (a live chat has no position in a finished video), `moderationAction` only on moderation rows.

**How do I get only new messages with the YouTube Live Chat Scraper?**

For a live stream every run reads only what arrives while it listens. For replays, note the last `offsetSeconds` you have and start the next run there with `startOffsetSecs`.

**Can I read many streams in one YouTube Live Chat Scraper run?**

Yes - add several `videoUrls` and `channelRefs`. Streams are read one after another, each up to `maxMessagesPerVideo`.

**Do I need a YouTube account to use the YouTube Live Chat Scraper?**

No. The YouTube Live Chat Scraper works without any YouTube account, cookie or login.

**Can I use the YouTube Live Chat Scraper through an API?**

Yes. Every run of the YouTube Live Chat Scraper can be started and read with the Apify API, the Python and Node.js clients, or no-code tools such as Make, Zapier and n8n.

**Can I export the YouTube Live Chat Scraper results to Excel or Google Sheets?**

Yes. The YouTube Live Chat Scraper dataset downloads as CSV, Excel (XLSX), JSON, XML or HTML, and the Google Sheets integration sends rows to a sheet after every run.

**Is it legal to use the YouTube Live Chat Scraper?**

The YouTube Live Chat Scraper collects publicly available data only. You are responsible for how you use it: personal data is protected by laws such as the GDPR, so only process it when you have a legitimate reason, and respect YouTube's terms for your use case. Ask a lawyer when unsure.

**What happens when an input fails in the YouTube Live Chat Scraper?**

The YouTube Live Chat Scraper logs an ERROR naming the input and the reason, continues with the next input, and lists the failed inputs in the final status message of the run.

**How fast is the YouTube Live Chat Scraper?**

The YouTube Live Chat Scraper paces its requests politely; measured runs above show typical times. Large jobs run in the background and you can close the browser.

#### Other Actors that work well with the scraper

- [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - public Facebook Reels with views, reactions, comments and video links.
- [YouTube Scraper](https://apify.com/neuro-scraper/youtube-comment-scraper)
- [Youtube Most Replayed Scraper](https://apify.com/neuro-scraper/youtube-most-replayed-scraper)
- [YouTube Community Posts Scraper](https://apify.com/neuro-scraper/youtube-community-posts-scraper)

#### Feedback on the scraper

Found a bug in the YouTube Live Chat Scraper, or missing a field? Open an issue on the YouTube Live Chat Scraper Issues tab in Apify Console and we will look at it quickly. Tell us which input you used and what you expected - it helps us improve the YouTube Live Chat Scraper for everyone.

### Why use the scraper

The YouTube Live Chat Scraper is a YouTube Live scraper and YouTube Live data extractor for anyone who needs public YouTube Live chat data as clean data. The YouTube Live Chat Scraper handles web scraping, proxy rotation and retries for you, so you get a ready dataset instead of raw pages. Use the YouTube Live Chat Scraper for market research, competitor analysis, lead generation, analytics or monitoring, and export the results to JSON, CSV, Excel or Google Sheets.

- No login and no code: the YouTube Live Chat Scraper runs on Apify with one click or one API call.
- Pay per result: the YouTube Live Chat Scraper charges only for rows delivered - no monthly YouTube Live API fee.
- Complete fields: the YouTube Live Chat Scraper returns every public field, with a stable schema for automation.
- Integrations: connect the YouTube Live Chat Scraper to Zapier, Make, n8n, Google Sheets, a webhook or your CRM.

### The scraper use cases

- Market research: the YouTube Live Chat Scraper collects YouTube Live chat data at scale, so you can compare trends across weeks and niches.
- Competitor analysis: run the YouTube Live Chat Scraper on a schedule and export the dataset to Google Sheets or Excel to watch what competitors publish.
- Lead generation and B2B prospecting: the YouTube Live Chat Scraper gives a sales or agency team a clean list to load into a CRM.
- Content and social media monitoring: the YouTube Live Chat Scraper keeps a fresh copy of YouTube Live data through an Apify schedule and a webhook.
- Analytics and dashboards: send the YouTube Live Chat Scraper output as JSON through the Apify API into Python, Node.js or a BI tool.
- Academic and data science projects: the YouTube Live Chat Scraper returns a consistent schema, ready for pandas, R or a notebook.
- Price, product and brand tracking: the YouTube Live Chat Scraper turns public YouTube Live data into a dataset you can diff run by run.
- Automation workflows: connect the YouTube Live Chat Scraper to Zapier, Make or n8n so every new row starts your next step.

### How to run it with the API, Python and Node.js

Start the YouTube Live Chat Scraper from the Apify Console, or call it from code. The YouTube Live Chat Scraper returns its dataset as JSON, CSV or Excel. With the Apify API you can run the YouTube Live Chat Scraper from Python or Node.js, wait for it to finish and read the rows, which makes the YouTube Live Chat Scraper easy to plug into an automation, a data pipeline or a scheduled export.

1. Open the YouTube Live Chat Scraper on Apify and fill in the input (or send the same input as JSON to the API).
2. Start the YouTube Live Chat Scraper. Follow the run log while the YouTube Live Chat Scraper collects public YouTube Live data.
3. Download the dataset as CSV, JSON, Excel or XLSX, or let a webhook send it on.
4. Schedule the YouTube Live Chat Scraper to keep your YouTube Live data fresh for monitoring and analytics.

### Tips for better results

- Start small: run the YouTube Live Chat Scraper with a low maximum first, check the fields, then scale up the same input.
- Split big jobs: several smaller YouTube Live Chat Scraper runs (by keyword, URL list or date) finish faster and are easier to resume.
- Keep a history: name a dataset or use a schedule so each YouTube Live Chat Scraper run adds to your YouTube Live data over time.
- Filter early: use the input filters of the YouTube Live Chat Scraper so you only pay for the YouTube Live chat data you really need.
- Automate the hand-off: a webhook or the Zapier and Make integrations can move every YouTube Live Chat Scraper result straight to Google Sheets, a CRM or a database.
- Watch the run log: the YouTube Live Chat Scraper writes what it is doing and why an item was skipped, so a surprising result is easy to explain.

### The scraper FAQ

### Get started

Open the YouTube Live Chat Scraper, paste your input and press Start. In a few minutes the YouTube Live Chat Scraper hands you clean YouTube Live data as JSON, CSV or Excel, ready for analytics, monitoring, research or your CRM. Questions or a missing field? Write to us from the YouTube Live Chat Scraper page on Apify - we answer fast and add features users ask for.

### More scrapers from Neuro Scraper

| Actor | What it extracts |
|---|---|
| ⭐ **[Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** | Facebook Reels with exact views, plays, every reaction type, comments and shares |
| [Snapchat Profile Scraper](https://apify.com/neuro-scraper/snapchat-profile-scraper) | Snapchat profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Scraper](https://apify.com/neuro-scraper/amazon-keyword-scraper) | Amazon data with all public fields, exported to JSON, CSV or Excel |
| [Instagram Reels Scraper](https://apify.com/neuro-scraper/instagram-reels-scraper) | Instagram reels with all public fields, exported to JSON, CSV or Excel |
| [Facebook Video Details Scraper](https://apify.com/neuro-scraper/facebook-video-details-scraper) | Facebook video details with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Scraper Advanced](https://apify.com/neuro-scraper/facebook-reels-scraper-advanced) | Facebook reels  advanced data with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Downloader](https://apify.com/neuro-scraper/facebook-reels-downloader) | Facebook reels with all public fields, exported to JSON, CSV or Excel |
| [Instagram Search Scraper](https://apify.com/neuro-scraper/instagram-video-scraper-advanced) | Instagram search data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Video Details Scraper](https://apify.com/neuro-scraper/tiktok-video-details-scraper) | TikTok video details with all public fields, exported to JSON, CSV or Excel |
| [Instagram Hashtag Scraper](https://apify.com/neuro-scraper/instagram-reeel-scraper) | Instagram hashtag data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Profile Scraper](https://apify.com/neuro-scraper/tiktok-profile-scraper) | TikTok profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Best Sellers Scraper](https://apify.com/neuro-scraper/amazon-per-result-scraper) | Amazon best sellers with all public fields, exported to JSON, CSV or Excel |
| [Facebook Photos Scraper](https://apify.com/neuro-scraper/facebook-photo-posts-scraper) | Facebook photos with all public fields, exported to JSON, CSV or Excel |

# Actor input Schema

## `videoUrls` (type: `array`):

YouTube live streams (live now) or ended streams with a chat replay, as URLs or video ids, one per line.

## `channelRefs` (type: `array`):

Channels as @handle or channel URL: their live stream (if live now) and recent stream replays are found automatically.

## `channelDiscoveryMode` (type: `string`):

For channels: which streams to read.

## `videosPerChannel` (type: `integer`):

For channels: how many streams to read (live now first, then the newest replays).

## `lookbackDays` (type: `integer`):

For channels: skip replays older than this many days. 0 = no limit.

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

Auto reads the live chat of a stream that is live now and the chat replay of an ended stream.

## `maxMessagesPerVideo` (type: `integer`):

How many chat events to return per stream. Replays are read page after page from the start; live chats are read as they arrive.

## `maxTimePerVideoSecs` (type: `integer`):

Live streams only: how long to keep collecting new messages.

## `startOffsetSecs` (type: `integer`):

Replays only: start reading at this second of the stream.

## `endOffsetSecs` (type: `integer`):

Replays only: stop at this second of the stream.

## `includeNormalMessages` (type: `boolean`):

Include ordinary chat messages.

## `includeSuperChats` (type: `boolean`):

Include paid messages and stickers with amount and currency.

## `includeMembershipEvents` (type: `boolean`):

Include new members, milestones and gifted memberships.

## `includeModerationEvents` (type: `boolean`):

Include deleted / removed messages (as YouTube shows them in the chat).

## `maxTotalItems` (type: `integer`):

Stops the whole run after this many dataset rows.

## `messageTypes` (type: `string`):

Quick choice of event types: all = the include options below decide; paid = Super Chats, Super Stickers and memberships only; text = ordinary messages only.

## `includeUpcomingLives` (type: `boolean`):

For channels: also read the waiting-room chat of scheduled streams that have not started yet.

## `stopWhenStreamEnds` (type: `boolean`):

Live streams: stop reading when YouTube ends the live chat. Off = reconnect (up to twice) when a stream ends before the capture time, e.g. after a short drop.

## `pollIntervalMs` (type: `integer`):

Live streams: time between two chat requests. 0 = the interval YouTube asks for (1-10 s).

## `minDelayMs` (type: `integer`):

Minimum time between two requests of one connection (at least 200 ms).

## `requestTimeoutSecs` (type: `integer`):

Maximum time to wait for one YouTube request.

## `language` (type: `string`):

Language code for YouTube's texts (en, es, de ...).

## `regionCode` (type: `string`):

Optional two-letter country code (US, GB, IN ...) for YouTube's regional settings.

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

How many streams are read at the same time, each on its own connection.

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

Residential proxies in the United States (the default) give the most reliable results: visitors from some countries (e.g. the EU) first get a consent page.

## Actor input object example

```json
{
  "videoUrls": [],
  "channelRefs": [
    "@LofiGirl"
  ],
  "channelDiscoveryMode": "current_live_then_replays",
  "videosPerChannel": 1,
  "lookbackDays": 0,
  "mode": "auto",
  "maxMessagesPerVideo": 200,
  "maxTimePerVideoSecs": 60,
  "startOffsetSecs": 0,
  "endOffsetSecs": 0,
  "includeNormalMessages": true,
  "includeSuperChats": true,
  "includeMembershipEvents": true,
  "includeModerationEvents": false,
  "maxTotalItems": 0,
  "messageTypes": "all",
  "includeUpcomingLives": false,
  "stopWhenStreamEnds": true,
  "pollIntervalMs": 0,
  "minDelayMs": 0,
  "requestTimeoutSecs": 30,
  "language": "en",
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, in the run's default dataset.

# 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 = {
    "videoUrls": [],
    "channelRefs": [
        "@LofiGirl"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/youtube-live-chat-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 = {
    "videoUrls": [],
    "channelRefs": ["@LofiGirl"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/youtube-live-chat-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 '{
  "videoUrls": [],
  "channelRefs": [
    "@LofiGirl"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call neuro-scraper/youtube-live-chat-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/youtube-live-chat-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/AMvS3wgzu4lsRGvij/builds/fQlV3hc0xyEbzeo3A/openapi.json
