{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Monitor",
    "description": "YouTube scraper with no API key and no quota limits. Extract new videos by keyword or channel: title, channel, views, duration, publish time, thumbnail and URL. Export JSON, CSV or Excel. Built-in dedupe returns only what is new since your last run. $1.99 per 1,000 videos.",
    "version": "0.1",
    "x-build-id": "bJDYiw7YVjEJV4OMP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reportable_broth~youtube-scraper-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reportable_broth-youtube-scraper-monitor",
        "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/reportable_broth~youtube-scraper-monitor/runs": {
      "post": {
        "operationId": "runs-sync-reportable_broth-youtube-scraper-monitor",
        "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/reportable_broth~youtube-scraper-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-reportable_broth-youtube-scraper-monitor",
        "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": {
          "keywords": {
            "title": "Keywords to monitor",
            "type": "array",
            "description": "Search terms or topics. Each one is searched on YouTube. Use the Sort option to control what 'top of the list' means.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels to monitor",
            "type": "array",
            "description": "Channel handles (with or without @) or channel URLs. Returns that channel's latest uploads.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort search results by",
            "enum": [
              "date",
              "relevance",
              "views",
              "rating"
            ],
            "type": "string",
            "description": "date = newest uploads first, which is what you want for monitoring. relevance = YouTube's default ranking. views / rating sort by popularity.",
            "default": "date"
          },
          "maxResults": {
            "title": "Max results per keyword / channel",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "How many videos to return for each keyword and each channel. Leave at 0 for the first page only (about 15 for a keyword, 30 for a channel). Higher values page through YouTube — a channel's back catalogue keeps going for hundreds of videos.",
            "default": 0
          },
          "includeShorts": {
            "title": "Include Shorts",
            "type": "boolean",
            "description": "Shorts often make up more than half of a keyword's results. Turn this off to get long-form videos only.",
            "default": true
          },
          "filterLanguages": {
            "title": "Only these languages",
            "type": "array",
            "description": "Keep only videos whose title is written in one of these languages. Leave empty for everything. Videos whose language cannot be determined are kept, not dropped.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "zh-TW",
                "zh-CN",
                "ja",
                "ko",
                "th",
                "vi",
                "id",
                "ms",
                "tl",
                "es",
                "pt",
                "fr",
                "de",
                "it",
                "ar",
                "ru",
                "tr",
                "hi"
              ],
              "enumTitles": [
                "English",
                "Chinese — Traditional",
                "Chinese — Simplified",
                "Japanese",
                "Korean",
                "Thai",
                "Vietnamese",
                "Indonesian",
                "Malay",
                "Filipino",
                "Spanish",
                "Portuguese",
                "French",
                "German",
                "Italian",
                "Arabic",
                "Russian",
                "Turkish",
                "Hindi"
              ]
            },
            "default": []
          },
          "enrichVideos": {
            "title": "Fetch full details for each video",
            "type": "boolean",
            "description": "Off by default. When on, each video is opened to add its **exact** publish timestamp, like count, full description, keywords, channel ID and exact view count — data that a search or channel listing does not carry. Costs one extra request per video, so runs take longer.",
            "default": false
          },
          "exactCommentCount": {
            "title": "Exact comment count",
            "type": "boolean",
            "description": "Off by default. The video page only shows a rounded count like `4.2K`; turning this on fetches the exact number (4,296) at the cost of one extra request per video.",
            "default": false
          },
          "transcripts": {
            "title": "Fetch transcripts",
            "type": "boolean",
            "description": "Off by default. Adds the spoken transcript of each video, as full text and as timed segments. If a video has no transcript in your preferred languages, any available transcript is returned instead of nothing — a human-written one where there is a choice.",
            "default": false
          },
          "transcriptLanguages": {
            "title": "Preferred transcript languages",
            "type": "array",
            "description": "Tried in order. A video with none of them still returns whatever transcript it has.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "zh-TW",
                "zh-CN",
                "ja",
                "ko",
                "th",
                "vi",
                "id",
                "ms",
                "tl",
                "es",
                "pt",
                "fr",
                "de",
                "it",
                "ar",
                "ru",
                "tr",
                "hi"
              ],
              "enumTitles": [
                "English",
                "Chinese — Traditional",
                "Chinese — Simplified",
                "Japanese",
                "Korean",
                "Thai",
                "Vietnamese",
                "Indonesian",
                "Malay",
                "Filipino",
                "Spanish",
                "Portuguese",
                "French",
                "German",
                "Italian",
                "Arabic",
                "Russian",
                "Turkish",
                "Hindi"
              ]
            },
            "default": [
              "en"
            ]
          },
          "onlyNew": {
            "title": "Only return videos not seen in previous runs",
            "type": "boolean",
            "description": "Keeps a 7-day memory of video IDs per input set. Turn on for scheduled monitoring so every run yields only NEW videos. Turn off to always get the full list.",
            "default": true
          },
          "maxAgeHours": {
            "title": "Only videos newer than this many hours",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit. Note: YouTube only publishes relative times such as '12 days ago', so this filter is approximate. Videos with no readable publish time are kept rather than dropped.",
            "default": 0
          },
          "minViews": {
            "title": "Minimum view count",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos below this view count. 0 = no filter.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxy is recommended. YouTube serves a stripped page to flagged IPs instead of returning an error.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "concurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many keywords/channels to fetch at once. Raise carefully.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}