Skip to content
pubscout

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.

WASM-ready
$ flutter pub add youtube_explode_dart
Source repository

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.

Works with

Packages commonly used together with youtube_explode_dart: ones it builds on, ones built on it, and its own family.