{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitch Scraper — Channels, Emails, Live Streams & Clips",
    "description": "Extract Twitch streamer profiles, business emails, social links, follower counts, Partner/Affiliate status, live streams by game/category, VOD archives, and top clips without API keys or login.",
    "version": "0.1",
    "x-build-id": "SPxMcc2gIszlOnKmB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/foxlabs~twitch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-foxlabs-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/foxlabs~twitch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-foxlabs-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/foxlabs~twitch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-foxlabs-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": "Primary Discovery Mode",
            "enum": [
              "channels",
              "live_streams",
              "top_games"
            ],
            "type": "string",
            "description": "Choose 'channels' to output enriched creator profiles, 'live_streams' for active broadcasts, or 'top_games' for top Twitch game/category rankings by concurrent viewers.",
            "default": "channels"
          },
          "channels": {
            "title": "Twitch Channel Logins or URLs",
            "type": "array",
            "description": "Specific Twitch usernames or URLs (e.g. 'pokimane', 'shroud', 'https://www.twitch.tv/kaicenat').",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Creator Search Queries (Optional)",
            "type": "array",
            "description": "Keywords to discover Twitch channels (e.g. 'valorant', 'tech', 'chess', 'fitness').",
            "items": {
              "type": "string"
            }
          },
          "gameNames": {
            "title": "Twitch Game / Category Names (Optional)",
            "type": "array",
            "description": "Exact Twitch category names to discover top live broadcasters or streams (e.g. 'Just Chatting', 'League of Legends', 'Counter-Strike', 'Minecraft').",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Broadcast Language Filter (Optional)",
            "type": "string",
            "description": "Two-letter ISO language code filter for live streams / broadcaster discovery (e.g. 'EN', 'DE', 'ES', 'FR', 'PT', 'TR')."
          },
          "minFollowers": {
            "title": "Minimum Followers Filter",
            "minimum": 0,
            "type": "integer",
            "description": "Only retain channels/broadcasters with at least this many followers. Filtered-out rows cost $0."
          },
          "partnersOnly": {
            "title": "Twitch Partners Only",
            "type": "boolean",
            "description": "Keep verified Twitch Partner channels only (isPartner: true).",
            "default": false
          },
          "liveOnly": {
            "title": "Currently Live Channels Only",
            "type": "boolean",
            "description": "When in 'channels' mode, retain only channels currently broadcasting live.",
            "default": false
          },
          "includeVideos": {
            "title": "Include Recent VOD Archives ('video' event)",
            "type": "boolean",
            "description": "Also emit recent archived VODs for extracted channels.",
            "default": false
          },
          "includeClips": {
            "title": "Include Top Monthly Clips ('video' event)",
            "type": "boolean",
            "description": "Also emit top clips from the past 30 days for extracted channels.",
            "default": false
          },
          "maxVideosPerChannel": {
            "title": "Max VODs / Clips per Channel",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Maximum VODs and/or clips emitted per channel when includeVideos or includeClips is enabled.",
            "default": 5
          },
          "maxResults": {
            "title": "Max Primary Results per Query / Category",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum channels or live streams collected per searchQuery or gameName.",
            "default": 25
          },
          "maxTotalResults": {
            "title": "Max Total Billable Records (Run Cap)",
            "minimum": 1,
            "maximum": 25000,
            "type": "integer",
            "description": "Global ceiling across all emitted channel, stream, and video rows.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy configuration. Runs over fast Datacenter proxies out of the box.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}