{
  "openapi": "3.0.1",
  "info": {
    "title": "Youtube Video Bulk Download to Cloud storage",
    "description": "Download YouTube videos & Spotify podcasts via API. No rate limits, no 403s, no Sign in to confirm you are not a bot, no infra to manage.",
    "version": "0.0",
    "x-build-id": "2LtFd3skMr3ZoRzMi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lax3n~youtube-bulk-download-to-cloud-storage/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lax3n-youtube-bulk-download-to-cloud-storage",
        "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/lax3n~youtube-bulk-download-to-cloud-storage/runs": {
      "post": {
        "operationId": "runs-sync-lax3n-youtube-bulk-download-to-cloud-storage",
        "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/lax3n~youtube-bulk-download-to-cloud-storage/run-sync": {
      "post": {
        "operationId": "run-sync-lax3n-youtube-bulk-download-to-cloud-storage",
        "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": [
          "urls",
          "storage_provider",
          "api_key"
        ],
        "properties": {
          "urls": {
            "title": "Video URLs",
            "type": "array",
            "description": "List of video URLs to download. Supports YouTube, Spotify, TikTok, Instagram, and 1000+ other sites.",
            "items": {
              "type": "string"
            }
          },
          "api_key": {
            "title": "Tornado API Key",
            "type": "string",
            "description": "Your Tornado API key. Get one at https://tornadoapi.io"
          },
          "storage_provider": {
            "title": "Storage Provider",
            "enum": [
              "s3",
              "blob",
              "gcs",
              "oss"
            ],
            "type": "string",
            "description": "Cloud storage provider where downloaded files will be uploaded.",
            "default": "s3"
          },
          "s3_endpoint": {
            "title": "S3 Endpoint",
            "type": "string",
            "description": "S3 endpoint URL (e.g., https://s3.amazonaws.com or https://xxx.r2.cloudflarestorage.com for R2)."
          },
          "s3_bucket": {
            "title": "S3 Bucket",
            "type": "string",
            "description": "S3 bucket name."
          },
          "s3_region": {
            "title": "S3 Region",
            "type": "string",
            "description": "AWS region (e.g., us-east-1) or 'auto' for Cloudflare R2.",
            "default": "auto"
          },
          "s3_access_key": {
            "title": "S3 Access Key",
            "type": "string",
            "description": "S3 Access Key ID."
          },
          "s3_secret_key": {
            "title": "S3 Secret Key",
            "type": "string",
            "description": "S3 Secret Access Key."
          },
          "blob_account_name": {
            "title": "Azure Account Name",
            "type": "string",
            "description": "Azure Storage account name."
          },
          "blob_container": {
            "title": "Azure Container",
            "type": "string",
            "description": "Azure Blob container name."
          },
          "blob_account_key": {
            "title": "Azure Account Key",
            "type": "string",
            "description": "Azure Storage account key."
          },
          "gcs_project_id": {
            "title": "GCS Project ID",
            "type": "string",
            "description": "Google Cloud project ID."
          },
          "gcs_bucket": {
            "title": "GCS Bucket",
            "type": "string",
            "description": "GCS bucket name."
          },
          "gcs_service_account_json": {
            "title": "GCS Service Account JSON",
            "type": "string",
            "description": "Full service account JSON key content."
          },
          "oss_endpoint": {
            "title": "OSS Endpoint",
            "type": "string",
            "description": "Alibaba Cloud OSS endpoint (e.g., https://oss-cn-hangzhou.aliyuncs.com)."
          },
          "oss_bucket": {
            "title": "OSS Bucket",
            "type": "string",
            "description": "OSS bucket name."
          },
          "oss_access_key_id": {
            "title": "OSS Access Key ID",
            "type": "string",
            "description": "Alibaba Cloud Access Key ID."
          },
          "oss_access_key_secret": {
            "title": "OSS Access Key Secret",
            "type": "string",
            "description": "Alibaba Cloud Access Key Secret."
          },
          "format": {
            "title": "Output Format",
            "enum": [
              "mp4",
              "mkv",
              "webm",
              "mov",
              "mp3",
              "m4a",
              "ogg",
              "opus"
            ],
            "type": "string",
            "description": "Output container format.",
            "default": "mp4"
          },
          "max_resolution": {
            "title": "Max Resolution",
            "enum": [
              "best",
              "2160",
              "1440",
              "1080",
              "720",
              "480",
              "360"
            ],
            "type": "string",
            "description": "Maximum video resolution. Lower = smaller file size.",
            "default": "1080"
          },
          "audio_only": {
            "title": "Audio Only",
            "type": "boolean",
            "description": "Extract audio track only (no video). Use with mp3/m4a/ogg format.",
            "default": false
          },
          "audio_bitrate": {
            "title": "Audio Bitrate",
            "enum": [
              "64k",
              "128k",
              "192k",
              "256k",
              "320k"
            ],
            "type": "string",
            "description": "Audio bitrate when transcoding."
          },
          "download_subtitles": {
            "title": "Download Subtitles",
            "type": "boolean",
            "description": "Download subtitles if available.",
            "default": false
          },
          "download_thumbnail": {
            "title": "Download Thumbnail",
            "type": "boolean",
            "description": "Download video thumbnail image.",
            "default": false
          },
          "folder": {
            "title": "Storage Folder",
            "type": "string",
            "description": "Folder prefix in your cloud storage (e.g., 'downloads/2024')."
          },
          "quality_preset": {
            "title": "Quality Preset",
            "enum": [
              "highest",
              "high",
              "medium",
              "low",
              "lowest"
            ],
            "type": "string",
            "description": "Quick quality preset (overrides max_resolution)."
          },
          "webhook_url": {
            "title": "Webhook URL",
            "type": "string",
            "description": "URL to receive a POST webhook when each job completes or fails."
          },
          "poll_interval": {
            "title": "Poll Interval (seconds)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How often to check job status. Lower = faster updates but more API calls.",
            "default": 3
          },
          "timeout_per_video": {
            "title": "Timeout Per Video (seconds)",
            "minimum": 0,
            "maximum": 7200,
            "type": "integer",
            "description": "Maximum time to wait for each video. 0 = no timeout.",
            "default": 600
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}