# Downloads the request `type` of video `videoId` **GET /download/{videoId}/{type}** Downloads the request `type` of video `videoId` ## Servers ## Parameters ## Responses ### 404 Not Found ### 307 OK - Follow redirect (response header `Location`) to download the requested file. > warn > The returned `Content-Type` and `Content-Disposition` may differ depending on > what type you requested and when the stream was archived: - **Type `video`** archived before 2023-01-26: - `Content-Type: binary/octet-stream` - No `Content-Disposition` header - **Type `video`** archived between 2023-01-27 and 2023-02-04: - `Content-Type: video/mp4` - `Content-Disposition: inline` - **Type `video`** archived after 2023-02-05: - `Content-Type: video/mp4` - `Content-Disposition: attachment` - **Type `thumbnail`** archived before 2023-01-26: - `Content-Type: binary/octet-stream` - No `Content-Disposition` header - **Type `thumbnail`** archived after 2023-01-27: - `Content-Type: image/jpeg` - `Content-Disposition: inline` - **Type `ffmpeg`** archived before 2023-01-26: - `Content-Type: binary/octet-stream` - No `Content-Disposition` header - **Type `ffmpeg`** archived after 2023-01-27: - `Content-Type: text/plain` - `Content-Disposition: inline` #### Body: (string(binary)) string(binary) ### 401 # Bad Request One of these two things occurred: - Video or ffmpeg log download has been requested but the video has not yet finished archiving. - A bad user agent has been sent with the request. Please see the `User-Agent` header definition in this file. [Powered by Bump.sh](https://bump.sh)