{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitch Scraper — Channels, Streams, Clips & VODs",
    "description": "Twitch scraper and API: channel profiles with followers, socials and live status, top live streams, top games, clips and VODs. No login, pay per result.",
    "version": "0.1",
    "x-build-id": "KdZZdQldCcQuF6ORz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/innolabs~twitch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-innolabs-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/innolabs~twitch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-innolabs-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/innolabs~twitch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-innolabs-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 channels as login (shroud), @login or channel link (https://www.twitch.tv/shroud). Each channel gives one channel record plus its clips and videos, up to the limits below.",
            "items": {
              "type": "string"
            }
          },
          "includeChannelProfiles": {
            "title": "Include channel records",
            "type": "boolean",
            "description": "One channel record per channel: followers, partner/affiliate, live stream (title, viewers, game), last broadcast, language, panel links, images. Turn off to get clips/videos only.",
            "default": true
          },
          "maxClipsPerChannel": {
            "title": "Max clips per channel",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Most viewed clips of each channel in the clip period (Twitch serves up to 100). Set 0 to skip clips.",
            "default": 20
          },
          "clipPeriod": {
            "title": "Clip period",
            "enum": [
              "LAST_DAY",
              "LAST_WEEK",
              "LAST_MONTH",
              "ALL_TIME"
            ],
            "type": "string",
            "description": "Time range for the most viewed clips.",
            "default": "LAST_WEEK"
          },
          "maxVideosPerChannel": {
            "title": "Max videos (VODs) per channel",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Newest videos of each channel, newest first (Twitch serves up to 100). Set 0 to skip videos.",
            "default": 20
          },
          "videoType": {
            "title": "Video type",
            "enum": [
              "ALL",
              "ARCHIVE",
              "HIGHLIGHT",
              "UPLOAD"
            ],
            "type": "string",
            "description": "Which videos to list: all, past broadcasts, highlights or uploads.",
            "default": "ALL"
          },
          "searchQueries": {
            "title": "Channel search queries",
            "type": "array",
            "description": "Keywords to find channels (like the Twitch search box). Each query gives up to Max channels per search channel records.",
            "items": {
              "type": "string"
            }
          },
          "maxChannelsPerSearch": {
            "title": "Max channels per search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Channel records per search query (up to 100).",
            "default": 20
          },
          "games": {
            "title": "Games / categories",
            "type": "array",
            "description": "Game or category names (Just Chatting, VALORANT), slugs (just-chatting) or category links (https://www.twitch.tv/directory/category/valorant). Each gives its live streams, most viewers first.",
            "items": {
              "type": "string"
            }
          },
          "maxStreamsPerGame": {
            "title": "Max streams per game",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Live streams per game or category, most viewers first (Twitch serves up to 100).",
            "default": 50
          },
          "topStreams": {
            "title": "Top live streams",
            "type": "boolean",
            "description": "Add the most watched live streams on Twitch right now (one list per language when Languages is set).",
            "default": false
          },
          "maxTopStreams": {
            "title": "Max top streams (per language)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Top live streams per language (Twitch serves up to 30).",
            "default": 30
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Stream language filter as ISO 639-1 codes (en, de, es, ja…). Applies to game streams and top streams. Empty = all languages.",
            "items": {
              "type": "string"
            }
          },
          "topGames": {
            "title": "Top games",
            "type": "boolean",
            "description": "Add the most watched games and categories right now with viewers, live channels and followers.",
            "default": false
          },
          "maxGames": {
            "title": "Max top games",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Top games and categories (up to 100).",
            "default": 50
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on records (all types together) for the whole run. The run stops cleanly when reached and you are never charged above it.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy for Twitch requests. The default Apify Proxy works; failed requests are retried on a new IP automatically.",
            "default": {
              "useApifyProxy": true
            }
          },
          "debug": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Log retries.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}