{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Video Downloader Max",
    "description": "YouTube Video Downloader Max Search YouTube videos by keyword and extract detailed metadata, including titles, descriptions, views, duration, upload dates, channel information, and direct video, audio, and merged download links for every video. Ideal for video research, content and data collection.",
    "version": "0.1",
    "x-build-id": "0jyYuc4ze2ZLHc6Ad"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~youtube-video-downloader-max/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-youtube-video-downloader-max",
        "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/alpha-scraper~youtube-video-downloader-max/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-youtube-video-downloader-max",
        "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/alpha-scraper~youtube-video-downloader-max/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-youtube-video-downloader-max",
        "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": "🟢 Search YouTube videos",
            "uniqueItems": true,
            "type": "array",
            "description": "One or more keywords or phrases to search on YouTube, typed the way you would type them into the YouTube search box, for example `mrbeast challenge`. Enter a single keyword or as many as you like – each keyword runs its own search and has its own limit (see Maximum Items per Keyword). Leave empty if you only use Single URLs.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "maxItems": {
            "title": "🟢 Maximum Items per Keyword 📊",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of videos to collect for each search keyword. YouTube returns roughly 15–19 videos per results page and usually stops after about 130–170 results for one keyword, so a higher value may return fewer videos. Duplicate videos within a keyword are skipped, and so are videos rejected by the filters below – neither counts toward this limit. This limit applies to the keyword search only.",
            "default": 5
          },
          "minViews": {
            "title": "🟢 Minimum Views 👁️",
            "minimum": 0,
            "type": "integer",
            "description": "Only collect videos that have been watched at least this many times. Videos below the threshold are skipped and do not count toward Maximum Items per Keyword, so the actor keeps going through the search results until it has enough qualifying videos or YouTube runs out of results. Leave empty for no view filter."
          },
          "minDuration": {
            "title": "🟢 Minimum Length ⏱️",
            "type": "object",
            "description": "Videos shorter than this are skipped. Use any mix of hours, minutes and seconds – for example 1 hour and 30 minutes, or simply 90 minutes. Keep all three boxes at 0 for no minimum. A video that is exactly this long is kept.",
            "properties": {
              "hours": {
                "title": "Hours",
                "description": "Hours part of the length, for example 2.",
                "type": "integer",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "minutes": {
                "title": "Minutes",
                "description": "Minutes part of the length, for example 30. Values above 59 are fine: 90 minutes means 1 hour 30 minutes.",
                "type": "integer",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "seconds": {
                "title": "Seconds",
                "description": "Seconds part of the length, for example 45.",
                "type": "integer",
                "editor": "number",
                "minimum": 0,
                "default": 0
              }
            },
            "default": {
              "hours": 0,
              "minutes": 0,
              "seconds": 0
            },
            "additionalProperties": false
          },
          "maxDuration": {
            "title": "🟢 Maximum Length ⏱️",
            "type": "object",
            "description": "Videos longer than this are skipped. Use any mix of hours, minutes and seconds – for example 45 minutes, or 1 hour and 15 minutes. Keep all three boxes at 0 for no maximum. A video that is exactly this long is kept. If you set both limits, the maximum must not be shorter than the minimum.",
            "properties": {
              "hours": {
                "title": "Hours",
                "description": "Hours part of the length, for example 1.",
                "type": "integer",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "minutes": {
                "title": "Minutes",
                "description": "Minutes part of the length, for example 15. Values above 59 are fine: 90 minutes means 1 hour 30 minutes.",
                "type": "integer",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "seconds": {
                "title": "Seconds",
                "description": "Seconds part of the length, for example 30.",
                "type": "integer",
                "editor": "number",
                "minimum": 0,
                "default": 0
              }
            },
            "default": {
              "hours": 0,
              "minutes": 0,
              "seconds": 0
            },
            "additionalProperties": false
          },
          "newerThan": {
            "title": "🟢 Published On or After 🗓️",
            "type": "string",
            "description": "Only collect videos published on or after this date. Pick a calendar date (YYYY-MM-DD) or type how far back to go, such as `2 weeks` or `3 months` (meaning that long ago). Leave empty for no start date."
          },
          "olderThan": {
            "title": "🟢 Published Before 🗓️",
            "type": "string",
            "description": "Only collect videos published before this date. Pick a calendar date (YYYY-MM-DD) or type an age such as `1 month` (meaning that long ago). Combine it with 'Published On or After' to get a date range; the end date must be later than the start date. Leave empty for no end date."
          },
          "videoResolution": {
            "title": "🟢 Video Resolution 🎥",
            "enum": [
              "8K",
              "4K",
              "2K",
              "1080p",
              "720p",
              "480p",
              "360p",
              "240p",
              "144p"
            ],
            "type": "string",
            "description": "Select the desired video resolution. If the selected resolution is not available for a video, the closest lower one is used (the lowest available one if every stream is higher). Applies to the video-only link; the merged link with sound is currently always 360p.",
            "default": "1080p"
          },
          "fetchDownloadLinks": {
            "title": "🟢 Fetch Download Links 🔗",
            "type": "boolean",
            "description": "Runs yt-dlp on every video to get the video, audio and merged download links, the resolution, file size, link expiry time, categories and the full description. Turn it off for a much faster, metadata-only run that uses just the data shown in YouTube's search results (title, channel, duration, views, thumbnail, short description): the download-link fields are then returned as `null`, and availability and live status are estimated.",
            "default": true
          },
          "startUrls": {
            "title": "🟢 Single URLs 🔗",
            "type": "array",
            "description": "List of one or more YouTube video URLs, one per row – for example `https://www.youtube.com/watch?v=...` or a `https://youtu.be/...` share link. Optional if you use search keywords.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}