youtube_explode_dart
3.1.0, released 6 months ago by hexah.net
Query YouTube metadata, streams, playlists, captions, and comments without an API key.
What it does
Provides a Dart interface to query metadata of YouTube videos, playlists, and channels. It resolves and downloads video streams, extracts closed captions, and fetches comments by parsing raw page content and reverse-engineered AJAX requests.
AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to fetch YouTube video metadata, captions, or comments without using the official YouTube Data API.
- You need to resolve and download YouTube video and audio streams directly.
- You are building a custom YouTube downloader or media application in Dart.
Skip it when
- You require guaranteed long-term stability against YouTube's frequent internal web page and API changes.
- You need an official, supported Google API with explicit quotas and SLAs.
Strengths
- No YouTube API key or usage quotas required.
- Supports metadata, playlists, comments, captions, and various stream qualities (muxed, audio-only, video-only, HLS).
- Allows choosing different YouTube clients and custom signature solvers.
Weaknesses
- Relies on reverse-engineering and parsing raw page content, making it prone to breaking when YouTube updates its site.
- Requires manual cleanup by closing the HTTP client to avoid halting the Dart process.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 12
Not documented
var yt = YoutubeExplode();
var video = await yt.videos.get('https://youtube.com/watch?v=Dpp1sIL1m5Q');
var title = video.title;
var author = video.author;
yt.close();Alternatives
Packages that do the same job and could replace youtube_explode_dart.
- video_player
If you want an official widget to play standard video files or network video URLs inside your Flutter application rather than extracting raw streams and metadata.
93Compare
Works with
Packages commonly used together with youtube_explode_dart: ones it builds on, ones built on it, and its own family.
- cryptoyoutube_explode_dart depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- xmlyoutube_explode_dart depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- json_annotationyoutube_explode_dart depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- htmlyoutube_explode_dart depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- http_parseryoutube_explode_dart depends on itA platform-independent package for parsing and serializing HTTP formats.
- loggingyoutube_explode_dart depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- freezed_annotationyoutube_explode_dart depends on itAnnotations for the freezed code-generator.
- unicodeyoutube_explode_dart depends on itLibrary providing Unicode character utilities and emoji data generated from Unicode 17.0.0