{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Scraper Pro — Videos, Channels & Download Links",
    "description": "Scrape any YouTube video, channel or playlist. Returns title, views, likes, duration, thumbnail and signed download URLs for every resolution (144p to 4K). Audio-only download also available. No login required.",
    "version": "0.0",
    "x-build-id": "2AdBjUoOTxgzhg8dK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapepilot~youtube-scraper-pro----videos-channels-download-links/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapepilot-youtube-scraper-pro----videos-channels-download-links",
        "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/scrapepilot~youtube-scraper-pro----videos-channels-download-links/runs": {
      "post": {
        "operationId": "runs-sync-scrapepilot-youtube-scraper-pro----videos-channels-download-links",
        "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/scrapepilot~youtube-scraper-pro----videos-channels-download-links/run-sync": {
      "post": {
        "operationId": "run-sync-scrapepilot-youtube-scraper-pro----videos-channels-download-links",
        "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": {
          "video_url": {
            "title": "📹 Single Video URL",
            "type": "string",
            "description": "YouTube video URL to scrape and get download link.\n\n✅ Accepted formats:\nhttps://www.youtube.com/watch?v=dQw4w9WgXcQ\nhttps://youtu.be/dQw4w9WgXcQ\nhttps://www.youtube.com/shorts/abc123\n\n💡 Returns: title, views, likes, duration, all download URLs (144p → 4K), subtitles list, chapters"
          },
          "channel_url": {
            "title": "📢 Channel URL",
            "type": "string",
            "description": "YouTube channel URL to scrape all videos.\n\n✅ Accepted formats:\nhttps://www.youtube.com/@MrBeast\nhttps://www.youtube.com/c/ChannelName\nhttps://www.youtube.com/channel/UCxxxxxx\nhttps://www.youtube.com/user/OldUsername\n\n💡 Returns: all channel videos with full metadata and download links\n⚙️ Set 'Max Videos' to control how many videos to scrape"
          },
          "playlist_url": {
            "title": "📋 Playlist URL",
            "type": "string",
            "description": "YouTube playlist URL to scrape all videos.\n\n✅ Accepted formats:\nhttps://www.youtube.com/playlist?list=PLxxxxx\nhttps://www.youtube.com/watch?v=xxx&list=PLxxxxx\n\n💡 Returns: all playlist videos with download links in order"
          },
          "search_query": {
            "title": "🔍 Search Query",
            "type": "string",
            "description": "Search YouTube and scrape the top results.\n\n✅ Examples:\nPython tutorial for beginners\nlofi hip hop music 2024\nMr Beast challenge\nnature documentary 4K\n\n💡 Returns: top search results with views, duration and download links"
          },
          "max_results": {
            "title": "🔢 Max Videos",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of videos to scrape.\n\n📌 Recommended:\n1 → single video (instant)\n10-20 → channel/playlist test\n50-100 → bulk channel scrape\n\n⚠️ More videos = longer run time. Channel scraping: ~5-10 sec per video.",
            "default": 20
          },
          "quality": {
            "title": "🎞️ Preferred Download Quality",
            "enum": [
              "best",
              "2160",
              "1080",
              "720",
              "480",
              "360",
              "240",
              "144",
              "audio_only"
            ],
            "type": "string",
            "description": "Preferred video quality for the download_url_best field.\n\n4K (2160p) → Ultra HD, very large files\n1080p → Full HD — recommended\n720p → HD — smaller files, good quality\n480p → Standard quality\n360p → Low bandwidth\n144p → Minimum quality\naudio_only → Audio only (no video)",
            "default": "best"
          },
          "proxyConfiguration": {
            "title": "🔒 Proxy (RESIDENTIAL Recommended)",
            "type": "object",
            "description": "RESIDENTIAL proxy keeps your IP safe and avoids rate limits.\n\n✅ Always keep RESIDENTIAL proxy enabled for:\n• Channel scraping (many requests)\n• Avoiding YouTube rate limits\n• Accessing geo-restricted content\n\n⚠️ yt-dlp works without proxy for single videos but RESIDENTIAL is recommended for bulk scraping."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}