{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Scraper: Videos, Channels & Subscribers",
    "description": "Scrape YouTube videos from channels, playlists, hashtags and searches: views, likes, subscribers, tags, chapters, optional transcripts. One clear price per video, no add-ons, free date-range and view filters.",
    "version": "0.1",
    "x-build-id": "IgNH3fSzetZXtp90l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/paul_studio~youtube-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-paul_studio-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/paul_studio~youtube-scraper/runs": {
      "post": {
        "operationId": "runs-sync-paul_studio-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/paul_studio~youtube-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-paul_studio-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",
        "required": [
          "sources"
        ],
        "properties": {
          "sources": {
            "title": "Videos, channels, playlists, hashtags or searches",
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "description": "One per line: a video or Shorts link, a channel (@handle or link), a playlist link, a #hashtag, or words to search for. End a line with | 50 to take 50 videos from that source.",
            "items": {
              "type": "string"
            }
          },
          "maxVideos": {
            "title": "Videos per channel, playlist, hashtag or search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Newest first for channels. Single video links are always included. A \"| number\" at the end of a line overrides this.",
            "default": 10
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "A date, or a period such as 30 days."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Together with \"Published after\", a date range."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 10000."
          },
          "minMinutes": {
            "title": "Minimum length (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 2 to skip Shorts and short clips."
          },
          "maxMinutes": {
            "title": "Maximum length (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 90 to skip full-length streams."
          },
          "channelTabs": {
            "title": "From channels, include",
            "type": "array",
            "description": "Newest of each tab in turn, sharing the limit. A link to a tab (…/@name/shorts) reads only that tab.",
            "items": {
              "type": "string",
              "enum": [
                "videos",
                "shorts",
                "streams"
              ],
              "enumTitles": [
                "Videos",
                "Shorts",
                "Live streams"
              ]
            },
            "default": [
              "videos"
            ]
          },
          "searchLanguage": {
            "title": "Search results language",
            "enum": [
              "any",
              "en",
              "es",
              "pt",
              "fr",
              "de",
              "it",
              "nl",
              "pl",
              "ru",
              "uk",
              "tr",
              "ar",
              "he",
              "fa",
              "hi",
              "bn",
              "ur",
              "ta",
              "id",
              "ms",
              "vi",
              "th",
              "fil",
              "ja",
              "ko",
              "zh-Hans",
              "zh-Hant",
              "sv",
              "no",
              "da",
              "fi",
              "cs",
              "el",
              "ro",
              "hu"
            ],
            "type": "string",
            "description": "For searches and hashtags: the language YouTube ranks results for, e.g. Japanese to find Japanese videos. Also: ms (Malay), vi (Vietnamese), th (Thai), fil (Filipino), ja (Japanese), ko (Korean), zh-Hans (Chinese (Simplified)), zh-Hant (Chinese (Traditional)), sv (Swedish), no (Norwegian), da (Danish), fi (Finnish), cs (Czech), el (Greek), ro (Romanian), hu (Hungarian).",
            "default": "any"
          },
          "searchOrder": {
            "title": "Search results",
            "enum": [
              "relevance",
              "newest"
            ],
            "type": "string",
            "description": "Newest first is useful for keeping track of a topic.",
            "default": "relevance"
          },
          "includeTranscript": {
            "title": "Add transcripts",
            "type": "boolean",
            "description": "Adds the transcript of each video that has captions. Such videos are charged as \"Video with transcript\" instead of \"Video\" (see Pricing); videos without captions stay at the video price.",
            "default": false
          },
          "language": {
            "title": "Transcript language",
            "enum": [
              "original",
              "en",
              "es",
              "pt",
              "fr",
              "de",
              "it",
              "nl",
              "pl",
              "ru",
              "uk",
              "tr",
              "ar",
              "he",
              "fa",
              "hi",
              "bn",
              "ur",
              "ta",
              "id",
              "ms",
              "vi",
              "th",
              "fil",
              "ja",
              "ko",
              "zh-Hans",
              "zh-Hant",
              "sv",
              "no",
              "da",
              "fi",
              "cs",
              "el",
              "ro",
              "hu"
            ],
            "type": "string",
            "description": "Original language needs no setup. Pick a language to get captions in it where they exist. Also: ms (Malay), vi (Vietnamese), th (Thai), fil (Filipino), ja (Japanese), ko (Korean), zh-Hans (Chinese (Simplified)), zh-Hant (Chinese (Traditional)), sv (Swedish), no (Norwegian), da (Danish), fi (Finnish), cs (Czech), el (Greek), ro (Romanian), hu (Hungarian).",
            "default": "original"
          },
          "fallbackToOriginal": {
            "title": "Use the original language when the chosen one is missing",
            "type": "boolean",
            "description": "Off: such videos are saved without a transcript, at the video price.",
            "default": true
          },
          "creatorCaptionsOnly": {
            "title": "Creator captions only",
            "type": "boolean",
            "description": "Skip auto-generated captions. More accurate, but many videos have none.",
            "default": false
          },
          "outputs": {
            "title": "Transcript formats",
            "type": "array",
            "description": "The plain transcript is always included. Add the formats you need.",
            "items": {
              "type": "string",
              "enum": [
                "readable",
                "segments",
                "chunks",
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "Readable transcript (paragraphs, chapter headings, timestamp links)",
                "Timed segments (start, end, text)",
                "Chunks for AI tools (about N words each, with start time and link)",
                "SRT subtitles (as text in each row)",
                "WebVTT subtitles (as text in each row)"
              ]
            },
            "default": [
              "readable"
            ]
          },
          "chunkWords": {
            "title": "Words per chunk",
            "minimum": 50,
            "maximum": 3000,
            "type": "integer",
            "description": "For chunks for AI tools.",
            "default": 300
          },
          "onlyNewVideos": {
            "title": "Only new videos",
            "type": "boolean",
            "description": "Each run checks the newest videos (the number above) and returns and charges only those this monitor has not delivered.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "pattern": "^[A-Za-z0-9 _-]*$",
            "maxLength": 40,
            "type": "string",
            "description": "Give each schedule its own name, e.g. \"competitor-channels\". Use a new name to start over. Runs with the same name share one history, also across Tasks.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}