{
  "openapi": "3.0.1",
  "info": {
    "title": "Youtube Video Downloader",
    "description": "Unlock hidden download links from any youtube video ⚡️ Get audio, merged streams, subtitles, thumbnails & rich metadata with zero hassle. Smart retries, cookie mode & proxy support keep you unstoppable 🔥 Plug, run, collect — scale like a pro 🚀📥💡",
    "version": "0.0",
    "x-build-id": "dvP4biaxfuwrJJ88G"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~youtube-video-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-youtube-video-downloader",
        "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/neuro-scraper~youtube-video-downloader/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-youtube-video-downloader",
        "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/neuro-scraper~youtube-video-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-youtube-video-downloader",
        "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": [
          "video_urls"
        ],
        "properties": {
          "video_urls": {
            "title": "YouTube Video URLs",
            "type": "array",
            "description": "Enter YouTube video URLs (one per line or multiple entries).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "output_types": {
            "title": "Output types",
            "type": "array",
            "description": "Choose which outputs you want returned/uploaded (select one or multiple).",
            "items": {
              "type": "string",
              "enum": [
                "merged",
                "video_only",
                "audio_only",
                "links_only"
              ],
              "enumTitles": [
                "Merged (audio+video)",
                "Video only",
                "Audio only",
                "Direct links (no download)"
              ]
            },
            "default": [
              "merged",
              "links_only"
            ]
          },
          "output_format": {
            "title": "Container / merge format",
            "enum": [
              "webm",
              "mp4",
              "mkv"
            ],
            "type": "string",
            "description": "Container/codec to use when merging audio and video (used for merged output).",
            "default": "webm"
          },
          "download_mode": {
            "title": "Download mode",
            "enum": [
              "direct_links",
              "download_and_upload"
            ],
            "type": "string",
            "description": "Whether to return direct format links or download and upload the files.",
            "default": "direct_links"
          },
          "storage_target": {
            "title": "Where to store files (if download_and_upload)",
            "enum": [
              "key_value_store",
              "dataset"
            ],
            "type": "string",
            "description": "Choose where downloaded files will be saved (Key-Value store or Dataset).",
            "default": "key_value_store"
          },
          "video_resolution": {
            "title": "Preferred video resolution",
            "enum": [
              "best",
              "2160",
              "1440",
              "1080",
              "720",
              "480",
              "360",
              "240"
            ],
            "type": "string",
            "description": "Pick the maximum video height you want. The actor will choose the best available format at or below this height. Choose 'best' to always use the highest available.",
            "default": "best"
          },
          "resolution_policy": {
            "title": "Resolution selection policy",
            "enum": [
              "nearest_below",
              "nearest_any"
            ],
            "type": "string",
            "description": "If exact resolution not available, choose the nearest lower resolution (recommended) or the nearest available (higher or lower).",
            "default": "nearest_below"
          },
          "use_apify_proxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Enable Apify Proxy for requests (useful for geo-blocked videos).",
            "default": true
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy configuration object (Apify Proxy or custom proxies). Leave default to use Apify Proxy settings."
          },
          "cookies": {
            "title": "Cookies (secret)",
            "type": "string",
            "description": "Paste cookies file content if you need to access age-restricted/private videos. Kept secret by default."
          },
          "include_subtitles": {
            "title": "Download subtitles if available",
            "type": "boolean",
            "description": "If enabled, download available subtitles (captions) for each video.",
            "default": false
          },
          "concurrency": {
            "title": "Concurrent downloads",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many videos to download in parallel (actor-level concurrency).",
            "default": 2
          },
          "filename_template": {
            "title": "Filename template",
            "type": "string",
            "description": "Template used for naming downloaded files. Available vars: {uploader}, {upload_date}, {id}, {ext}.",
            "default": "{uploader}_{upload_date}_{id}.{ext}"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}