{
  "openapi": "3.0.1",
  "info": {
    "title": "▶️ YouTube Scraper",
    "description": "Scrape YouTube videos, Shorts, channels, playlists, comments, and search results, no API key or quota limit. Extract subtitles, transcripts, channel emails, and a computed virality score for creator research and content analysis.",
    "version": "1.1",
    "x-build-id": "M7e1LaCffVgkkmRrH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_minds~youtube-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_minds-youtube-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/data_minds~youtube-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_minds-youtube-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/data_minds~youtube-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_minds-youtube-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": {
          "urls": {
            "title": "🔗 Start URLs",
            "type": "array",
            "description": "Links to collect videos from, one per line: channels (@handle, /channel/, /c/, /user/), videos, Shorts, live streams, playlists, hashtags and YouTube search pages. Add as many as you like.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "Words or phrases to search on YouTube, one per line. Each term is collected on its own, up to the limits below.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "🔢 Max videos per input",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum videos collected for each start URL and each search term. Every input gets its own limit. Use 0 to skip videos (for example when you only want Shorts).",
            "default": 10
          },
          "maxResultsShorts": {
            "title": "🔢 Max Shorts per input",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum Shorts collected for each channel link and each search term. 0 = no Shorts.",
            "default": 0
          },
          "maxResultStreams": {
            "title": "🔢 Max live streams per input",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum live streams and past live broadcasts collected for each channel link and each search term. 0 = none.",
            "default": 0
          },
          "sortVideosBy": {
            "title": "🔃 Sort channel videos by",
            "enum": [
              "NEWEST",
              "POPULAR",
              "OLDEST"
            ],
            "type": "string",
            "description": "Order used when reading a channel's videos, Shorts and streams.",
            "default": "NEWEST"
          },
          "sortingOrder": {
            "title": "🔃 Sort search results by",
            "enum": [
              "",
              "relevance",
              "rating",
              "date",
              "views"
            ],
            "type": "string",
            "description": "How YouTube orders search results. Applies to search terms and search links.",
            "default": ""
          },
          "dateFilter": {
            "title": "📅 Upload date",
            "enum": [
              "",
              "hour",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only videos uploaded within this period.",
            "default": ""
          },
          "videoType": {
            "title": "🎯 Content type",
            "enum": [
              "",
              "video",
              "movie"
            ],
            "type": "string",
            "description": "Videos or movies.",
            "default": ""
          },
          "lengthFilter": {
            "title": "🎯 Video length",
            "enum": [
              "",
              "under4",
              "between420",
              "plus20"
            ],
            "type": "string",
            "description": "Only videos of this length.",
            "default": ""
          },
          "isHD": {
            "title": "🎯 HD only",
            "type": "boolean",
            "description": "Only HD videos.",
            "default": false
          },
          "hasSubtitles": {
            "title": "🎯 Has subtitles",
            "type": "boolean",
            "description": "Only videos with subtitles or closed captions.",
            "default": false
          },
          "hasCC": {
            "title": "🎯 Creative Commons",
            "type": "boolean",
            "description": "Only videos with a Creative Commons licence.",
            "default": false
          },
          "is3D": {
            "title": "🎯 3D",
            "type": "boolean",
            "description": "Only 3D videos.",
            "default": false
          },
          "isLive": {
            "title": "🎯 Live now",
            "type": "boolean",
            "description": "Only streams that are live right now. They are returned as videos.",
            "default": false
          },
          "is4K": {
            "title": "🎯 4K",
            "type": "boolean",
            "description": "Only 4K videos.",
            "default": false
          },
          "is360": {
            "title": "🎯 360 degrees",
            "type": "boolean",
            "description": "Only 360-degree videos.",
            "default": false
          },
          "isHDR": {
            "title": "🎯 HDR",
            "type": "boolean",
            "description": "Only HDR videos.",
            "default": false
          },
          "hasLocation": {
            "title": "🎯 Has location",
            "type": "boolean",
            "description": "Only videos with a location tag. Works best for place searches.",
            "default": false
          },
          "isVR180": {
            "title": "🎯 VR180",
            "type": "boolean",
            "description": "Only VR180 videos.",
            "default": false
          },
          "oldestPostDate": {
            "title": "📅 Only videos published after",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Keep only videos published on or after this date. Exact date, for example 2025-01-31, or relative, for example 30 days, 2 weeks, 3 months or 1 year. Leave empty for no limit."
          },
          "minViews": {
            "title": "🎯 Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with fewer views than this. 0 = no minimum.",
            "default": 0
          },
          "downloadSubtitles": {
            "title": "✅ Download subtitles",
            "type": "boolean",
            "description": "Add the subtitles of every video to its row.",
            "default": false
          },
          "subtitlesLanguage": {
            "title": "🌍 Subtitles language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "pt",
              "it",
              "nl",
              "ru",
              "ja",
              "ko",
              "zh-Hans",
              "zh-Hant",
              "ar",
              "hi",
              "bn",
              "tr",
              "id",
              "pl",
              "vi",
              "th",
              "sv",
              "uk",
              "fa",
              "he",
              "ro",
              "cs",
              "el",
              "hu",
              "da",
              "fi",
              "no",
              "ms",
              "ur",
              "any"
            ],
            "type": "string",
            "description": "Language of the subtitles to download. If that language is not available the closest match is used.",
            "default": "en"
          },
          "subtitlesFormat": {
            "title": "📦 Subtitles format",
            "enum": [
              "srt",
              "vtt",
              "xml",
              "plaintext",
              "json3"
            ],
            "type": "string",
            "description": "Format of the downloaded subtitles.",
            "default": "srt"
          },
          "preferAutoGeneratedSubtitles": {
            "title": "✅ Prefer auto-generated subtitles",
            "type": "boolean",
            "description": "Choose the automatic captions over the uploader's own when both exist.",
            "default": false
          },
          "extractComments": {
            "title": "✅ Collect comments",
            "type": "boolean",
            "description": "Add the top comments of every video to its row.",
            "default": false
          },
          "maxComments": {
            "title": "🔢 Max comments per video",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum comments collected for each video.",
            "default": 10
          },
          "computeOutlierScore": {
            "title": "✅ Outlier score and engagement",
            "type": "boolean",
            "description": "Add an outlier score (views compared with the channel's recent videos) and the engagement rate.",
            "default": true
          },
          "extractChannelDetails": {
            "title": "✅ Channel details",
            "type": "boolean",
            "description": "Add the channel's subscribers, description, links, join date, location and public e-mail to every row.",
            "default": true
          },
          "monitorMode": {
            "title": "✅ Monitor mode (skip videos seen before)",
            "type": "boolean",
            "description": "Skip videos that an earlier run with Monitor mode already returned. Handy for scheduled runs that should only return new videos.",
            "default": false
          },
          "maxConcurrency": {
            "title": "⚡ Inputs in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many start URLs or search terms are read at the same time.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "🔁 Retries per request",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How often a failed request is tried again before it is given up.",
            "default": 3
          },
          "maxScanned": {
            "title": "🔢 Max results scanned per search",
            "minimum": 100,
            "type": "integer",
            "description": "Safety cap on how many search or hashtag results are looked at while filtering.",
            "default": 20000
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional network settings for the run. The default works for most runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}