YouTube Download to Cloud Storage CLI
Download YouTube video, audio or clips to your cloud storage, with command-line job tracking and JSON file details.
Uses the FlashData YouTube Download to Cloud Storage API.
Installation
Requires Python 3.10 or newer:
python -m pip install flashdata-youtube-cloud-storage==0.1.1
Or run it without a persistent install using uvx,
as in the examples below. The installed command is flashdata-youtube-cloud-storage.
Quick start
Create a FlashData API key with youtube_download access,
then set FLASHDATA_API_KEY in your environment or secret manager. API calls use your
FlashData Credits.
export FLASHDATA_API_KEY='YOUR_API_KEY'
uvx flashdata-youtube-cloud-storage@0.1.1 --operation result --job-id job_YOUR_SAVED_ID --output result.json
Omit --output to write JSON to stdout. An output file must not already exist; the CLI
checks this before making a request. API keys are read from the environment, not command flags.
Inputs
For a new delivery, use --video-id with --operation submit --allow-submit. For status or results, use only --job-id and omit submission fields. Pass additional fields through
--options-json. Options are validated against this package's source schema.
| Option | Meaning |
|---|---|
download_type |
Source-specific option; see --schema. Default: "audio_video". |
video_quality |
Source-specific option; see --schema. Default: null. |
fps |
Source-specific option; see --schema. Default: null. |
audio_language |
Source-specific option; see --schema. Default: null. |
audio_quality |
Source-specific option; see --schema. Default: null. |
yt_dlp_format |
Source-specific option; see --schema. Default: null. |
upload_metadata |
Source-specific option; see --schema. Default: false. |
output_format |
Source-specific option; see --schema. Default: null. |
start_at |
Source-specific option; see --schema. Default: null. |
end_at |
Source-specific option; see --schema. Default: null. |
Inspect all fields, nested filters and defaults locally:
uvx flashdata-youtube-cloud-storage@0.1.1 --schema
--schema, --help and --version do not require an API key or make an API call.
Output and limits
The JSON response preserves the API envelope and available fields: submit: id/status receipt; reads: job lifecycle; completed result: output JSON delivery manifest.
Paid asynchronous job. Requires customer storage. Save the receipt; never submit again to poll. Result JSON expires after 24 hours; media retention depends on storage.
Submit once and keep the job ID
The default operation is status. Status and result accept only a saved job ID,
and never submit a paid query. A pending/running response does not mean delivery is complete.
For a new delivery, supply your own authorized video and storage configuration:
uvx flashdata-youtube-cloud-storage@0.1.1 --operation submit --allow-submit \
--video-id YOUR_VIDEO_ID \
--options-json '{"download_type":"audio","output_format":"m4a"}' \
--output delivery-receipt.json
Set FLASHDATA_DOWNLOAD_STORAGE through your secret manager, containing the documented
storage JSON. Never paste it into command arguments or source code. The supported providers
are s3, s3_compatible, gcs, azure, oss, bos, cos and tos. Use your own bucket/container,
optional object_prefix, and the provider-specific credentials. S3-compatible endpoints must
use HTTPS. Storage fields and examples.
Keep the returned id. Read that same job with --operation status --job-id ID or
--operation result --job-id ID. Omit submission inputs when resuming. There is no automatic
polling or resubmission. Only the lifecycle receipt and delivery JSON are exported; media is
written by FlashData to your storage. Result JSON expires after 24 hours. Delivery manifests
can contain signed private URLs; protect the output file. Storage credentials from job params
are excluded from CLI output. Completed result reads may fetch signed JSON from the
FlashData result origin; the API key is never sent to that object URL.
Pricing and errors
This MIT-licensed CLI is free to install. API calls use your own FlashData Credits. Downloads are billed by delivered volume; your cloud-storage and transfer costs are separate. A submission receipt is not the final usage charge.
Requests are not automatically retried. A timeout can occur after a request is accepted; check your FlashData query history before resubmitting. Each HTTP request has a 120-second network timeout, a 15-second connect timeout and a 20-MiB response limit.
Errors go to stderr. Exit codes: 0 for exported output, 2 for local input/configuration
errors, and 1 for request/output errors. For downloads, exit 0 can describe an unfinished job.
A partial output file is retained on failure; check the request before retrying because of
an output error. HTTP 401 indicates an API key issue, 402 insufficient Credits, and
429 a rate or quota limit.
Metadata
Release files for flashdata-youtube-cloud-storage 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flashdata_youtube_cloud_storage-0.1.1.tar.gz | 12.9 kB | With provenance | Details for flashdata_youtube_cloud_storage-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flashdata_youtube_cloud_storage-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for flashdata_youtube_cloud_storage-0.1.1-py3-none-any.whl |
Total release size: 28.9 kB
Release files / flashdata_youtube_cloud_storage-0.1.1.tar.gz
| Download URL | flashdata_youtube_cloud_storage-0.1.1.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c696772270f45ab65c46fb0adb35ac44c767c8558934305702330868b8e2ea3
|
|
BLAKE2b-256 checksum How to use checksums |
f8012590bf5efd6051a11332a021484f28b54ae566fb96faefdac72aa489deff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / flashdata_youtube_cloud_storage-0.1.1-py3-none-any.whl
| Download URL | flashdata_youtube_cloud_storage-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62842829f35b8fa2ef22c590b9684748f4c27108cb23bf6267f5ca140bc715de
|
|
BLAKE2b-256 checksum How to use checksums |
43b719b133f43d6724751c2d893a6d37ce856ff65d0ff7e9b3a31efa165f7b31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for flashdata-youtube-cloud-storage 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for flashdata_youtube_cloud_storage-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.