{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitch Clips Scraper with MP4 Download Links",
    "description": "Twitch clips scraper: the top clips of any channel or category (day, week, month, all time) or clips by link, with views, duration, date, game, clipper, the source VOD moment and signed MP4 download links. Language filter and new-clip monitoring. No login. Maintained by CleanScrape.",
    "version": "0.1",
    "x-build-id": "vxhQZCTKs2KQdgzVa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleanscrape~twitch-clips-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleanscrape-twitch-clips-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/cleanscrape~twitch-clips-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cleanscrape-twitch-clips-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/cleanscrape~twitch-clips-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cleanscrape-twitch-clips-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 links, one per line: kaicenat, @xqc or https://www.twitch.tv/shroud/clips. Each channel gives its top clips for the period.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories (optional)",
            "type": "array",
            "description": "Games or categories as Twitch names them, one per line: Fortnite, Just Chatting, VALORANT, or a link such as https://www.twitch.tv/directory/category/fortnite. Each gives its top clips across all streamers.",
            "items": {
              "type": "string"
            }
          },
          "clipLinks": {
            "title": "Clip links (optional)",
            "type": "array",
            "description": "Single clips, one per line: https://www.twitch.tv/name/clip/SomeClipName-AbC123, https://clips.twitch.tv/SomeClipName-AbC123 or just the clip name.",
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "Period",
            "enum": [
              "day",
              "week",
              "month",
              "all"
            ],
            "type": "string",
            "description": "Clips created in this period, like the range filter on a channel's Clips tab.",
            "default": "week"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "views",
              "trending"
            ],
            "type": "string",
            "description": "Most viewed first, or Twitch's trending order.",
            "default": "views"
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Only clips in these languages. On categories each language is its own list of up to 100 clips, so choosing several finds more clips; channel clips are filtered after reading.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "de",
                "fr",
                "pt",
                "ru",
                "ja",
                "ko",
                "zh",
                "zh_hk",
                "it",
                "pl",
                "tr",
                "ar",
                "nl",
                "sv",
                "cs",
                "fi",
                "da",
                "no",
                "hu",
                "th",
                "vi",
                "id",
                "uk",
                "el",
                "hi",
                "ms",
                "tl",
                "bg",
                "ro",
                "sk",
                "ca",
                "asl",
                "other"
              ],
              "enumTitles": [
                "English",
                "Spanish",
                "German",
                "French",
                "Portuguese",
                "Russian",
                "Japanese",
                "Korean",
                "Chinese",
                "Cantonese (Hong Kong)",
                "Italian",
                "Polish",
                "Turkish",
                "Arabic",
                "Dutch",
                "Swedish",
                "Czech",
                "Finnish",
                "Danish",
                "Norwegian",
                "Hungarian",
                "Thai",
                "Vietnamese",
                "Indonesian",
                "Ukrainian",
                "Greek",
                "Hindi",
                "Malay",
                "Tagalog",
                "Bulgarian",
                "Romanian",
                "Slovak",
                "Catalan",
                "American Sign Language",
                "Other"
              ]
            }
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Leave out clips with fewer views."
          },
          "maxClipsPerList": {
            "title": "Maximum clips per list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Clips read from each channel, category or language list. Twitch shows up to 100 per list.",
            "default": 100
          },
          "maxClips": {
            "title": "Maximum clips",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most clips to save in one run, shared fairly between the lists.",
            "default": 1000
          },
          "includeDownloadLinks": {
            "title": "MP4 download links",
            "type": "boolean",
            "description": "Signed MP4 links in every quality (1080p, 720p...). They stop working about 20 hours after the run, so download soon. No extra charge.",
            "default": true
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Any name, such as my-channels. Runs with the same name share their memory."
          },
          "onlyNew": {
            "title": "Only new clips",
            "type": "boolean",
            "description": "With a watch name: save (and pay for) only clips that earlier runs of the watch did not save.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: Twitch answers Apify's servers directly. Turn on only if Twitch keeps saying \"too many requests\".",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}