✨ Why ytlookup?
- ⚡ Blazing fast: Typical response time is around 50-100ms with optimized InnerTube requests.
- 🔐 No API key needed: Zero setup, no quotas, and no external credential configuration.
- 🎯 Simple developer experience: Clean async API with typed return structures and predictable fields.
- 🚀 Production-ready by design: Includes robust parsing, fallback handling, and stable response formatting.
- 🐍 Modern Python support: Works on Python 3.8-3.14 with a minimal dependency footprint (
aiohttp).
📦 Installation
Quick Install
pip install ytlookup
From Source
git clone https://github.com/CertifiedCoders/ytlookup
cd ytlookup
pip install -e .
Requirements: Python 3.8+ and aiohttp
🚀 Quick Start
Get Video Information (Fast Mode)
import asyncio
from ytlookup import Video
async def main():
# Lightning fast - ~50ms response time! ⚡
video = await Video.get("dQw4w9WgXcQ")
print(f"📹 {video['title']}")
print(f"👤 {video['channel']['name']}")
print(f"👁️ {video['viewCount']['short']}")
print(f"⏱️ {video['duration']['text']}")
asyncio.run(main())
Get Complete Information (With Extras)
import asyncio
from ytlookup import Video
async def main():
# Includes publishedTime and may include likes (~500ms)
video = await Video.get("dQw4w9WgXcQ", fetch_extras=True)
if not video:
print("Video not found")
return
print(f"📅 Published: {video.get('publishedTime', 'N/A')}")
likes = video.get("likesCount", {}).get("short", "N/A")
print(f"👍 Likes: {likes}")
asyncio.run(main())
Search YouTube Videos
import asyncio
from ytlookup import videosearch
async def main():
# Search with metadata
videos = await videosearch("Python tutorial", limit=5)
for video in videos:
print(f"🎬 {video['title']}")
print(f" 📊 {video['viewCount']['short']} • {video['duration']['text']}")
print(f" 🔗 {video['url']}\n")
asyncio.run(main())
Get Playlist Information
import asyncio
from ytlookup import Playlist
async def main():
# Fetch playlist with videos
playlist = await Playlist.get("PLxxx...", limit=10)
if not playlist:
print("Playlist not found")
return
print(f"📋 {playlist['title']}")
print(f"🎬 {playlist['videoCount']} videos")
print(f"👤 {playlist['channel']['name']}")
for video in playlist['videos']:
print(f" • {video['title']}")
asyncio.run(main())
📚 Detailed Guide
For complete API contracts, response shapes, and advanced usage patterns, see DOCUMENTATION.md.
🛠️ Requirements
Minimal Dependencies
- Python: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14
- aiohttp: >= 3.8.0
That's it! No complex dependencies.
🤝 Contributing
Contributions are welcome and appreciated.
Quick Start
- Fork this repository
- Create a branch (
git checkout -b feature/your-change) - Make your changes and test locally
- Commit with a clear message
- Open a Pull Request
Not sure where to start?
- Found a bug? Open an issue: GitHub Issues
- Have a feature idea? Share it in GitHub Issues
- Want to improve docs or examples? PRs are always welcome
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright © 2026 CertifiedCoders
🔖 Credits & Acknowledgments
- Special thanks to alexmercerind for youtube-search-python
- Special thanks to aiohttp
- Crafted with passion by CertifiedCoders
- Special thanks to all contributors and users of ytlookup
Metadata
Release files for ytlookup 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ytlookup-1.0.1.tar.gz | 13.8 kB | With provenance | Details for ytlookup-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ytlookup-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for ytlookup-1.0.1-py3-none-any.whl |
Total release size: 27.9 kB
Release files / ytlookup-1.0.1.tar.gz
| Download URL | ytlookup-1.0.1.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0e47bc0121a013e716b832235e387d40de6d4d6f32bb64419f82c8c109058bf
|
|
BLAKE2b-256 checksum How to use checksums |
f86fc5ead81b06de81bc077f01defd3c9b605e76535ca00912f85340680e5d3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.
Transparency logRelease files / ytlookup-1.0.1-py3-none-any.whl
| Download URL | ytlookup-1.0.1-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0b4d8eecf2a57a843c6ad7af88ce686190e5b44b3725d1769d5a616b857fc6f
|
|
BLAKE2b-256 checksum How to use checksums |
338ab53e25fe4d6404d5fd55059e86cad0a0970c9455a6af7009a207a438fe83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.
Transparency logSecurity for ytlookup 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ytlookup-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.