{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitch Scraper — Channels, Emails, Live Streams, VODs & Clips",
    "description": "Scrape Twitch channels by name, keyword search or game: followers, partner/affiliate status, bio emails, social links, live status and viewers, plus live streams per category, VODs, clips and top categories. No login, no start fee.",
    "version": "0.1",
    "x-build-id": "yqXyzrEgEtumWefsw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jaybird~twitch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jaybird-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/jaybird~twitch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jaybird-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/jaybird~twitch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jaybird-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 channel names or URLs, e.g. shroud or https://www.twitch.tv/shroud. Each one gives a channel record (and videos/clips if turned on).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search channels by keyword",
            "type": "array",
            "description": "Keywords to search Twitch channels, e.g. speedrun or valorant coach. Good for finding streamers in a niche.",
            "items": {
              "type": "string"
            }
          },
          "maxChannelsPerSearch": {
            "title": "Max channels per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Channel records to save per keyword (after filters).",
            "default": 50
          },
          "games": {
            "title": "Games / categories (live streams)",
            "type": "array",
            "description": "Game or category names (e.g. VALORANT, Just Chatting) or URLs like https://www.twitch.tv/directory/category/valorant. Returns the channels live in that category right now.",
            "items": {
              "type": "string"
            }
          },
          "maxStreamsPerGame": {
            "title": "Max live streams per game",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Twitch shows up to ~100 streams per sort order and language without a browser session. Combine sort orders and languages to get more (up to 300).",
            "default": 100
          },
          "streamSorts": {
            "title": "Stream sort orders",
            "type": "array",
            "description": "Each sort order is a separate list of up to ~100 streams. 'Fewest viewers' finds small streamers (useful for outreach).",
            "items": {
              "type": "string",
              "enum": [
                "viewersDesc",
                "viewersAsc",
                "recent"
              ],
              "enumTitles": [
                "Most viewers",
                "Fewest viewers (small streamers)",
                "Recently started"
              ]
            },
            "default": [
              "viewersDesc"
            ]
          },
          "saveStreams": {
            "title": "Save stream records",
            "type": "boolean",
            "description": "Save one record per live stream (title, viewers, language, tags, start time, streamer followers).",
            "default": true
          },
          "saveStreamerProfiles": {
            "title": "Also save full channel profiles for streamers found",
            "type": "boolean",
            "description": "For games and top streams: also save a channel record (bio, emails, social links, partner status) for each streamer. Charged as Channel.",
            "default": false
          },
          "includeGameInfo": {
            "title": "Save a record for each input game",
            "type": "boolean",
            "description": "Viewers, live channels, followers and tags of each input category. Charged as Game.",
            "default": false
          },
          "includeTopStreams": {
            "title": "Top live streams (all of Twitch)",
            "type": "boolean",
            "description": "Twitch's current top 30 live streams.",
            "default": false
          },
          "includeTopGames": {
            "title": "Top categories",
            "type": "boolean",
            "description": "Top categories by live viewers (up to 100).",
            "default": false
          },
          "maxTopGames": {
            "title": "Max top categories",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many top categories to save.",
            "default": 100
          },
          "includeSocialLinks": {
            "title": "Include social links",
            "type": "boolean",
            "description": "YouTube, X/Twitter, Instagram, TikTok, Discord and other links from the channel's About section. Included in the Channel price.",
            "default": true
          },
          "scrapeVideos": {
            "title": "Scrape videos (VODs)",
            "type": "boolean",
            "description": "For every channel saved (inputs, searches, streamer profiles).",
            "default": false
          },
          "maxVideosPerChannel": {
            "title": "Max videos per channel",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Videos per channel (Twitch allows up to 100 without a browser session).",
            "default": 30
          },
          "videoSort": {
            "title": "Video sort",
            "enum": [
              "time",
              "views"
            ],
            "type": "string",
            "description": "Newest first or most viewed first.",
            "default": "time"
          },
          "videoTypes": {
            "title": "Video types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "archive",
                "highlight",
                "upload"
              ],
              "enumTitles": [
                "Past broadcasts",
                "Highlights",
                "Uploads"
              ]
            }
          },
          "scrapeClips": {
            "title": "Scrape clips",
            "type": "boolean",
            "description": "Most-viewed clips for every channel saved.",
            "default": false
          },
          "clipPeriods": {
            "title": "Clip periods",
            "type": "array",
            "description": "Each period gives up to 'Max clips' most-viewed clips; duplicates across periods are skipped and not charged.",
            "items": {
              "type": "string",
              "enum": [
                "day",
                "week",
                "month",
                "all"
              ],
              "enumTitles": [
                "Last 24 hours",
                "Last 7 days",
                "Last 30 days",
                "All time"
              ]
            },
            "default": [
              "week"
            ]
          },
          "maxClipsPerChannel": {
            "title": "Max clips per channel and period",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Clips per channel for each selected period.",
            "default": 30
          },
          "minFollowers": {
            "title": "Min followers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip channels and streams with fewer followers (not charged)."
          },
          "maxFollowers": {
            "title": "Max followers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip channels and streams with more followers (not charged)."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Two-letter codes like en, es, de. Filters channels and streams; for games it also asks Twitch for streams in each language.",
            "items": {
              "type": "string"
            }
          },
          "onlyLive": {
            "title": "Only channels live now",
            "type": "boolean",
            "description": "Skip channels that are offline right now (not charged).",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only channels with an email in bio/panels",
            "type": "boolean",
            "description": "Skip channels without a public email (not charged).",
            "default": false
          },
          "channelStatus": {
            "title": "Channel status",
            "enum": [
              "any",
              "partner",
              "affiliate",
              "partnerOrAffiliate"
            ],
            "type": "string",
            "description": "Keep only partners and/or affiliates.",
            "default": "any"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Channels processed in parallel.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed. Leave empty; social links are fetched through Apify residential proxy automatically when Twitch requires it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}