flashdata-dev's picture
Track FlashData signup and pricing referrals
6ef96ad verified
|
Raw History Blame Contribute Delete
3.05 kB
metadata
title: YouTube Channel Data
short_description: Channel profiles and recent uploads from a handle.
emoji: 🔎
colorFrom: blue
colorTo: indigo
sdk: static
app_file: index.html
pinned: false
license: mit
tags:
  - smolagents
  - tool
  - flashdata
  - youtube-channel

YouTube Channel Data

Get a YouTube channel profile and recent videos from its handle. Retrieve channel details and a bounded list of recent uploads.

API documentation · Get an API key · Pricing

Requires your own FlashData API key and paid Credits. The Python tool is free to install.

Try the inputs

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.

Run with Python

Use Python 3.10 or newer:

python -m pip install "smolagents==1.26.0" "langchain-flashdata==0.2.1"

Review tool.py before enabling trust_remote_code. Run locally with your key:

import getpass
import os
from smolagents import load_tool

os.environ["FLASHDATA_API_KEY"] = getpass.getpass("FlashData API key: ")
tool = load_tool("flashdata-dev/youtube-channel-research-flashdata", trust_remote_code=True)
result = tool(**{'handle': '@Apple', 'video_limit': 20})
print(result)

The same loaded tool can be used with smolagents. A direct Python call does not require a model.

Inputs

Parameter Required / default Details
handle Required YouTube channel handle, for example @jawed.
video_limit 20 video limit minimum=1, maximum=100

See input-schema.json for full validation rules. Optional None values are omitted; adapter defaults apply.

Output

Read results.0.videos. Fields: videoId, title, duration, viewCount, uploadDate. Optional fields may be absent.

example.json contains a recorded response and its original request, not a new result for the input shown in the Space.

Limits and cost

Request 1–100 recent videos. This is not a complete channel archive; statistics and other fields may be unavailable.

Each data request uses FlashData Credits. Check current 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.