Skip to content

This is a lightweight⚡ package to fetch video info for YouTube from the url

License

Notifications You must be signed in to change notification settings

Joseph-Nathan/youtube_video_info

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube_video_info

flutter dart

This is a lightweight⚡ package to fetch video info for YouTube from the url

To install, add to pubspec.yaml

flutter:
  sdk: flutter
youtube_video_info: ^1.0.0

and then run flutter pub get

Import the library

import 'package:youtube_video_info/youtube.dart';

Calling the method

YoutubeDataModel videoData = await YoutubeData.getData(link);

Example

var title = videoData.title; // "Ed Sheeran - Bad Habits [Official Video]"
var averageRating = videoData.averageRating; // 4.13242
var durationSeconds = videoData.durationSeconds; // 167

example gif

About

This is a lightweight⚡ package to fetch video info for YouTube from the url

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 28.3%
  • CMake 21.4%
  • Shell 14.7%
  • C++ 12.0%
  • HTML 10.9%
  • Batchfile 6.8%
  • Other 5.9%