# Twitch Live Chat Messages

**Use case:** 

Collect up to 100 visible messages from a public Twitch channel that is live now and save them with timing and sender details in a dataset.

## Input

```json
{
  "target": "live",
  "vodUrls": [
    {
      "url": "https://www.twitch.tv/videos/123456789"
    }
  ],
  "vodStartOffsetSeconds": 300,
  "liveChannel": "twitch",
  "liveMaxMessages": 100,
  "channelIds": [
    "channel_name"
  ],
  "channelMaxVods": 5,
  "maxMessagesPerVod": 10000
}
```

## Output

```json
{
  "collectionMode": {
    "label": "Mode",
    "format": "string"
  },
  "source.type": {
    "label": "Source type",
    "format": "string"
  },
  "source.id": {
    "label": "Source ID",
    "format": "string"
  },
  "source.channel": {
    "label": "Channel",
    "format": "string"
  },
  "source.game": {
    "label": "Game",
    "format": "string"
  },
  "source.title": {
    "label": "Source title",
    "format": "string"
  },
  "source.url": {
    "label": "Source URL",
    "format": "string"
  },
  "sentAt": {
    "label": "Sent at",
    "format": "string"
  },
  "streamOffsetSeconds": {
    "label": "Stream offset (seconds)",
    "format": "number"
  },
  "sender.displayName": {
    "label": "Sender",
    "format": "string"
  },
  "sender.username": {
    "label": "Username",
    "format": "string"
  },
  "text": {
    "label": "Message",
    "format": "string"
  },
  "sender.isSubscriber": {
    "label": "Subscriber",
    "format": "boolean"
  },
  "sender.badges": {
    "label": "Badges",
    "format": "array"
  },
  "emotes": {
    "label": "Emotes",
    "format": "array"
  },
  "event.messageType": {
    "label": "Message type",
    "format": "string"
  },
  "event.bits": {
    "label": "Bits",
    "format": "integer"
  }
}
```

## About this Actor

This example demonstrates how to use [Twitch Chat Scraper](https://apify.com/maximedupre/twitch-chat) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/twitch-chat) to learn more, explore other use cases, and run it yourself.