{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Super Chat Scraper - Donations, Members & Live Chat",
    "description": "Scrape YouTube Super Chats, Super Stickers and memberships from any stream: amount, currency, converted total, tier, donor, message and time. Reads the full chat replay of ended streams and follows live streams. A summary row per stream adds up totals and top supporters.",
    "version": "0.1",
    "x-build-id": "0s1cJ7R4qh3MgUSjd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~youtube-super-chat-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-youtube-super-chat-scraper",
        "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/neverempty~youtube-super-chat-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-youtube-super-chat-scraper",
        "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/neverempty~youtube-super-chat-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-youtube-super-chat-scraper",
        "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",
        "properties": {
          "videos": {
            "title": "YouTube streams",
            "type": "array",
            "description": "Streams to read: a video link (youtube.com/watch?v=..., youtu.be/..., youtube.com/live/...), an 11-character video id, or a channel (@handle, UC... id or channel URL) to read the stream that channel is live with right now. An ended stream returns its whole chat replay; a live stream is read for up to 'Minutes to follow a live stream'. Up to 200 per run; the same video written twice is read once. If you leave this empty, the example stream in the prefill is read.",
            "items": {
              "type": "string"
            }
          },
          "include": {
            "title": "Which chat messages to return",
            "enum": [
              "paid",
              "paid-and-members",
              "all"
            ],
            "type": "string",
            "description": "paid = Super Chats and Super Stickers only (amount, currency, converted amount, tier, who sent it, message and time). paid-and-members = also new memberships, membership milestones, gifted memberships and who received a gift. all = every chat message, including normal text messages. The per-stream summary always counts every type.",
            "default": "paid-and-members"
          },
          "includeSummary": {
            "title": "Add one summary row per stream",
            "type": "boolean",
            "description": "On = after each stream's messages, one row with the total per currency, the total converted to one currency, the number of Super Chats, Super Stickers, new members, milestones and gifted memberships, and the top 10 supporters by amount. The summary is one charged row per stream.",
            "default": true
          },
          "convertTo": {
            "title": "Currency to convert amounts to",
            "type": "string",
            "description": "3-letter currency code (USD, EUR, JPY, GBP, ...). Every Super Chat keeps its original amount and currency, and convertedAmount gives it in this currency at the day's exchange rate, so a stream with dozens of currencies can be added up. If the rates cannot be loaded, convertedAmount is left empty rather than guessed.",
            "default": "USD"
          },
          "maxMessagesPerVideo": {
            "title": "Maximum rows per stream",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops reading a stream after this many rows of the chosen types have been returned for it; the summary then says it covers only part of the chat. A long stream can have tens of thousands of chat messages, so with 'every chat message' this is the cost cap per stream.",
            "default": 10000
          },
          "liveMinutes": {
            "title": "Minutes to follow a live stream",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "For a stream that is live right now, how long to keep reading new chat messages (up to 720 minutes = 12 hours). Reading stops earlier if the stream ends. Messages sent before the run started are not returned for a live stream; to get the whole chat, run the same video link after the stream has ended. Ended streams ignore this setting.",
            "default": 10
          },
          "useProxy": {
            "title": "Use a proxy if YouTube answers with a bot check or a rate limit",
            "type": "boolean",
            "description": "Every request goes out directly first. If YouTube answers with a bot check, a consent page, a rate limit or an empty response, this switches to a proxy session and tries again. With it off, that answer is returned as a free 'blocked' row and no proxy is paid for.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}