{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitch VOD Chat Replay, Emote Catalog & Team Roster",
    "description": "Download a Twitch VOD's full chat replay with per-minute activity aggregates, list a channel's subscriber and follower emotes, and export Twitch team rosters. Cookieless, with time-window, keyword and badge filters.",
    "version": "1.0",
    "x-build-id": "YXRY87aO77hhiTxV0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~twitch-vod-chat-replay-emotes-teams/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-twitch-vod-chat-replay-emotes-teams",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/xyrelith-data~twitch-vod-chat-replay-emotes-teams/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-twitch-vod-chat-replay-emotes-teams",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/xyrelith-data~twitch-vod-chat-replay-emotes-teams/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-twitch-vod-chat-replay-emotes-teams",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "vodChat",
              "channelChat",
              "emotes",
              "teams"
            ],
            "type": "string",
            "description": "What to extract.",
            "default": "channelChat"
          },
          "vodIds": {
            "title": "VOD IDs or URLs",
            "type": "array",
            "description": "(mode=vodChat) Twitch VOD IDs or full URLs, e.g. `2926946185` or `https://www.twitch.tv/videos/2926946185`.",
            "items": {
              "type": "string"
            }
          },
          "channelLogins": {
            "title": "Channel logins",
            "type": "array",
            "description": "(mode=channelChat, emotes) Channel logins or URLs, e.g. `shroud` or `https://www.twitch.tv/shroud`. Used as the channel for the emote catalog and as the VOD source in channel chat mode.",
            "items": {
              "type": "string"
            }
          },
          "teamNames": {
            "title": "Team names",
            "type": "array",
            "description": "(mode=teams) Twitch team names or team URLs, e.g. `nrg` or `https://www.twitch.tv/team/nrg`.",
            "items": {
              "type": "string"
            }
          },
          "maxVodsPerChannel": {
            "title": "Max VODs per channel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "(mode=channelChat) How many matching VODs to read per channel.",
            "default": 5
          },
          "vodType": {
            "title": "VOD type",
            "enum": [
              "ARCHIVE",
              "HIGHLIGHT",
              "UPLOAD",
              "ALL"
            ],
            "type": "string",
            "description": "(mode=channelChat) Which kind of VOD to select. Highlights and uploads often have no chat replay.",
            "default": "ARCHIVE"
          },
          "vodPublishedAfter": {
            "title": "VOD published after",
            "type": "string",
            "description": "(mode=channelChat) Optional earliest VOD date, inclusive, in `YYYY-MM-DD` format (UTC)."
          },
          "vodPublishedBefore": {
            "title": "VOD published before",
            "type": "string",
            "description": "(mode=channelChat) Optional latest VOD date, inclusive, in `YYYY-MM-DD` format (UTC)."
          },
          "startOffsetSeconds": {
            "title": "Start offset (seconds)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "(mode=vodChat, channelChat) Skip chat before this many seconds into each VOD.",
            "default": 0
          },
          "endOffsetSeconds": {
            "title": "End offset (seconds)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "(mode=vodChat, channelChat) Stop after this many seconds into each VOD. Leave empty to read to the end."
          },
          "keywords": {
            "title": "Keyword filter",
            "type": "array",
            "description": "(mode=vodChat, channelChat) Keep only messages containing at least one of these words (or all of them when match mode is ALL). Leave empty to keep every message.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "ANY",
              "ALL"
            ],
            "type": "string",
            "description": "(mode=vodChat, channelChat) Whether one keyword or every keyword must appear in the message.",
            "default": "ANY"
          },
          "includeSystemMessages": {
            "title": "Include system messages",
            "type": "boolean",
            "description": "(mode=vodChat, channelChat) Keep subscription, gift, raid, watch-streak and moderation notices. Turn off to keep only viewer-authored messages.",
            "default": true
          },
          "includeBadges": {
            "title": "Include badges",
            "type": "boolean",
            "description": "(mode=vodChat, channelChat) Add chat badges and subscriber, moderator, VIP and bits flags to each message.",
            "default": true
          },
          "includeAggregates": {
            "title": "Include per-minute aggregates",
            "type": "boolean",
            "description": "(mode=vodChat, channelChat) Add one extra row per minute with message count, unique chatters and top emotes. Useful for finding highlight moments.",
            "default": false
          },
          "includeGlobalEmotes": {
            "title": "Include global emotes",
            "type": "boolean",
            "description": "(mode=emotes) Also return Twitch's global emote catalog alongside each channel's subscriber and follower emotes.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum primary rows to save: chat messages (vodChat, channelChat), emote rows (emotes), or team rows (teams). Minute aggregates are additional rows.",
            "default": 1000
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}