flashdata-dev's picture
Track FlashData signup and pricing referrals
ecbe8cc verified
|
Raw History Blame Contribute Delete
3.37 kB
---
title: "Google Video Search"
short_description: "Video links, titles, sources and durations across sites."
emoji: "🔎"
colorFrom: "blue"
colorTo: "indigo"
sdk: "static"
app_file: "index.html"
pinned: false
license: "mit"
tags:
- smolagents
- tool
- flashdata
- google-videos
---
# Google Video Search
Search Google Videos across websites. Get video titles, page links, sources and available durations or snippets as JSON.
[API documentation](https://flashdata.dev/docs/sources/google_videos?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=google-video-research-flashdata) · [Get an API key](https://flashdata.dev/signup?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=google_videos-task) · [Pricing](https://flashdata.dev/pricing?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=google_videos-task)
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:
```sh
python -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:
```python
import getpass
import os
from smolagents import load_tool
os.environ["FLASHDATA_API_KEY"] = getpass.getpass("FlashData API key: ")
tool = load_tool("flashdata-dev/google-video-research-flashdata", trust_remote_code=True)
result = tool(**{'num': 10, 'query': 'retrieval augmented generation explained'})
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 |
| --- | --- | --- |
| `query` | Required | Search query, between 1 and 2,000 characters. |
| `num` | None | Requested result count. minimum=1, maximum=100 |
| `page` | None | Search result page. minimum=1, maximum=100 |
| `autocorrect` | None | Enable spelling autocorrection. |
| `gl` | None | Two-letter country code, for example us. |
| `hl` | None | Interface language code, for example en. |
| `location` | None | Optional geographic search location. |
| `tbs` | None | Optional Google time filter, for example qdr:w. |
See [input-schema.json](input-schema.json) for full validation rules. Optional `None` values are omitted; adapter defaults apply.
## Output
Read `results.0.videos`. Fields: `title`, `link`, `duration`, `source`, `snippet`. 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 cost
This is video search, not transcript retrieval or media download.
Each data request uses FlashData Credits. Check [current pricing](https://flashdata.dev/pricing?utm_source=hugging-face&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=google_videos-task) 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.