A YouTube search tool that helps you find older content by searching videos from specific years. Available as both a Terminal User Interface (TUI - Thanks to Textual) and Command Line Interface (CLI).
demo.mp4
demo2.mp4
YouTube's search filters are notoriously poor, especially when trying to find older content. The algorithm heavily favors newer videos, not surprisingly so, making it nearly impossible to discover gems from years past. This tool solves that problem by allowing you to search for videos from specific years (2005-2025).
- Search by specific year - Find videos from any year (2005-2025)
- TUI interface - Modern terminal interface with themes
- CLI mode - Flags for power users and scripts
- Easy API key management - Multiple ways to configure your YouTube API key
- Multiple themes - Dark, light, gruvbox, dracula, nord, and more
- Direct video URLs - Quick access to watch videos
# -- pip --
pip install ytflashback
# -- uv --
uv pip install ytflashback
# or
uv run --with ytflashback ytflashback
# -- poetry --
poetry add ytflashback
git clone https://github.com/cachebag/flashback.git
cd flashback
pip install -e .
You'll need a free YouTube Data API v3 key:
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Enable the YouTube Data API v3
- Create credentials (API key)
- Copy your API key
ytflashback-api-key
ytflashback-cli --update-api-key
# or short form:
ytflashback-cli --api-key
When using the CLI interface, type api
to update your key:
ytflashback-cli
# Then type: api
If using the TUI, simply press CTRL
+ K
export YOUTUBE_API_KEY="key-goes-here"
Launch the terminal interface:
ytflashback
- Keyboard shortcuts:
Ctrl+S
- SearchCtrl+C
- Clear searchCtrl+T
- Toggle themeCtrl+Shift+K
- Update API keyCtrl+Q
- QuitF1
- Help
For command-line usage and scripting:
ytflashback-cli
ytflashback-cli -q "python tutorial" -y 2019 -m 25
ytflashback-cli --help
Options:
-q, --query TEXT # YouTube search query
-y, --year INTEGER # Year to search for videos
-m, --max-results INTEGER # Maximum number of results (default: 25)
--update-api-key, --api-key # Update your YouTube API key and exit
--help # Show this message and exit
- YouTube API has a daily quota of 10,000 units
- Each search uses ~100 units (≈100 searches/day)
- The API is free but rate-limited
git clone https://github.com/cachebag/flashback.git
cd flashback
pip install -e .
Feel free to submit issues and enhancement requests.
This project is open source and available under the MIT License.