{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitch Scraper — Channels, Streams, VODs, Clips & Chat",
    "description": "Scrape Twitch channels (followers, live status, bio, About panels, team), live streams by category, VODs with chapters, clips, stream schedules, emotes, top categories, channel search and VOD chat replay. No Twitch login or API key.",
    "version": "0.1",
    "x-build-id": "hmiwM8tEQBdpuYeSL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/powernaner~twitch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-powernaner-twitch-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/powernaner~twitch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-powernaner-twitch-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/powernaner~twitch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-powernaner-twitch-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": {
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Twitch usernames or channel URLs, e.g. shroud or https://www.twitch.tv/shroud. One per line.",
            "items": {
              "type": "string"
            }
          },
          "includeVideos": {
            "title": "Include VODs",
            "type": "boolean",
            "description": "Past broadcasts, highlights and uploads of each channel, newest first, with views, duration and chapter markers (category changes inside the VOD).",
            "default": true
          },
          "videoType": {
            "title": "VOD type",
            "enum": [
              "all",
              "archive",
              "highlight",
              "upload"
            ],
            "type": "string",
            "description": "Which kind of video to collect.",
            "default": "all"
          },
          "includeClips": {
            "title": "Include clips",
            "type": "boolean",
            "description": "Most viewed clips of each channel in the period below, with views, creator (curator) and position in the source VOD.",
            "default": true
          },
          "clipsPeriod": {
            "title": "Clips period",
            "enum": [
              "24h",
              "7d",
              "30d",
              "all"
            ],
            "type": "string",
            "description": "Twitch ranks clips by views inside this window.",
            "default": "7d"
          },
          "includeSchedule": {
            "title": "Include stream schedule",
            "type": "boolean",
            "description": "Upcoming (and this week's) scheduled streams: start and end time, title, category, cancellations. Channels without a schedule return nothing here.",
            "default": true
          },
          "includePanels": {
            "title": "Include About panels",
            "type": "boolean",
            "description": "The About section panels (title, text, link, image), inside each channel row. Often holds sponsor links and business contact.",
            "default": true
          },
          "includeEmotes": {
            "title": "Include emotes",
            "type": "boolean",
            "description": "Channel subscriber emotes with tier and image URL. One row per emote: a big channel can have 50+.",
            "default": false
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Each keyword is a separate search, e.g. valorant or speedrun. Twitch returns up to about 1,000 channels per keyword.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Category names or URLs, e.g. Counter-Strike, Just Chatting or https://www.twitch.tv/directory/category/valorant.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Stream languages",
            "type": "array",
            "description": "Only live streams in these languages. Two-letter codes, e.g. en, pt, es. Twitch matches the channel language OR a language tag on the stream, so a few results may show another `language` (a channel set to English with a Português tag). Twitch lists about 100 streams per query: to go past 100 in one category, add 2 or more languages.",
            "items": {
              "type": "string"
            }
          },
          "includeTopCategories": {
            "title": "Top categories ranking",
            "type": "boolean",
            "description": "The most watched categories on Twitch right now (up to 100), with live viewers, followers and number of live channels.",
            "default": false
          },
          "chatReplayVideoIds": {
            "title": "VODs for chat replay",
            "type": "array",
            "description": "VOD IDs or URLs, e.g. https://www.twitch.tv/videos/2926861047. Busy streams have tens of thousands of messages: use the limit below.",
            "items": {
              "type": "string"
            }
          },
          "maxChatMessagesPerVideo": {
            "title": "Max chat messages per VOD",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop each chat replay after this many messages.",
            "default": 1000
          },
          "maxItemsPerSource": {
            "title": "Max items per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap per channel (VODs, clips), per search keyword and per category. Twitch serves at most ~100 per query; above 100 the Actor combines extra queries (other VOD types and sort orders, shorter clip periods, one query per language) and tells you in the run summary when it could not reach your number.",
            "default": 50
          },
          "maxItems": {
            "title": "Max items per run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many rows. 0 = no limit (the spending limit you set on the run still applies).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel sources. Requests to Twitch are spaced out regardless, so raising this rarely makes the run faster.",
            "default": 3
          },
          "healthCheck": {
            "title": "Health check (internal)",
            "type": "boolean",
            "description": "Internal: daily monitoring run used by the Actor's maintainers. Collects nothing for you and charges nothing.",
            "default": false
          },
          "healthCheckSimulateFailure": {
            "title": "Simulate health check failure (internal)",
            "type": "boolean",
            "description": "Internal: used to test the monitoring alert.",
            "default": false
          },
          "diagnose": {
            "title": "Diagnose (internal)",
            "type": "boolean",
            "description": "Internal: tests which Twitch fields respond from where the Actor runs. Collects nothing for you and charges nothing.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}