Get File
Download Endpoints
Get File
Downloads the completed video or audio file
GET
Get File
Path Parameters
The unique identifier of the download task (returned from Start Download)
Response
Returns the raw file data with appropriate headers for file download. Response Type: Binary file (video/audio) Headers:Content-Disposition: Includes the original filenameContent-Type: Determined by file extension (e.g.,video/mp4,audio/m4a)
Example Request
cURL
wget
JavaScript
Error Responses
Error message describing why the file cannot be retrieved
404 Not Found
Returned when:- The
download_iddoesn’t exist - The download hasn’t completed yet (status is not
"completed") - The physical file was deleted from disk
Usage Flow
- Start a download using POST /api/download
- Poll GET /api/downloads until status is
"completed" - Call this endpoint to retrieve the file
Complete Example
Notes
- Files are served directly from disk using FastAPI’s
FileResponse - The filename in the
Content-Dispositionheader matches the original video title - Files remain on the server until explicitly removed with DELETE /api/downloads//remove