Clarify capability names and simplify documentation
Browse filesFiles changed (4)
- README.md+50-48
- index.html+5-5
- task.json+6-5
- tool.py+1-1
1234567891011121 unmodified line141516171819202122232425262728293031323334353637381 unmodified line404142434445464 unmodified lines51525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104---title: "YouTube video or audio delivery to cloud storage"emoji: 🔎colorFrom: bluecolorTo: indigosdk: staticapp_file: index.htmlpinned: falselicense: mittags:- smolagents- tool1 unmodified line- youtube-download---# YouTube video or audio delivery to cloud storage — FlashDataDeliver video or audio you are entitled to use into your own cloud storage for a downstream workflow. Submit once, save the job ID, and read status and the completed delivery manifest without resubmitting.**Try this task:** Submit a short MP4 clip to configured storage, then inspect its job and file manifest.[FlashData youtube download documentation](https://flashdata.dev/docs/sources/youtube_download?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube-cloud-media-delivery-flashdata) · [Create a FlashData account](https://flashdata.dev/signup)## Run itOpen the Space to edit a request and inspect a documentation response sample. The interactive page runs locally in your browser; it does not send a FlashData query or collect an API key. The Python tool runs in your own process.Use Python 3.10 or newer. Install the pinned dependencies:```shpython -m pip install "smolagents==1.26.0" "langchain-flashdata==0.2.1"```Create an API key in the FlashData console, fund the required credits, and supply the key in your local environment. Review `tool.py` before enabling remote code execution.```pythonimport getpass1 unmodified linefrom smolagents import load_toolos.environ["FLASHDATA_API_KEY"] = getpass.getpass("FlashData API key: ")os.environ["FLASHDATA_DOWNLOAD_STORAGE"] = getpass.getpass("Customer storage JSON: ")tool = load_tool("flashdata-dev/youtube-cloud-media-delivery-flashdata", trust_remote_code=True)result = tool(**{'operation': 'submit','parameters': {'end_at': '00:00:10',4 unmodified linesprint(result)```This is a native smolagents Tool with typed task inputs. Add the loaded tool to your own agent; model choice, prompts and model fees remain under your control. Direct calls above do not need a model.## Inputs| Parameter | Type | Required / default | Details || --- | --- | --- | --- || `video_id` | string | Required | 11-character YouTube video ID or a YouTube video URL. || `download_type` | string | 'audio_video' | download type enum=['audio_video', 'video', 'audio'] || `video_quality` | string | None | video quality pattern=^(best/worst/(?:<=/==/>=)(?:144/360/480/720/1080/1440/2160/4320))$ || `fps` | string | None | fps pattern=^(?:>=/<=/==)(?:[1-9]\d?/1\d\d/2[0-3]\d/240)$ || `audio_language` | string | None | audio language enum=['default', 'original'] || `audio_quality` | string | None | audio quality enum=['best', '320', '256', '192', '128'] || `yt_dlp_format` | string | None | yt dlp format || `upload_metadata` | boolean | False | upload metadata || `output_format` | string | None | output format enum=['mp4', 'webm', 'mkv', 'm4a', 'mp3', 'opus'] || `start_at` | string | None | start at pattern=^\d{1,2}:[0-5]\d:[0-5]\d$ || `end_at` | string | None | end at pattern=^\d{1,2}:[0-5]\d:[0-5]\d$ |Optional `None` values are omitted; the documented adapter defaults apply.Full validation rules are in `input-schema.json`.The tool accepts `operation` (`submit`, `status`, `result`), a `parameters` object containing the above media inputs for submission, and `job_id` for reads. Storage JSON is supplied outside these tool inputs. Supported storage providers: S3, S3-compatible, OSS, GCS, Azure, COS, BOS and TOS. Follow the [storage configuration documentation](https://flashdata.dev/docs/sources/youtube_download) for provider-specific credentials.After submission, save `result["id"]`. Then read without resubmitting:```pythonsaved_job_id = result["id"]status = tool(operation="status", job_id=saved_job_id)output = tool(operation="result", job_id=saved_job_id)```In Windmill, select the same operation and job ID inputs in a later step. Pending/processing returns status. Completed output includes the JSON delivery manifest, with `file_url`, `file_size` and available media fields; the media stays in your storage.## Output and next stepThe useful data is at `links`. Relevant fields: `rel`, `href`, `method`.Use operation=status or result with the saved job_id. A pending response is a reason to check later, not to submit another paid download. The result reader fetches JSON metadata, not the media file.The Space includes a recorded documentation example and its original request. It is not a fresh result for the task prompt above. Optional fields may be absent.## Costs, limits and failuresAsynchronous media download to customer storage; charged by delivered bytes, with storage charges separate. Storage credentials stay outside model-visible tool inputs. Use only media you have rights to process.The tool is MIT licensed. It is free to install. **FlashData API calls are paid**; installation does not include free data queries. Check current [FlashData pricing](https://flashdata.dev/pricing) and your console balance. Platform, model and customer storage charges are separate. Each search/page is a separate request; Extended Search has its own rate. Downloads are charged by delivered data volume.An uncertain timeout can still represent a charged request. Check Jobs in the FlashData console before trying again; this integration does not automatically retry paid submissions. A 401 means the key was rejected, 402 means insufficient credits, and 429 means a rate or quota limit.[Get started with this FlashData capability](https://flashdata.dev/docs/sources/youtube_download?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube-cloud-media-delivery-flashdata)123456789101112131 unmodified line1516171819202122232425262728293031323334353637383940411 unmodified line434445464748494 unmodified lines54555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106---title: "YouTube Download to Cloud Storage"short_description: "Download video, audio or clips to your cloud storage."emoji: "🔎"colorFrom: "blue"colorTo: "indigo"sdk: "static"app_file: "index.html"pinned: falselicense: "mit"tags:- smolagents- tool1 unmodified line- youtube-download---# YouTube Download to Cloud StorageDownload YouTube video, audio or clips to your own S3 or other supported cloud storage. Submit a job once, then read its status and delivery manifest.[API documentation](https://flashdata.dev/docs/sources/youtube_download?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube-cloud-media-delivery-flashdata) · [Get an API key](https://flashdata.dev/app/api-keys) · [Pricing](https://flashdata.dev/pricing)Requires your own FlashData API key and paid Credits. The Python tool is free to install.## Try the inputsEdit the JSON in this Space, generate a Python call, and inspect the included sample response or paste your own JSON. This page runs locally in your browser; it does not run a data query or collect your API key.## Run with PythonUse Python 3.10 or newer:```shpython -m pip install "smolagents==1.26.0" "langchain-flashdata==0.2.1"```Review [tool.py](tool.py) before enabling `trust_remote_code`. Run locally with your key:```pythonimport getpass1 unmodified linefrom smolagents import load_toolos.environ["FLASHDATA_API_KEY"] = getpass.getpass("FlashData API key: ")os.environ["FLASHDATA_DOWNLOAD_STORAGE"] = getpass.getpass("Storage configuration JSON: ")tool = load_tool("flashdata-dev/youtube-cloud-media-delivery-flashdata", trust_remote_code=True)result = tool(**{'operation': 'submit','parameters': {'end_at': '00:00:10',4 unmodified linesprint(result)```The same loaded tool can be used with smolagents. A direct Python call does not require a model.## Track the downloadSupply storage credentials through `FLASHDATA_DOWNLOAD_STORAGE`, outside the public inputs. See [storage configuration](https://flashdata.dev/docs/sources/youtube_download?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube-cloud-media-delivery-flashdata) for S3, S3-compatible, OSS, GCS, Azure, COS, BOS and TOS.After submitting, save the job ID and read it without resubmitting:```pythonsaved_job_id = result["id"]status = tool(operation="status", job_id=saved_job_id)# After completion:output = tool(operation="result", job_id=saved_job_id)````submit` takes media `parameters`; `status` and `result` take only `job_id`. Completed output contains a delivery manifest with `file_url`, `file_size` and available media fields.## InputsThe table below describes fields inside the `parameters` object for `operation="submit"`.| Parameter | Required / default | Details || --- | --- | --- || `video_id` | Required | 11-character YouTube video ID or a YouTube video URL. || `download_type` | 'audio_video' | download type enum=['audio_video', 'video', 'audio'] || `video_quality` | None | video quality || `fps` | None | fps || `audio_language` | None | audio language enum=['default', 'original'] || `audio_quality` | None | audio quality enum=['best', '320', '256', '192', '128'] || `yt_dlp_format` | None | yt dlp format || `upload_metadata` | False | upload metadata || `output_format` | None | output format enum=['mp4', 'webm', 'mkv', 'm4a', 'mp3', 'opus'] || `start_at` | None | start at || `end_at` | None | end at |See [input-schema.json](input-schema.json) for full validation rules. Optional `None` values are omitted; adapter defaults apply.## OutputRead `links`. Fields: `rel`, `href`, `method`. Optional fields may be absent.[example.json](example.json) contains a recorded response and its original request, not a new result for the input shown in the Space.## Limits and costRequires your own writable storage and permission for your intended use. Downloads are asynchronous and charged by delivered data volume; storage charges are separate.Check [current pricing](https://flashdata.dev/pricing) before running. Any model or hosting charges are separate.For an uncertain timeout, check your FlashData Jobs before retrying; this tool does not automatically retry paid submissions.
2 unmodified lines345678910111213141516171819202 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>FlashData research tool</title><link rel="stylesheet" href="style.css"></head><body><main><header><a href="https://flashdata.dev" class="brand" target="_blank" rel="noopener">FLASHDATA</a><span>Research tools for AI agents</span></header><section class="intro"><p class="eyebrow">SMOLAGENTS TOOL · PYTHON</p><h1 id="title">Loading tool…</h1><p id="scenario"></p><a id="docs" class="cta" target="_blank" rel="noopener">Get an API key and read the docs ↗</a></section><div class="grid"><section class="panel"><h2>Build a request</h2><p id="task"></p><label for="parameters">Tool inputs (JSON)</label><textarea id="parameters" spellcheck="false"></textarea><button id="generate" type="button">Generate Python call</button><p id="input-status" role="status"></p><pre><code id="python"></code></pre><p class="hint">Run this code in your Python environment. Your API key is entered there, not on this page.</p></section><section class="panel"><h2>Inspect the response</h2><p class="hint">This is a recorded documentation sample, not a live response to the request on the left. You can paste your own response JSON to explore its fields.</p><details><summary>Original sample request</summary><pre id="sample-request"></pre></details><label for="response">Response JSON</label><textarea id="response" spellcheck="false"></textarea><button id="inspect" type="button">Inspect results</button><p id="response-status" role="status"></p><div id="results"></div></section></div><section class="panel next"><h2>Use the result</h2><p id="next"></p><h3>Limits and costs</h3><p id="limit"></p><p>The tool is free to install. <strong>FlashData API calls are paid.</strong> Platform, model and customer storage costs are separate. No API or model call is made by this page. <a href="https://flashdata.dev/pricing" target="_blank" rel="noopener">Check pricing ↗</a></p><p>For an uncertain timeout, check Jobs before retrying a paid submission. Download jobs must be read with their saved ID; do not submit again while pending.</p></section><footer><a id="source" target="_blank" rel="noopener">Review tool.py</a><a id="readme" target="_blank" rel="noopener">Installation and input reference</a><span>MIT licensed integration · FlashData API terms apply separately</span></footer></main><script type="module" src="app.js"></script>2 unmodified lines345678910111213141516171819202 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Search and video data tools</title><link rel="stylesheet" href="style.css"></head><body><main><header><a href="https://flashdata.dev" class="brand" target="_blank" rel="noopener">FLASHDATA</a><span>Search & video data</span></header><section class="intro"><p class="eyebrow">PYTHON TOOL · REQUEST EXAMPLES</p><h1 id="title">Loading tool…</h1><p id="scenario"></p><a id="docs" class="cta" target="_blank" rel="noopener">API documentation & setup ↗</a></section><div class="grid"><section class="panel"><h2>Build a request</h2><p id="task"></p><label for="parameters">Tool inputs (JSON)</label><textarea id="parameters" spellcheck="false"></textarea><button id="generate" type="button">Generate Python call</button><p id="input-status" role="status"></p><pre><code id="python"></code></pre><p class="hint">Run this code in your Python environment. Your API key is entered there, not on this page.</p></section><section class="panel"><h2>Inspect the response</h2><p class="hint">View the included sample or paste your own response JSON. Editing the request does not run a query.</p><details><summary>Original sample request</summary><pre id="sample-request"></pre></details><label for="response">Response JSON</label><textarea id="response" spellcheck="false"></textarea><button id="inspect" type="button">Inspect results</button><p id="response-status" role="status"></p><div id="results"></div></section></div><section class="panel next"><h2>Use the result</h2><p id="next"></p><h3>Limits and costs</h3><p id="limit"></p><p>Requires your FlashData API key. <strong>Data calls use paid Credits.</strong> This page only prepares code and displays JSON. <a href="https://flashdata.dev/pricing" target="_blank" rel="noopener">Check pricing ↗</a></p><p>Check FlashData Jobs before retrying a request that timed out.</p></section><footer><a id="source" target="_blank" rel="noopener">Review tool.py</a><a id="readme" target="_blank" rel="noopener">Installation and input reference</a><span>MIT licensed integration · FlashData API terms apply separately</span></footer></main><script type="module" src="app.js"></script>
1234567810 unmodified lines1920212223242526{"slug": "youtube-cloud-media-delivery-flashdata","title": "YouTube video or audio delivery to cloud storage \u2014 FlashData","scenario": "Deliver video or audio you are entitled to use into your own cloud storage for a downstream workflow. Submit once, save the job ID, and read status and the completed delivery manifest without resubmitting.","task": "Submit a short MP4 clip to configured storage, then inspect its job and file manifest.","input": {"operation": "submit","parameters": {10 unmodified lines"href","method"],"next": "Use operation=status or result with the saved job_id. A pending response is a reason to check later, not to submit another paid download. The result reader fetches JSON metadata, not the media file.","limit": "Asynchronous media download to customer storage; charged by delivered bytes, with storage charges separate. Storage credentials stay outside model-visible tool inputs. Use only media you have rights to process.","source": "youtube_download","repo_id": "flashdata-dev/youtube-cloud-media-delivery-flashdata"}1234567810 unmodified lines192021222324252627{"slug": "youtube-cloud-media-delivery-flashdata","title": "YouTube Download to Cloud Storage","scenario": "Download YouTube video, audio or clips to your own S3 or other supported cloud storage. Submit a job once, then read its status and delivery manifest.","task": "Prepare a download, or check an existing job ID.","input": {"operation": "submit","parameters": {10 unmodified lines"href","method"],"next": "Save the submitted job ID. Select status or result to read that job without submitting it again.","limit": "Requires your own writable storage and permission for your intended use. Downloads are asynchronous and charged by delivered data volume; storage charges are separate.","short_description": "Download video, audio or clips to your cloud storage.","source": "youtube_download","repo_id": "flashdata-dev/youtube-cloud-media-delivery-flashdata"}
2 unmodified lines34567892 unmodified linesclass FlashDataTool(Tool):name = 'youtube_download'description = 'Deliver video or audio you are entitled to use into your own cloud storage for a downstream workflow. Submit once, save the job ID, and read status and the completed delivery manifest without resubmitting. Asynchronous media download to customer storage; charged by delivered bytes, with storage charges separate. Storage credentials stay outside model-visible tool inputs. Use only media you have rights to process. Uses paid FlashData API credits. Never automatically retry an uncertain submission; check Jobs first.'inputs = {'job_id': {'description': 'Required for status/result. ID returned by a previous submit.','nullable': True,'type': 'string'},2 unmodified lines34567892 unmodified linesclass FlashDataTool(Tool):name = 'youtube_download'description = 'Download YouTube video, audio or clips to your own S3 or other supported cloud storage. Submit a job once, then read its status and delivery manifest. Requires your own writable storage and permission for your intended use. Downloads are asynchronous and charged by delivered data volume; storage charges are separate. Uses paid FlashData API credits. Never automatically retry an uncertain submission; check Jobs first.'inputs = {'job_id': {'description': 'Required for status/result. ID returned by a previous submit.','nullable': True,'type': 'string'},
README.md+50-48
index.html+5-5
task.json+6-5
tool.py+1-1