{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitch Scraper: Channels, Streams, VODs & Clips, $0.99/1K",
    "description": "From $0.99/1K VODs and clips, $2.49/1K channels, no start fee. Fast Twitch scraper, no login or API key. Channels (followers, live viewers, emails, socials, panels), live streams by category, search, top categories, VODs, clips, VOD chat replay. Input usernames, URLs or keywords.",
    "version": "0.3",
    "x-build-id": "6RVQGaBWTbv2FS6a8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~twitch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-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/laptime~twitch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-laptime-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/laptime~twitch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-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 by name or URL. Each returns a channel row: followers, partner/affiliate, language, live now with viewers, last broadcast, next scheduled stream, emails from the bio and About panels, social links and panel links. Add VODs and clips below.",
            "items": {
              "type": "string"
            }
          },
          "games": {
            "title": "Categories: who is live now (separate list)",
            "type": "array",
            "description": "A separate list, not a filter on the channels above: each category returns the channels live in it right now, most viewers first. Twitch categories (games) by name, URL slug or directory link. Rows have viewer counts, titles, tags and streamer followers, up to \"Max items per source\". Turn on \"Streamer details\" to add a full channel row (emails, socials) per streamer.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search channels",
            "type": "array",
            "description": "A separate list, not a filter: keywords for Twitch's channel search. Each returns matching channels (live or not) as channel rows, up to \"Max items per source\". Combine with Min/Max followers, Languages and Only with email for lead lists.",
            "items": {
              "type": "string"
            }
          },
          "videoSearchQueries": {
            "title": "Search VODs (past videos)",
            "type": "array",
            "description": "Twitch's \"Past videos\" search: VODs, highlights and uploads whose title matches, from every channel. Up to 10,000 per term (pages read side by side); maxItemsPerSource caps each term. One \"video\" row each ($0.99 per 1,000).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (channels, VODs, clips, categories)",
            "type": "array",
            "description": "twitch.tv links. Accepted: channels (https://www.twitch.tv/shroud, /videos for its VODs, /clips for its clips), VODs (https://www.twitch.tv/videos/2930818942: the VOD plus its chat replay when \"Chat messages per VOD\" is above 0), clips (https://clips.twitch.tv/<slug> or twitch.tv/<channel>/clip/<slug>), categories (https://www.twitch.tv/directory/category/valorant) and searches (https://www.twitch.tv/search?term=chess).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "topLiveStreams": {
            "title": "Top live streams",
            "type": "boolean",
            "description": "Also return the most-watched live streams on Twitch right now (all categories), up to \"Max items per source\". With Languages set, the top streams per language.",
            "default": false
          },
          "topGames": {
            "title": "Top categories",
            "type": "boolean",
            "description": "Also return the top categories by current viewers (up to 100) with live channel counts and followers.",
            "default": false
          },
          "maxItemsPerSource": {
            "title": "Max items per source",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most live streams per category, channels per search term, and rows for the top lists. Large values combine several of Twitch's sort orders and languages to get past its 100-row lists.",
            "default": 20
          },
          "maxItems": {
            "title": "Max items in total",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Most rows for the whole run (all types together). The run stops when it is reached; you are never charged for more. 0 = no limit (your maximum cost per run still applies).",
            "default": 1000
          },
          "videosPerChannel": {
            "title": "VODs per channel",
            "minimum": 0,
            "maximum": 600,
            "type": "integer",
            "description": "Also return up to this many videos per channel (past broadcasts, highlights, uploads) with views, length, category and chapters. 0 = none.",
            "default": 0
          },
          "videoType": {
            "title": "VOD type",
            "enum": [
              "ALL",
              "ARCHIVE",
              "HIGHLIGHT",
              "UPLOAD"
            ],
            "type": "string",
            "description": "Which videos to return per channel: ALL (default); ARCHIVE = past broadcasts; HIGHLIGHT = highlights; UPLOAD = uploads.",
            "default": "ALL"
          },
          "videoSort": {
            "title": "VOD order",
            "enum": [
              "TIME",
              "VIEWS"
            ],
            "type": "string",
            "description": "TIME (default) = newest first; VIEWS = most viewed first.",
            "default": "TIME"
          },
          "clipsPerChannel": {
            "title": "Clips per channel",
            "minimum": 0,
            "maximum": 400,
            "type": "integer",
            "description": "Also return up to this many clips per channel, most viewed first, from the clip period below. 0 = none.",
            "default": 0
          },
          "clipPeriod": {
            "title": "Clip period",
            "enum": [
              "LAST_DAY",
              "LAST_WEEK",
              "LAST_MONTH",
              "ALL_TIME"
            ],
            "type": "string",
            "description": "Time range for clips (channels, and categories with \"Category clips\"): LAST_DAY, LAST_WEEK (default), LAST_MONTH or ALL_TIME.",
            "default": "LAST_WEEK"
          },
          "categoryClips": {
            "title": "Category clips instead of streams",
            "type": "boolean",
            "description": "For Categories: return the category's most-viewed clips from the clip period instead of its live streams.",
            "default": false
          },
          "maxChatMessagesPerVideo": {
            "title": "Chat messages per VOD",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "For VOD links in Start URLs: also export the chat replay (user, message, badges, emotes, seconds into the VOD), up to this many messages per VOD. 0 = none. Raise \"Max items in total\" too for big chats.",
            "default": 0
          },
          "chatStartSeconds": {
            "title": "Chat replay starts at (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Start the VOD chat replay this many seconds into the video (e.g. 3600 = from the 1-hour mark). 0 = from the start.",
            "default": 0
          },
          "streamerDetails": {
            "title": "Streamer details (channel rows for streams)",
            "type": "boolean",
            "description": "For live streams from Categories and Top live streams: also return a full channel row per streamer (emails, socials, panels, schedule), charged as a channel. Combine with Min followers and Only with email for outreach lists.",
            "default": false
          },
          "minFollowers": {
            "title": "Min followers",
            "minimum": 0,
            "type": "integer",
            "description": "Only channels and streams from streamers with at least this many followers (for search, categories and top streams; channels you name are always returned). 0 = no minimum.",
            "default": 0
          },
          "maxFollowers": {
            "title": "Max followers",
            "minimum": 0,
            "type": "integer",
            "description": "Only streamers with at most this many followers (find small and mid-size creators). 0 = no maximum.",
            "default": 0
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Only streams, channels, VODs and clips in these broadcast languages (ISO codes: en, es, de, pt, fr, ja ...). Sent to Twitch for categories and top streams, so you get the top streams per language. Empty = any.",
            "items": {
              "type": "string"
            }
          },
          "onlyWithEmail": {
            "title": "Only channels with an email",
            "type": "boolean",
            "description": "For search and streamer details: return only channels whose bio or panels show an email address.",
            "default": false
          },
          "onlyLive": {
            "title": "Only channels live right now",
            "type": "boolean",
            "description": "Channel rows only for channels that are live when the run reads them (isLive). Offline channels are skipped and not charged: schedule it on a watchlist as a cheap live-status check.",
            "default": false
          },
          "streamSort": {
            "title": "Category streams order",
            "enum": [
              "VIEWER_COUNT",
              "VIEWER_COUNT_ASC",
              "RECENT",
              "RELEVANCE"
            ],
            "type": "string",
            "description": "Order of category streams. One of: VIEWER_COUNT (most viewers first), VIEWER_COUNT_ASC (fewest first: small streamers for outreach), RECENT (streams that started most recently), RELEVANCE (Twitch's own ranking).",
            "default": "VIEWER_COUNT"
          },
          "maxViewers": {
            "title": "Maximum viewers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip live streams (and live channels) with more viewers than this. 0 = no maximum. Pair with \"Fewest viewers first\" to find small streamers. Skipped rows are not charged.",
            "default": 0
          },
          "minViews": {
            "title": "Min views / viewers",
            "minimum": 0,
            "type": "integer",
            "description": "Only VODs and clips with at least this many views, and live streams with at least this many viewers. 0 = no minimum.",
            "default": 0
          },
          "postedAfter": {
            "title": "Created after",
            "type": "string",
            "description": "Only VODs, clips and chat messages from this time on: a date (2026-11-01) or a relative time (\"24 hours\", \"7 days\"). Empty = no limit."
          },
          "postedBefore": {
            "title": "Created before",
            "type": "string",
            "description": "Only VODs, clips and chat messages before this time. Empty = up to now."
          },
          "includeKeywords": {
            "title": "Title must contain (any of)",
            "type": "array",
            "description": "Only streams, VODs, clips and chat messages whose title (or message) contains one of these words. Empty = no requirement.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Title must not contain",
            "type": "array",
            "description": "Skip streams, VODs, clips and chat messages containing any of these words. Skipped rows are not charged.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new (monitoring)",
            "type": "boolean",
            "description": "Skip VODs, clips, live streams and chat messages earlier runs of this monitor already delivered, so a schedule returns only new ones (a channel going live again is a new stream). A run with nothing new costs $0. Channel and category rows are always returned.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the only-new memory. Runs with the same name share it. Empty = one memory per saved task (or per input)."
          },
          "aiAnalysis": {
            "title": "AI channel labels (niche, brand safety, sponsors)",
            "type": "boolean",
            "description": "true = every Twitch channel row gets aiNiche (gaming, esports, just_chatting_irl, music, creative_art, tech_programming, education, sports_fitness, food_cooking, beauty_fashion, travel_outdoors, finance_crypto, gambling_casino, vtuber, other), aiBrandSafe, aiPromotesGambling, aiHasSponsors and aiOpenToBusiness (true/false), plus aiBrandFit (0-100) when \"What your brand sells\" is set. One \"ai-label\" event per labelled channel ($0.30 per 1,000).",
            "default": false
          },
          "aiContext": {
            "title": "What your brand sells (for brand fit)",
            "type": "string",
            "description": "Optional, one or two sentences. Adds aiBrandFit: 0-100, how well the streamer's audience fits this brand. Empty = no brand-fit score."
          },
          "aiApiKey": {
            "title": "Your own LLM API key (optional)",
            "type": "string",
            "description": "Bring your own key and pay no AI fees: \"ai-label\" is not charged and your provider bills you for tokens. Detected by prefix: OpenRouter (sk-or-...), Anthropic (sk-ant-...), Google Gemini (AIza...), anything else is treated as OpenAI. Stored encrypted."
          },
          "aiModel": {
            "title": "Model",
            "type": "string",
            "description": "Only with your own key: the model name at your provider. Defaults: meta/muse-ember (OpenRouter), gpt-4.1-nano (OpenAI), claude-haiku-5-5 (Anthropic), gemini-2.5-flash-lite (Gemini). Without your own key our tuned decision models are used and this field is ignored."
          },
          "aiBaseUrl": {
            "title": "OpenAI-compatible endpoint (advanced)",
            "type": "string",
            "description": "Optional base URL of any OpenAI-compatible chat completions API (Groq, Together, Azure, a self-hosted model). Use with your API key and Model. No AI fees are charged."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Requests in flight at once. The default is fast and polite.",
            "default": 10
          },
          "telemetry": {
            "title": "Anonymous error reports",
            "type": "boolean",
            "description": "Sends the Actor's author an anonymous report when a run hits an error (error type, failing step, HTTP status, counts). Never your input, results, URLs or account. Untick to turn it off.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}