{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitch Scraper - Streams, Channels, Clips & VODs",
    "description": "Scrape Twitch streams, channels, clips and VODs for streamer discovery, sponsorship research and game trend tracking: live viewer counts, partner status, socials and clips by category. No login.",
    "version": "0.1",
    "x-build-id": "sXmu2vye0JsO6QT1J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewise~twitch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewise-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/scrapewise~twitch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewise-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/scrapewise~twitch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewise-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "channels",
              "liveStreams",
              "clips",
              "videos",
              "categories",
              "search",
              "channel",
              "topStreams",
              "gameStreams",
              "topGames",
              "searchChannels",
              "channel_videos",
              "top_games",
              "live_streams"
            ],
            "type": "string",
            "description": "What each row is. Channel profiles: followers, partner status, bio, social links and live status, one row per channel. Live streams now: ranked by viewers, filtered by category, language, viewers and tags. Clips and VODs: per channel (or per category for clips). Categories: the directory with live viewers and broadcasters. Search: channels matching keywords, with full profiles. The lowercase/underscore names (channel, top_games...) are aliases used by other Twitch scrapers. API calls without mode return channel profiles.",
            "default": "channels"
          },
          "channelNames": {
            "title": "Channels",
            "type": "array",
            "description": "Channels for 'Channel profiles', 'VODs' and 'Clips', one per line, in any form: ibai, @ibai, twitch.tv/ibai or https://www.twitch.tv/ibai. Up to 30 profiles are read per request. Logins that do not exist come back as free CHANNEL_NOT_FOUND rows. Empty = ibai and kaicenat.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "For 'Search channels': keywords, one per line, such as valorant or gta rp. Each keyword returns up to 100 matching channels (capped by 'Max results'), each with the full profile: followers, socials and live status. Ignored by the other modes.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories (games)",
            "type": "array",
            "description": "Category slugs as they appear in the Twitch URL, one per line: just-chatting, grand-theft-auto-v, league-of-legends, or a full twitch.tv/directory/category/... link. Filters 'Live streams' and 'Clips'; in 'Categories' mode returns these categories with live viewers. Empty = the whole directory. Gambling categories return a free CATEGORY_NOT_SUPPORTED row.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Stream languages",
            "type": "array",
            "description": "For 'Live streams': two-letter stream language codes, one per line: en, es, pt, de, fr, ja, ko, ru, tr. Empty = all languages. Each language is a separate query, so three languages can return up to three times the streams. Twitch filters by the language set on the channel.",
            "items": {
              "type": "string"
            }
          },
          "minViewers": {
            "title": "Minimum viewers",
            "minimum": 0,
            "type": "integer",
            "description": "For 'Live streams': drop streams with fewer current viewers than this, for example 10 to skip the long tail of empty streams. Dropped streams are not delivered and not charged. Default 0 keeps every stream.",
            "default": 0
          },
          "tags": {
            "title": "Stream tags",
            "type": "array",
            "description": "For 'Live streams': keep only streams carrying at least one of these Twitch tags, one per line, case insensitive: Speedrun, DropsEnabled, English. Empty = no tag filter. Streams removed here are not charged.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort live streams",
            "enum": [
              "viewers",
              "recent"
            ],
            "type": "string",
            "description": "For 'Live streams'. 'Most viewers first' (default) returns the biggest streams. 'Most recently started first' asks Twitch for the newest streams, which are usually small channels with few viewers; useful for discovering new streamers.",
            "default": "viewers"
          },
          "clipSort": {
            "title": "Sort clips",
            "enum": [
              "views",
              "trending"
            ],
            "type": "string",
            "description": "For 'Clips'. 'Most viewed in the period' (default) ranks clips by views inside 'Clip period'. 'Trending right now' follows Twitch's trending order, the closest thing to newest, since Twitch does not sort clips by creation date.",
            "default": "views"
          },
          "clipPeriod": {
            "title": "Clip period",
            "enum": [
              "day",
              "week",
              "month",
              "all"
            ],
            "type": "string",
            "description": "For 'Clips': the time window Twitch applies to the clip list: last 24 hours, last 7 days (default), last 30 days or all time. With 'Only new items' on a daily schedule, use 24 hours or 7 days.",
            "default": "week"
          },
          "videoType": {
            "title": "Video type",
            "enum": [
              "archive",
              "highlight",
              "upload",
              "all"
            ],
            "type": "string",
            "description": "For 'VODs': which videos of the channel to return. Past broadcasts (default) are the recorded streams and expire after 7 to 60 days depending on the channel's Twitch plan; highlights and uploads stay. 'All types' returns the three.",
            "default": "archive"
          },
          "includeSocials": {
            "title": "Include social links",
            "type": "boolean",
            "description": "For 'Channel profiles' and 'Search': fetch the YouTube, X, Instagram, TikTok and Discord links the streamer published. A batch of 30 channels that comes back without them is retried once (no extra charge to you). On by default; turn off to skip social links.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "For 'VODs' and 'Clips': rows per channel or category, at most 100 (a Twitch limit). For 'Live streams', 'Categories' and 'Search': total rows for the run (search is capped at 100 per keyword). Ignored by 'Channel profiles', which returns one row per channel. Each row costs US$ 0.0025 on the Free plan, so 30 (default) costs US$ 0.075.",
            "default": 30
          },
          "onlyNew": {
            "title": "Only new items since the last run",
            "type": "boolean",
            "description": "For 'VODs', 'Clips' and 'Live streams' on a schedule. Remembers what each channel, category or live filter already delivered (Key-Value Store 'twitch-scraper-only-new' in your account) and skips it next time: skipped items are free and do not count toward 'Max results'. The first run marks a channel's whole VOD list as seen. Each live stream is delivered once. Delete the store to start over. Default off.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The default Apify Proxy is included in the price. Blocked requests are retried on their own. Change only to route through your own proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}