{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitch Channel Stats Scraper - Followers, VODs & Clips Monitor",
    "description": "Get exact follower counts, recent videos (VODs), top clips, bio, social links and live status for any list of Twitch channels. Turn on monitoring and schedule it: each run returns only the follower change since last time and the new videos and clips.",
    "version": "0.1",
    "x-build-id": "Furjc08GWKugweeJ6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~twitch-channel-stats-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-twitch-channel-stats-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~twitch-channel-stats-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-twitch-channel-stats-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~twitch-channel-stats-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-twitch-channel-stats-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": "Twitch channels",
            "type": "array",
            "description": "Channels to read: name, @name, or a channel URL (https://www.twitch.tv/name, with or without the scheme). Names are sent in lower case and duplicates are read once. Up to 1,000 per run. If you leave this empty, the example channels shroud and pokimane are read and every row says so in inputChannel.",
            "items": {
              "type": "string"
            }
          },
          "maxChannels": {
            "title": "Maximum rows to return",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many charged rows to return in total when monitoring is off: reading stops once this many channels have been read, and a free row says how many were not read. In monitoring mode it does not limit the changes returned - every change among the channels read comes back.",
            "default": 100
          },
          "maxVideos": {
            "title": "Recent videos per channel",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many of the channel's newest videos to include in recentVideos (title, date, length, views, category, link, thumbnail). 0 leaves videos out. The row price is the same whatever you choose.",
            "default": 5
          },
          "videoType": {
            "title": "Video type",
            "enum": [
              "ARCHIVE",
              "HIGHLIGHT",
              "UPLOAD",
              "ALL"
            ],
            "type": "string",
            "description": "Which videos to list: past broadcasts (ARCHIVE), highlights (HIGHLIGHT), uploads (UPLOAD), or all of them together (ALL).",
            "default": "ARCHIVE"
          },
          "maxClips": {
            "title": "Top clips per channel",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many of the channel's most-viewed clips in the chosen period to include in topClips (title, views, date, length, category, link, thumbnail). 0 leaves clips out.",
            "default": 5
          },
          "clipPeriod": {
            "title": "Clip period",
            "enum": [
              "LAST_DAY",
              "LAST_WEEK",
              "LAST_MONTH",
              "ALL_TIME"
            ],
            "type": "string",
            "description": "The period the top clips are taken from, most viewed first.",
            "default": "LAST_WEEK"
          },
          "monitoringMode": {
            "title": "Monitoring mode: return a channel only when it changed since the last run",
            "type": "boolean",
            "description": "Off = every channel you listed comes back with its current numbers, charged per row. On = the Actor remembers each channel's follower count, videos and clips, and on later runs returns a channel only when it changed, with the follower change since the last run (count, percent and per day) and the new videos and new clips. The first run returns every channel once to set the baseline. **In monitoring mode every channel checked costs $0.30 per 1,000 checks, changed or not** (names Twitch returns nothing for and bot checks are free), plus the row price for the rows returned. Example: 200 channels once a day = 6,000 checks a month = $1.80. The Actor reads only as many channels as the run's maximum total charge can pay for with a check and a change row each. The values are remembered per channel; do not put the same channel in two schedules that can run at the same time.",
            "default": false
          },
          "monitorMode": {
            "title": "What counts as a change",
            "enum": [
              "any-change",
              "follower-change",
              "new-content"
            ],
            "type": "string",
            "description": "any-change = the follower count moved by at least the minimum below, or a new video or a new clip appeared. follower-change = only the follower count. new-content = only new videos and new clips.",
            "default": "any-change"
          },
          "minFollowerChange": {
            "title": "Minimum follower change",
            "minimum": 1,
            "type": "integer",
            "description": "In monitoring mode, a follower count change smaller than this (up or down) does not count as a change by itself. 1 = any change.",
            "default": 1
          },
          "resetMonitoringState": {
            "title": "Forget what was remembered and start over",
            "type": "boolean",
            "description": "Clears every remembered value for this Actor, so the next monitoring run returns each channel once again as a first check. This affects all your monitoring runs, because the values are stored per channel rather than per list.",
            "default": false
          },
          "useProxy": {
            "title": "Use a proxy if Twitch answers with a bot check or a rate limit",
            "type": "boolean",
            "description": "Every request goes out directly first. If Twitch answers with a bot check, a rate limit or an empty response, this switches to a proxy session and tries again, up to 3 attempts in all. With it off, that answer is returned as free 'blocked' rows 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}