Clarify capability names and simplify documentation
Browse filesFiles changed (4)
- README.md+30-33
- index.html+5-5
- task.json+6-5
- tool.py+1-1
1234567234567899101112131 unmodified line15161717181919202121222323242525262727282929303132333435363735383940416 unmodified lines4849504851525354525354555657585960555657586259606461626663646865667067687269707471727673---title: "YouTube Creative Commons label inspection"emoji: 🔎colorFrom: bluecolorTo: indigosdk: staticapp_file: index.htmltitle: "YouTube License Metadata"short_description: "Check the Creative Commons label in video metadata."emoji: "🔎"colorFrom: "blue"colorTo: "indigo"sdk: "static"app_file: "index.html"pinned: falselicense: mitlicense: "mit"tags: - smolagents - tool1 unmodified line - youtube-trainability---
# YouTube Creative Commons label inspection — FlashData# YouTube License Metadata
Add license-label metadata to a video review queue. Check whether a Creative Commons label is detectable, then leave actual reuse and rights decisions to a separate review of the source and license.Inspect the Creative Commons license classification in YouTube video metadata. Return the license-label signal for a video ID.
**Try this task:** Record a video's detected license label as one input to rights review.[API documentation](https://flashdata.dev/docs/sources/youtube_trainability?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube-license-metadata-flashdata) · [Get an API key](https://flashdata.dev/app/api-keys) · [Pricing](https://flashdata.dev/pricing)
[FlashData youtube trainability documentation](https://flashdata.dev/docs/sources/youtube_trainability?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube-license-metadata-flashdata) · [Create a FlashData account](https://flashdata.dev/signup)Requires your own FlashData API key and paid Credits. The Python tool is free to install.
## Run it## Try the inputs
Open 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.Edit 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.
Use Python 3.10 or newer. Install the pinned dependencies:## Run with Python
Use Python 3.10 or newer:
```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.Review [tool.py](tool.py) before enabling `trust_remote_code`. Run locally with your key:
```pythonimport getpass6 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.The same loaded tool can be used with smolagents. A direct Python call does not require a model.
## Inputs
| Parameter | Type | Required / default | Details || --- | --- | --- | --- || `video_id` | string | Required | 11-character YouTube video ID or a YouTube video URL. |
Optional `None` values are omitted; the documented adapter defaults apply.
Full validation rules are in `input-schema.json`.
## Output and next step| Parameter | Required / default | Details || --- | --- | --- || `video_id` | Required | 11-character YouTube video ID or a YouTube video URL. |
The useful data is at `results.0`. Relevant fields: `videoId`, `kind`, `permitted`.See [input-schema.json](input-schema.json) for full validation rules. Optional `None` values are omitted; adapter defaults apply.
Interpret permitted=[all] only as a detected Creative Commons label. Inspect the original license and needed permissions before any reuse.## Output
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.Read `results.0`. Fields: `videoId`, `kind`, `permitted`. Optional fields may be absent.
## Costs, limits and failures[example.json](example.json) contains a recorded response and its original request, not a new result for the input shown in the Space.
The API source is named youtube_trainability, but it does not read creator third-party training settings or grant training permission. [none] also covers missing metadata.## Limits and cost
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.This checks license metadata, not creator training settings. It does not grant training, download or reuse permission.
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.Each data request uses FlashData Credits. Check [current pricing](https://flashdata.dev/pricing) before running. Any model or hosting charges are separate.
[Get started with this FlashData capability](https://flashdata.dev/docs/sources/youtube_trainability?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube-license-metadata-flashdata)For an uncertain timeout, check your FlashData Jobs before retrying; this tool does not automatically retry paid submissions.2 unmodified lines345667891011121112131415151617171819202 unmodified lines<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>FlashData research tool</title> <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>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> <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">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> <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>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> <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>123453456783 unmodified lines1213141516151617181920{ "slug": "youtube-license-metadata-flashdata", "title": "YouTube Creative Commons label inspection \u2014 FlashData", "scenario": "Add license-label metadata to a video review queue. Check whether a Creative Commons label is detectable, then leave actual reuse and rights decisions to a separate review of the source and license.", "task": "Record a video's detected license label as one input to rights review.", "title": "YouTube License Metadata", "scenario": "Inspect the Creative Commons license classification in YouTube video metadata. Return the license-label signal for a video ID.", "task": "Check the license metadata of a video.", "input": { "video_id": "FUfGcZ092b0" },3 unmodified lines "kind", "permitted" ], "next": "Interpret permitted=[all] only as a detected Creative Commons label. Inspect the original license and needed permissions before any reuse.", "limit": "The API source is named youtube_trainability, but it does not read creator third-party training settings or grant training permission. [none] also covers missing metadata.", "next": "Inspect the returned license signal alongside the original video.", "limit": "This checks license metadata, not creator training settings. It does not grant training, download or reuse permission.", "short_description": "Check the Creative Commons label in video metadata.", "source": "youtube_trainability", "repo_id": "flashdata-dev/youtube-license-metadata-flashdata"}2 unmodified lines345667892 unmodified lines
class FlashDataTool(Tool): name = 'youtube_trainability' description = 'Add license-label metadata to a video review queue. Check whether a Creative Commons label is detectable, then leave actual reuse and rights decisions to a separate review of the source and license. The API source is named youtube_trainability, but it does not read creator third-party training settings or grant training permission. [none] also covers missing metadata. Uses paid FlashData API credits. Never automatically retry an uncertain submission; check Jobs first.' description = 'Inspect the Creative Commons license classification in YouTube video metadata. Return the license-label signal for a video ID. This checks license metadata, not creator training settings. It does not grant training, download or reuse permission. Uses paid FlashData API credits. Never automatically retry an uncertain submission; check Jobs first.' inputs = {'video_id': {'description': '11-character YouTube video ID or a YouTube video URL.', 'type': 'string'}} output_type = 'object'README.md+30-33
index.html+5-5
task.json+6-5
tool.py+1-1